Uses of Class
io.agentscope.core.chat.completions.model.ChatCompletionsChunk
Packages that use ChatCompletionsChunk
Package
Description
-
Uses of ChatCompletionsChunk in io.agentscope.core.chat.completions.model
Methods in io.agentscope.core.chat.completions.model that return ChatCompletionsChunkModifier and TypeMethodDescriptionstatic ChatCompletionsChunkChatCompletionsChunk.finishChunk(String id, String model, String finishReason) Create a finish chunk.static ChatCompletionsChunkCreate a text content chunk.static ChatCompletionsChunkChatCompletionsChunk.toolCallChunk(String id, String model, List<ToolCall> toolCalls) Create a tool call chunk.static ChatCompletionsChunkChatCompletionsChunk.toolResultChunk(String id, String model, String toolCallId, String toolName, String content) Create a tool result chunk. -
Uses of ChatCompletionsChunk in io.agentscope.core.chat.completions.streaming
Methods in io.agentscope.core.chat.completions.streaming that return ChatCompletionsChunkModifier and TypeMethodDescriptionChatCompletionsStreamingAdapter.createErrorChunk(Throwable error, String requestId, String model) Create an error chunk.Methods in io.agentscope.core.chat.completions.streaming that return types with arguments of type ChatCompletionsChunkModifier and TypeMethodDescriptionreactor.core.publisher.Flux<ChatCompletionsChunk>ChatCompletionsStreamingAdapter.convertEventToChunks(io.agentscope.core.agent.Event event, String requestId, String model) Convert an agent event to one or more streaming chunks.reactor.core.publisher.Flux<ChatCompletionsChunk>ChatCompletionsStreamingAdapter.stream(io.agentscope.core.ReActAgent agent, List<io.agentscope.core.message.Msg> messages, String requestId, String model) Stream agent events as OpenAI-compatible chunks.