| Package | Description |
|---|---|
| ai.z.openapi.api.agents | |
| ai.z.openapi.api.chat | |
| ai.z.openapi.service.agents |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<ModelData> |
AgentsApi.agentsCompletionSync(AgentsCompletionRequest request)
Create a synchronous agent completion with GLM-4 All Tools Waits for the agent to
complete complex task execution and returns the final result Supports automatic
tool selection including CogView3 image generation, Python code interpreter, and
web browsing
|
io.reactivex.rxjava3.core.Single<ModelData> |
AgentsApi.queryAgentsAsyncResult(AgentAsyncResultRetrieveParams request)
Query the result of an asynchronous agent execution Retrieves the agent execution
result using the task parameters for long-running tasks Useful for complex
multi-tool operations that require extended processing time
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<ModelData> |
ChatApi.createChatCompletion(ChatCompletionCreateParams request)
Create a synchronous chat completion with immediate response Waits for the GLM-4
model to complete execution and returns the final result Supports complex
reasoning, tool calling, function execution, and multi-modal understanding Features
advanced capabilities like web search integration, code interpretation, and image
analysis
|
io.reactivex.rxjava3.core.Single<ModelData> |
ChatApi.createChatCompletion(ChatCompletionCreateParams request,
Map<String,String> headers)
Create a synchronous chat completion with custom headers support Waits for the
GLM-4 model to complete execution and returns the final result with custom HTTP
headers Supports complex reasoning, tool calling, function execution, and
multi-modal understanding Features advanced capabilities like web search
integration, code interpretation, and image analysis
|
io.reactivex.rxjava3.core.Single<ModelData> |
ChatApi.createChatCompletionAsync(ChatCompletionCreateParams request)
Create an asynchronous chat completion for long-running tasks Submits the request
and returns immediately with a task ID for later result retrieval Ideal for complex
reasoning tasks, long document processing, or batch operations Supports advanced
GLM-4 models with extended context and computational requirements
|
io.reactivex.rxjava3.core.Single<ModelData> |
ChatApi.queryAsyncResult(String id)
Query the result of an asynchronous chat completion task Retrieves the completion
result or current status using the task ID from async request Provides detailed
progress information for long-running tasks and complex reasoning operations
Supports polling-based result retrieval with comprehensive status reporting
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<ModelData> |
AgentService.retrieveAgentAsyncResult(AgentAsyncResultRetrieveParams request)
Retrieves the result of an asynchronous agent operation.
|
io.reactivex.rxjava3.core.Single<ModelData> |
AgentServiceImpl.retrieveAgentAsyncResult(AgentAsyncResultRetrieveParams request) |
Copyright © 2025. All rights reserved.