struct
ACP::Protocol::SessionCapabilities
- ACP::Protocol::SessionCapabilities
- Struct
- Value
- Object
Overview
Session capabilities supported by the agent. As a baseline, all Agents MUST support session/new, session/prompt, session/cancel, and session/update. See: https://agentclientprotocol.com/protocol/initialization#session-capabilities
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/capabilities.crConstructors
- .new(pull : JSON::PullParser)
- .new(list : SessionListCapabilities | Nil = nil, resume : SessionResumeCapabilities | Nil = nil, close : SessionCloseCapabilities | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#close : SessionCloseCapabilities | Nil
When present (non-null), indicates the agent supports
session/close. -
#close=(close : SessionCloseCapabilities | Nil)
When present (non-null), indicates the agent supports
session/close. -
#close? : Bool
Returns true if the agent supports closing sessions.
-
#list : SessionListCapabilities | Nil
When present (non-null), indicates the agent supports
session/list. -
#list=(list : SessionListCapabilities | Nil)
When present (non-null), indicates the agent supports
session/list. -
#list? : Bool
Returns true if the agent supports session listing.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#resume : SessionResumeCapabilities | Nil
When present (non-null), indicates the agent supports
session/resume. -
#resume=(resume : SessionResumeCapabilities | Nil)
When present (non-null), indicates the agent supports
session/resume. -
#resume? : Bool
Returns true if the agent supports resuming sessions.
Constructor Detail
Instance Method Detail
When present (non-null), indicates the agent supports session/close.
When present (non-null), indicates the agent supports session/close.
When present (non-null), indicates the agent supports session/list.
The value is a SessionListCapabilities object.
When present (non-null), indicates the agent supports session/list.
The value is a SessionListCapabilities object.
When present (non-null), indicates the agent supports session/resume.
When present (non-null), indicates the agent supports session/resume.