Uses of Class
io.github.easy4j.opencode.api.model.PromptRequest
Packages that use PromptRequest
Package
Description
-
Uses of PromptRequest in io.github.easy4j.opencode
Methods in io.github.easy4j.opencode with parameters of type PromptRequestModifier and TypeMethodDescriptionOpenCodeClient.chatCompletion(String sessionId, PromptRequest request) 同步提交聊天请求并返回完整响应。OpenCodeClient.chatCompletionAsync(String sessionId, PromptRequest request) 异步提交聊天请求;网络或解析失败通过返回的 Future 传播。OpenCodeClient.chatCompletionWithSession(PromptRequest request, String sessionKey) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.chatCompletionWithSession(PromptRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.chatCompletionWithSessionAsync(PromptRequest request, String sessionKey) 异步复用或创建稳定会话后提交聊天请求,不阻塞调用线程。 -
Uses of PromptRequest in io.github.easy4j.opencode.api
Methods in io.github.easy4j.opencode.api with parameters of type PromptRequestModifier and TypeMethodDescriptionOpenCodeHttpClient.chatCompletionWithSession(PromptRequest request, String sessionKey) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeHttpClient.chatCompletionWithSession(PromptRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeHttpClient.chatCompletionWithSessionAsync(PromptRequest request, String sessionKey) 异步复用或创建稳定会话后提交聊天请求,不阻塞调用线程。OpenCodeHttpClient.prompt(String sessionId, PromptRequest request) 向指定会话同步提交 Prompt,并等待 OpenCode Server 返回完整生成结果。OpenCodeHttpClient.prompt(String sessionId, PromptRequest request, HttpCallCancellation cancellation) 向指定会话同步提交 Prompt,并等待 OpenCode Server 返回完整生成结果。OpenCodeHttpClient.promptAsync(String sessionId, PromptRequest request) 向指定会话提交无需等待正文的异步 Prompt 请求。OpenCodeHttpClient.promptAsync(String sessionId, PromptRequest request, OpenCodeRequestContext context) 向指定会话提交无需等待正文的异步 Prompt 请求。OpenCodeHttpClient.promptCompletionAsync(String sessionId, PromptRequest request, HttpCallCancellation cancellation) 异步发送消息并等待完整 Prompt 结果。 -
Uses of PromptRequest in io.github.easy4j.opencode.api.mapper
Methods in io.github.easy4j.opencode.api.mapper that return PromptRequestModifier and TypeMethodDescriptionstatic PromptRequestChatMessageMapper.toPromptRequest(ChatRequest chatRequest) ChatRequest → PromptRequest。 -
Uses of PromptRequest in io.github.easy4j.opencode.api.model
Methods in io.github.easy4j.opencode.api.model that return PromptRequestModifier and TypeMethodDescriptionstatic PromptRequest快捷构造:纯文本 prompt。static PromptRequest快捷构造:带模型的纯文本 prompt。