struct
ACP::Protocol::SessionPromptResult
- ACP::Protocol::SessionPromptResult
- Struct
- Value
- Object
Overview
Result of the session/prompt method (Agent → Client).
See: https://agentclientprotocol.com/protocol/prompt-turn#stop-reasons
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(stop_reason : String, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#stop_reason : String
Reason the agent stopped generating (required).
-
#stop_reason=(stop_reason : String)
Reason the agent stopped generating (required).
Constructor Detail
Instance Method Detail
def stop_reason : String
#
Reason the agent stopped generating (required). Values: "end_turn", "max_tokens", "max_turn_requests", "refusal", "cancelled"
def stop_reason=(stop_reason : String)
#
Reason the agent stopped generating (required). Values: "end_turn", "max_tokens", "max_turn_requests", "refusal", "cancelled"