public class ChatResponse extends Object
OpenCode internally returns PromptResult; the SDK automatically converts:
PromptResult.getTextContent() is mapped to choices[0].message.content.
ChatRequest,
ChatMessage,
ChatMessageMapper| Modifier and Type | Class and Description |
|---|---|
static class |
ChatResponse.Choice
响应中的一个选择。
|
static class |
ChatResponse.Usage
Token 使用统计。
|
| Constructor and Description |
|---|
ChatResponse() |
public String getContent()
Copyright © 2026. All rights reserved.