Index
All Classes and Interfaces|All Packages
A
- assistantWithToolCalls(String, List<ToolCall>) - Static method in class io.agentscope.core.chat.completions.model.ChatMessage
-
Creates an assistant message with tool calls.
B
- buildErrorResponse(ChatCompletionsRequest, Throwable, String) - Method in class io.agentscope.core.chat.completions.builder.ChatCompletionsResponseBuilder
-
Build an error response.
- buildResponse(ChatCompletionsRequest, Msg, String) - Method in class io.agentscope.core.chat.completions.builder.ChatCompletionsResponseBuilder
-
Build a successful chat completion response.
C
- ChatChoice - Class in io.agentscope.core.chat.completions.model
-
Single choice in a Chat Completions style response.
- ChatChoice() - Constructor for class io.agentscope.core.chat.completions.model.ChatChoice
- ChatCompletionsChunk - Class in io.agentscope.core.chat.completions.model
-
Streaming chunk for Chat Completions API.
- ChatCompletionsChunk() - Constructor for class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
-
Default constructor.
- ChatCompletionsChunk(String, String) - Constructor for class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
-
Create a chunk with basic info.
- ChatCompletionsRequest - Class in io.agentscope.core.chat.completions.model
-
Request payload for the Chat Completions HTTP API.
- ChatCompletionsRequest() - Constructor for class io.agentscope.core.chat.completions.model.ChatCompletionsRequest
- ChatCompletionsResponse - Class in io.agentscope.core.chat.completions.model
-
Response payload for the Chat Completions HTTP API.
- ChatCompletionsResponse() - Constructor for class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- ChatCompletionsResponse.Usage - Class in io.agentscope.core.chat.completions.model
-
Token usage statistics following OpenAI's format.
- ChatCompletionsResponseBuilder - Class in io.agentscope.core.chat.completions.builder
-
Service for building Chat Completions API responses.
- ChatCompletionsResponseBuilder() - Constructor for class io.agentscope.core.chat.completions.builder.ChatCompletionsResponseBuilder
- ChatCompletionsStreamingAdapter - Class in io.agentscope.core.chat.completions.streaming
-
Framework-agnostic adapter for handling streaming chat completion responses.
- ChatCompletionsStreamingAdapter() - Constructor for class io.agentscope.core.chat.completions.streaming.ChatCompletionsStreamingAdapter
-
Constructs a new
ChatCompletionsStreamingAdapter. - ChatMessage - Class in io.agentscope.core.chat.completions.model
-
Chat message representation for the Chat Completions API.
- ChatMessage() - Constructor for class io.agentscope.core.chat.completions.model.ChatMessage
-
Default constructor for deserialization.
- ChatMessage(String, String) - Constructor for class io.agentscope.core.chat.completions.model.ChatMessage
-
Creates a simple text message.
- ChatMessageConverter - Class in io.agentscope.core.chat.completions.converter
-
Service for converting ChatMessage DTOs to framework internal Msg objects.
- ChatMessageConverter() - Constructor for class io.agentscope.core.chat.completions.converter.ChatMessageConverter
- convertEventToChunks(Event, String, String) - Method in class io.agentscope.core.chat.completions.streaming.ChatCompletionsStreamingAdapter
-
Convert an agent event to one or more streaming chunks.
- convertMessages(List<ChatMessage>) - Method in class io.agentscope.core.chat.completions.converter.ChatMessageConverter
-
Converts a list of
ChatMessageDTOs to framework internalMsgobjects, supporting full conversation history including tool calls. - convertMsgToChatMessage(Msg) - Method in class io.agentscope.core.chat.completions.builder.ChatCompletionsResponseBuilder
-
Convert an internal Msg to an external ChatMessage.
- convertToToolSchema(OpenAITool) - Method in class io.agentscope.core.chat.completions.converter.OpenAIToolConverter
-
Converts a single OpenAI tool to a ToolSchema.
- convertToToolSchemas(List<OpenAITool>) - Method in class io.agentscope.core.chat.completions.converter.OpenAIToolConverter
-
Converts a list of OpenAI tools to AgentScope ToolSchemas.
- createErrorChunk(Throwable, String, String) - Method in class io.agentscope.core.chat.completions.streaming.ChatCompletionsStreamingAdapter
-
Create an error chunk.
E
- extractTextContent(Msg) - Method in class io.agentscope.core.chat.completions.builder.ChatCompletionsResponseBuilder
-
Extract text content from a Msg safely.
F
- finishChunk(String, String, String) - Static method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
-
Create a finish chunk.
- FunctionCall() - Constructor for class io.agentscope.core.chat.completions.model.ToolCall.FunctionCall
-
Default constructor for deserialization.
- FunctionCall(String, String) - Constructor for class io.agentscope.core.chat.completions.model.ToolCall.FunctionCall
-
Creates a new function call.
G
- getArguments() - Method in class io.agentscope.core.chat.completions.model.ToolCall.FunctionCall
- getChoices() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- getChoices() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- getCompletionTokens() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse.Usage
- getContent() - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- getCreated() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- getCreated() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- getDelta() - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- getDescription() - Method in class io.agentscope.core.chat.completions.model.OpenAIToolFunction
- getFinishReason() - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- getFunction() - Method in class io.agentscope.core.chat.completions.model.OpenAITool
- getFunction() - Method in class io.agentscope.core.chat.completions.model.ToolCall
- getId() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- getId() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- getId() - Method in class io.agentscope.core.chat.completions.model.ToolCall
- getIndex() - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- getIndex() - Method in class io.agentscope.core.chat.completions.model.ToolCall
- getLogprobs() - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- getMessage() - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- getMessages() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsRequest
- getModel() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- getModel() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsRequest
- getModel() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- getName() - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- getName() - Method in class io.agentscope.core.chat.completions.model.OpenAIToolFunction
- getName() - Method in class io.agentscope.core.chat.completions.model.ToolCall.FunctionCall
- getObject() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- getObject() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- getParameters() - Method in class io.agentscope.core.chat.completions.model.OpenAIToolFunction
- getPromptTokens() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse.Usage
- getRole() - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- getStream() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsRequest
- getStrict() - Method in class io.agentscope.core.chat.completions.model.OpenAIToolFunction
- getToolCallId() - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- getToolCalls() - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- getTools() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsRequest
- getTotalTokens() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse.Usage
- getType() - Method in class io.agentscope.core.chat.completions.model.OpenAITool
- getType() - Method in class io.agentscope.core.chat.completions.model.ToolCall
- getUsage() - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
I
- io.agentscope.core.chat.completions.builder - package io.agentscope.core.chat.completions.builder
- io.agentscope.core.chat.completions.converter - package io.agentscope.core.chat.completions.converter
- io.agentscope.core.chat.completions.model - package io.agentscope.core.chat.completions.model
- io.agentscope.core.chat.completions.streaming - package io.agentscope.core.chat.completions.streaming
O
- OpenAITool - Class in io.agentscope.core.chat.completions.model
-
OpenAI tool definition for Chat Completions API requests.
- OpenAITool() - Constructor for class io.agentscope.core.chat.completions.model.OpenAITool
-
Default constructor for deserialization.
- OpenAITool(OpenAIToolFunction) - Constructor for class io.agentscope.core.chat.completions.model.OpenAITool
-
Creates a new OpenAITool with the specified function.
- OpenAIToolConverter - Class in io.agentscope.core.chat.completions.converter
-
Converter for converting OpenAI tool format to AgentScope ToolSchema.
- OpenAIToolConverter() - Constructor for class io.agentscope.core.chat.completions.converter.OpenAIToolConverter
- OpenAIToolFunction - Class in io.agentscope.core.chat.completions.model
-
OpenAI tool function definition for Chat Completions API requests.
- OpenAIToolFunction() - Constructor for class io.agentscope.core.chat.completions.model.OpenAIToolFunction
-
Default constructor for deserialization.
S
- setArguments(String) - Method in class io.agentscope.core.chat.completions.model.ToolCall.FunctionCall
- setChoices(List<ChatChoice>) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- setChoices(List<ChatChoice>) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- setCompletionTokens(Integer) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse.Usage
- setContent(String) - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- setCreated(long) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- setCreated(long) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- setDelta(ChatMessage) - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- setDescription(String) - Method in class io.agentscope.core.chat.completions.model.OpenAIToolFunction
- setFinishReason(String) - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- setFunction(OpenAIToolFunction) - Method in class io.agentscope.core.chat.completions.model.OpenAITool
- setFunction(ToolCall.FunctionCall) - Method in class io.agentscope.core.chat.completions.model.ToolCall
- setId(String) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- setId(String) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- setId(String) - Method in class io.agentscope.core.chat.completions.model.ToolCall
- setIndex(int) - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- setIndex(Integer) - Method in class io.agentscope.core.chat.completions.model.ToolCall
- setLogprobs(Object) - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- setMessage(ChatMessage) - Method in class io.agentscope.core.chat.completions.model.ChatChoice
- setMessages(List<ChatMessage>) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsRequest
- setModel(String) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- setModel(String) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsRequest
- setModel(String) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- setName(String) - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- setName(String) - Method in class io.agentscope.core.chat.completions.model.OpenAIToolFunction
- setName(String) - Method in class io.agentscope.core.chat.completions.model.ToolCall.FunctionCall
- setObject(String) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
- setObject(String) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- setParameters(Map<String, Object>) - Method in class io.agentscope.core.chat.completions.model.OpenAIToolFunction
- setPromptTokens(Integer) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse.Usage
- setRole(String) - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- setStream(Boolean) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsRequest
- setStrict(Boolean) - Method in class io.agentscope.core.chat.completions.model.OpenAIToolFunction
- setToolCallId(String) - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- setToolCalls(List<ToolCall>) - Method in class io.agentscope.core.chat.completions.model.ChatMessage
- setTools(List<OpenAITool>) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsRequest
- setTotalTokens(Integer) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse.Usage
- setType(String) - Method in class io.agentscope.core.chat.completions.model.OpenAITool
- setType(String) - Method in class io.agentscope.core.chat.completions.model.ToolCall
- setUsage(ChatCompletionsResponse.Usage) - Method in class io.agentscope.core.chat.completions.model.ChatCompletionsResponse
- stream(ReActAgent, List<Msg>, String, String) - Method in class io.agentscope.core.chat.completions.streaming.ChatCompletionsStreamingAdapter
-
Stream agent events as OpenAI-compatible chunks.
T
- textChunk(String, String, String) - Static method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
-
Create a text content chunk.
- ToolCall - Class in io.agentscope.core.chat.completions.model
-
Represents a tool call in OpenAI-compatible format.
- ToolCall() - Constructor for class io.agentscope.core.chat.completions.model.ToolCall
-
Default constructor for deserialization.
- ToolCall(Integer, String, String, String) - Constructor for class io.agentscope.core.chat.completions.model.ToolCall
-
Creates a new tool call with index (for streaming).
- ToolCall(String, String, String) - Constructor for class io.agentscope.core.chat.completions.model.ToolCall
-
Creates a new tool call.
- ToolCall.FunctionCall - Class in io.agentscope.core.chat.completions.model
-
Represents the function details within a tool call.
- toolCallChunk(String, String, List<ToolCall>) - Static method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
-
Create a tool call chunk.
- toolResult(String, String, String) - Static method in class io.agentscope.core.chat.completions.model.ChatMessage
-
Creates a tool result message.
- toolResultChunk(String, String, String, String, String) - Static method in class io.agentscope.core.chat.completions.model.ChatCompletionsChunk
-
Create a tool result chunk.
U
- Usage() - Constructor for class io.agentscope.core.chat.completions.model.ChatCompletionsResponse.Usage
- Usage(Integer, Integer, Integer) - Constructor for class io.agentscope.core.chat.completions.model.ChatCompletionsResponse.Usage
All Classes and Interfaces|All Packages