struct ACP::Protocol::SessionPromptResult

Overview

Result of the session/prompt method (Agent → Client). See: https://agentclientprotocol.com/protocol/prompt-turn#stop-reasons

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(stop_reason : String, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]
def stop_reason : String #

Reason the agent stopped generating (required). Values: "end_turn", "max_tokens", "max_turn_requests", "refusal", "cancelled"


[View source]
def stop_reason=(stop_reason : String) #

Reason the agent stopped generating (required). Values: "end_turn", "max_tokens", "max_turn_requests", "refusal", "cancelled"


[View source]