Skip to content

Commit

Permalink
update openapi tool builder
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcheng1982 committed May 20, 2024
1 parent a83a2a4 commit 1e03eec
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tool-builders/openapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<openapi-generator-version>7.4.0</openapi-generator-version>
<openapi-generator-version>7.5.0</openapi-generator-version>
<maven-plugin-version>1.0.0</maven-plugin-version>
<junit-version>4.13.2</junit-version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class OpenApiAgentToolGenerator extends
JavaClientCodegen implements CodegenConfig {

public static final String AGENT_BUILDER_VERSION = "agentBuilderVersion";
public static final String DEFAULT_AGENT_BUILDER_VERSION = "0.1.0-SNAPSHOT";
public static final String DEFAULT_AGENT_BUILDER_VERSION = "0.1.5";

private String agentBuilderVersion;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@
</dependency>
<dependency>
<groupId>io.github.alexcheng1982</groupId>
<artifactId>agent-app-builder-core</artifactId>
<version>${agent-builder.version}</version>
<groupId>io.github.llmagentbuilder</groupId>
<artifactId>core</artifactId>
<version>${llm-agent-builder.version}</version>
</dependency>
<!-- @Nullable annotation -->
Expand Down Expand Up @@ -308,6 +308,6 @@
<junit-version>4.13.2</junit-version>
<spotless.version>2.27.2</spotless.version>
<spring-context.version>6.1.3</spring-context.version>
<agent-builder.version>{{agentBuilderVersion}}</agent-builder.version>
<llm-agent-builder.version>{{agentBuilderVersion}}</llm-agent-builder.version>
</properties>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ public void launchCodeGenerator() {
// https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java
final CodegenConfigurator configurator = new CodegenConfigurator()
.setGroupId("io.github.alexcheng1982")
.setArtifactId("universities-openapi-agent-tool")
.setGeneratorName("Java") // use this codegen library
.addAdditionalProperty(AGENT_BUILDER_VERSION, "0.1.0-SNAPSHOT")
.setArtifactId("petstore-openapi-agent-tool")
.setGeneratorName("Java")
.setLibrary("native")
.addAdditionalProperty(AGENT_BUILDER_VERSION, "0.1.6")
.addAdditionalProperty("useEnumCaseInsensitive", true)
.setInputSpec(
"https://petstore3.swagger.io/api/v3/openapi.json")
Expand Down

0 comments on commit 1e03eec

Please sign in to comment.