public static class AcpSchema.PromptResponse
extends java.lang.Object
| 构造器和说明 |
|---|
PromptResponse(AcpSchema.StopReason stopReason) |
| 限定符和类型 | 方法和说明 |
|---|---|
static AcpSchema.PromptResponse |
endTurn()
Creates a response indicating the agent has finished its turn.
|
java.util.Map<java.lang.String,java.lang.Object> |
meta() |
static AcpSchema.PromptResponse |
refusal()
Creates a response indicating the agent refused the request.
|
AcpSchema.StopReason |
stopReason() |
static AcpSchema.PromptResponse |
text(java.lang.String text)
Creates a response indicating the agent has finished its turn with a text result.
|
public PromptResponse(AcpSchema.StopReason stopReason)
public AcpSchema.StopReason stopReason()
public java.util.Map<java.lang.String,java.lang.Object> meta()
public static AcpSchema.PromptResponse endTurn()
public static AcpSchema.PromptResponse text(java.lang.String text)
text - The text (for documentation purposes; actual content sent via context)public static AcpSchema.PromptResponse refusal()