struct ACP::Protocol::PlanUpdate

Overview

An execution plan for accomplishing complex tasks. See: https://agentclientprotocol.com/protocol/agent-plan

Included Modules

Defined in:

acp/protocol/updates.cr

Constructors

Instance Method Summary

Instance methods inherited from struct ACP::Protocol::SessionUpdate

session_update : String session_update, session_update=(session_update : String) session_update=, type : String type

Constructor methods inherited from struct ACP::Protocol::SessionUpdate

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(entries : Array(PlanEntry) = [] of PlanEntry, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

An execution plan for accomplishing complex tasks. See: https://agentclientprotocol.com/protocol/agent-plan


[View source]

Instance Method Detail

def entries : Array(PlanEntry) #

The list of tasks to be accomplished (required). When updating, the agent MUST send a complete list; the client replaces the entire plan with each update.


[View source]
def entries=(entries : Array(PlanEntry)) #

The list of tasks to be accomplished (required). When updating, the agent MUST send a complete list; the client replaces the entire plan with each update.


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

Extension metadata.


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

Extension metadata.


[View source]
def steps : Array(PlanEntry) #

@deprecated Use #entries instead. Backward-compatible alias.


[View source]