Uses of Class
io.github.easy4j.opencode.api.model.ChatRequest
Packages that use ChatRequest
Package
Description
-
Uses of ChatRequest in io.github.easy4j.opencode
Methods in io.github.easy4j.opencode with parameters of type ChatRequestModifier and TypeMethodDescriptionOpenCodeClient.chatCompletion(String sessionId, ChatRequest request) 同步提交聊天请求并返回完整响应。OpenCodeClient.chatCompletionAsync(String sessionId, ChatRequest request) 异步完成指定会话的聊天请求。OpenCodeClient.chatCompletionStream(ChatRequest request, String sessionKey) 创建流式聊天响应,异步订阅会话事件并持续交付文本增量。OpenCodeClient.chatCompletionStream(ChatRequest request, String sessionKey, OpenCodeRequestContext context) 创建流式聊天响应,异步订阅会话事件并持续交付文本增量。OpenCodeClient.chatCompletionStream(ChatRequest request, String sessionKey, OpenCodeRequestContext context, Consumer<String> deltaConsumer) 流式对话,并在订阅启动前绑定增量回调,避免丢失首批分片。OpenCodeClient.chatCompletionWithSession(ChatRequest request, String sessionKey) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.chatCompletionWithSession(ChatRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.chatCompletionWithSessionAsync(ChatRequest request, String sessionKey, HttpCallCancellation cancellation) 异步查找会话并完成聊天请求。 -
Uses of ChatRequest in io.github.easy4j.opencode.api
Methods in io.github.easy4j.opencode.api with parameters of type ChatRequestModifier and TypeMethodDescriptionOpenCodeChatClient.chatCompletion(String sessionId, ChatRequest request) 同步提交聊天请求并返回完整响应。OpenCodeChatClient.chatCompletionAsync(String sessionId, ChatRequest request) 异步完成指定会话的聊天请求。OpenCodeChatClient.chatCompletionStream(ChatRequest request, String sessionKey) 创建流式聊天响应,异步订阅会话事件并持续交付文本增量。OpenCodeChatClient.chatCompletionStream(ChatRequest request, String sessionKey, OpenCodeRequestContext context) 创建流式聊天响应,异步订阅会话事件并持续交付文本增量。OpenCodeChatClient.chatCompletionStream(ChatRequest request, String sessionKey, OpenCodeRequestContext context, Consumer<String> deltaConsumer) 在事件订阅启动前绑定增量回调,避免丢失首批分片。OpenCodeChatClient.chatCompletionWithSession(ChatRequest request, String sessionKey) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeChatClient.chatCompletionWithSession(ChatRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeChatClient.chatCompletionWithSessionAsync(ChatRequest request, String sessionKey, HttpCallCancellation cancellation) 异步查找会话并完成聊天请求。 -
Uses of ChatRequest in io.github.easy4j.opencode.api.mapper
Methods in io.github.easy4j.opencode.api.mapper with parameters of type ChatRequestModifier and TypeMethodDescriptionstatic PromptRequestChatMessageMapper.toPromptRequest(ChatRequest chatRequest) ChatRequest → PromptRequest。 -
Uses of ChatRequest in io.github.easy4j.opencode.api.model
Methods in io.github.easy4j.opencode.api.model that return ChatRequestModifier and TypeMethodDescriptionstatic ChatRequest快捷构造:单条 user 消息。static ChatRequest快捷构造:单条 user 消息 + 模型。