ExperimentalThe ID of the session to close.
Optional_The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Request parameters for closing an active session.
The agent must cancel any ongoing work related to the session (treat it as if
session/cancelwas called) and then free up any resources associated with the session.When closing cancels active foreground work, the Agent MUST send the final updates for that work and the idle
state_updatewithstopReason: "cancelled"before responding successfully tosession/close. Closing an idle session does not itself require another idle update.Closing may also cancel pending
session/promptrequests, including queued prompts. If closing prevents a prompt's user message from being inserted, the Agent MUST answer that request with-32800(Request Cancelled). If the message has already been inserted, the Agent MUST respond successfully with itsmessageId. Prompt responses need not precede the close response.