v8.0.1 · Interface
agent
Methods exported by an agent. The client calls these.
Maps to the JSON-RPC methods listed under "Agent" in the protocol
overview:
Type Aliases
T
error
TA protocol error.
initialize-request
T<hr />
initialize-response
TResponse to <code>initialize</code>.
authenticate-request
TParameters to <code>authenticate</code>.
session-mode-id
TUnique identifier for a session mode.
session-model-id
TUnique identifier for a session model. <strong>UNSTABLE</strong> — mirrors
session-config-id
T<hr />
session-config-value-id
TUnique identifier for one selectable value of a configuration
session-config-option
TA single-value selector (dropdown) configuration option and its
new-session-request
T<hr />
new-session-response
TResponse to <code>new-session</code>.
load-session-request
TParameters to <code>load-session</code> (only valid if
load-session-response
TResponse to <code>load-session</code>.
list-sessions-request
TParameters to <code>list-sessions</code>. All fields are optional; an empty
list-sessions-response
TResponse to <code>list-sessions</code>.
resume-session-request
TParameters to <code>resume-session</code>. Reconnects to an existing session
resume-session-response
TResponse to <code>resume-session</code>.
content-block
TA displayable block of content.
prompt-response
Functions
F
initialize
FEstablish the connection. Negotiate protocol version, exchange
authenticate
FAuthenticate using one of the methods advertised in
new-session
FCreate a fresh conversation session. MUST be called after
load-session
FResume a previous session, replaying its history. The agent
list-sessions
FDiscover existing sessions known to the agent. Pagination via
resume-session
Reconnect to an existing session without replaying history.