agent/service.proto
- API version: version not set
- Build date: 2024-11-18T16:39:15.166128119Z[Etc/UTC]
- Generator version: 7.9.0
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Automatically generated by the OpenAPI Generator
Building the API client library requires:
- Java 1.8+
- Maven (3.8.3+)/Gradle (7.2+)
To install the API client library to your local Maven repository, simply execute:
mvn clean installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deployRefer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-java-client</artifactId>
<version>version not set</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
repositories {
mavenCentral() // Needed if the 'openapi-java-client' jar has been published to maven central.
mavenLocal() // Needed if the 'openapi-java-client' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:openapi-java-client:version not set"
}At first generate the JAR by executing:
mvn clean packageThen manually install the following JARs:
target/openapi-java-client-version not set.jartarget/lib/*.jar
Please follow the installation instruction and execute the following Java code:
// Import classes:
import GeminiCommerce.Agent.ApiClient;
import GeminiCommerce.Agent.ApiException;
import GeminiCommerce.Agent.Configuration;
import GeminiCommerce.Agent.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AgentApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://agent.api.gogemini.io");
// Configure API key authorization: Authorization
ApiKeyAuth Authorization = (ApiKeyAuth) defaultClient.getAuthentication("Authorization");
Authorization.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.setApiKeyPrefix("Token");
AgentApi apiInstance = new AgentApi(defaultClient);
String tenantId = "tenantId_example"; // String |
AgentCreateAgentRequest body = new AgentCreateAgentRequest(); // AgentCreateAgentRequest |
try {
AgentAgentEntity result = apiInstance.agentCreateAgent(tenantId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AgentApi#agentCreateAgent");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}All URIs are relative to https://agent.api.gogemini.io
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AgentApi | agentCreateAgent | POST /v1/{tenantId}/agent/create | |
| AgentApi | agentGetAgent | GET /v1/{tenantId}/agent/{id} | |
| AgentApi | agentListAgents | POST /v1/{tenantId}/agent/list/page-size/{pageSize} | |
| AgentApi | agentUpdateAgent | PUT /v1/{tenantId}/agent/{id} |
- AgentAgentEntity
- AgentCreateAgentRequest
- AgentListAgentsRequest
- AgentListResponse
- AgentSortOrder
- AgentUpdateAgentRequest
- AgentUpdatePayload
- ListRequestFilters
- ListRequestSort
- ProtobufAny
- RpcStatus
- SortSortField
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
- Type: API key
- API key parameter name: X-Gem-Token
- Location: HTTP header
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.