application-agent/command-tool.lisp
Return command's active required and named argument definitions.
Return a strict JSON Schema object for ARGUMENT specifications.
Parse argument from a decoded JSON alist with its presentation type.
Return a validated CLIM command form for decoded JSON arguments.
The application side is deliberately just these two methods. There is no unsafe default for a command that claims it needs the canvas thread.
Return application's McCLIM command frame.
Run no-argument function briefly at application's frame boundary.
Call function with agent's dynamic command context.
Whether command must execute at its application's frame boundary.
The presentation type used to show command's value.
The provider line limit for command's presented output.
Return the provider result after values produced text.
Finish value's off-canvas work on the provider worker before presentation.
Open a provider-backed class attached to application and commands.
Headings, paragraphs, figures and their IDs, mentions, marks.
(argument-name)(options)Logical disjunction of tests and raw truth values.
Logical negation of one test or raw truth value.
(description required-p keyword-p)Test whether two compatible scalars are equal.
(argument)((name symbol) (type (eql 'arithmetic-operator)))Logical conjunction of tests and raw truth values.
(arguments)(command)Test whether one compatible scalar is greater than another.
(command)(command &key description)(argument arguments)(argument arguments)(tool arguments)(tool arguments)(application function)Run no-argument FUNCTION briefly at APPLICATION's frame boundary.
(agent function)Call FUNCTION with AGENT's dynamic command context.
Provider agent plus application owner, transcript, observers, and lifecycle.
The APPLICATION-AGENT whose CLIM command is executing dynamically.
The HANDLE-TABLE dynamically current while an agent command is handled.
(command)Whether COMMAND must execute at its application's frame boundary.
(command value)The presentation type used to show COMMAND's VALUE.
(command)The provider line limit for COMMAND's presented output.
(command values text)Return the provider result after VALUES produced TEXT.
(command value)Finish VALUE's off-canvas work on the provider worker before presentation.
(agent command)(arguments)((tool command-tool) arguments (agent application-agent))(agent call)(object &key (type (presentation-type-of object))
(view +model-view+))(agent call)(&key application model commands instructions reasoning-summary
reasoning-effort (api-key (openai:default-api-key))
(class 'application-agent) initargs)
A command argument is semantic definition metadata captured from McCLIM's parser once. It can drive provider JSON today and parameter prompting in M-x later without coupling either interface to the other.