Uses of Class
io.github.easy4j.opencode.api.model.PromptResult
Packages that use PromptResult
Package
Description
-
Uses of PromptResult in io.github.easy4j.opencode
Methods in io.github.easy4j.opencode that return PromptResultModifier and TypeMethodDescriptionOpenCodeClient.chatCompletion(String sessionId, PromptRequest request) 同步提交聊天请求并返回完整响应。OpenCodeClient.chatCompletion(String sessionId, String text) 同步提交聊天请求并返回完整响应。OpenCodeClient.chatCompletion(String sessionId, String text, String providerID, String modelID) 同步提交聊天请求并返回完整响应。OpenCodeClient.chatCompletionWithSession(PromptRequest request, String sessionKey) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.chatCompletionWithSession(PromptRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.chatCompletionWithSession(String text, String sessionKey) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.chatCompletionWithSession(String text, String providerID, String modelID, String sessionKey) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.runSessionCommand(String sessionId, String command, String arguments, String agent, String model) 在指定会话中执行斜杠命令,并返回生成结果。Methods in io.github.easy4j.opencode that return types with arguments of type PromptResultModifier and TypeMethodDescriptionOpenCodeClient.getMessages(String sessionId) 通过 OpenCode Server HTTP API 获取会话消息。 -
Uses of PromptResult in io.github.easy4j.opencode.api
Methods in io.github.easy4j.opencode.api that return PromptResultModifier and TypeMethodDescriptionOpenCodeHttpClient.chatCompletionWithSession(PromptRequest request, String sessionKey) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeHttpClient.chatCompletionWithSession(PromptRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeHttpClient.prompt(String sessionId, PromptRequest request) 向指定会话同步提交 Prompt,并等待 OpenCode Server 返回完整生成结果。OpenCodeHttpClient.prompt(String sessionId, PromptRequest request, HttpCallCancellation cancellation) 向指定会话同步提交 Prompt,并等待 OpenCode Server 返回完整生成结果。OpenCodeHttpClient.runSessionCommand(String sessionId, String command, String arguments, String agent, String model) POST /session/:id/command,向 session 发送 slash command。Methods in io.github.easy4j.opencode.api that return types with arguments of type PromptResultModifier and TypeMethodDescriptionOpenCodeHttpClient.getMessages(String sessionId) 通过 OpenCode Server HTTP API 获取会话消息。OpenCodeHttpClient.promptCompletionAsync(String sessionId, PromptRequest request, HttpCallCancellation cancellation) 异步发送消息并等待完整 Prompt 结果。 -
Uses of PromptResult in io.github.easy4j.opencode.api.mapper
Methods in io.github.easy4j.opencode.api.mapper with parameters of type PromptResultModifier and TypeMethodDescriptionOpenCodeCallbackParser.parseFromPromptResult(PromptResult result) 从 PromptResult 中提取文本内容并解析为 Map。static ChatResponseChatMessageMapper.toChatResponse(PromptResult result) PromptResult → ChatResponse。