@@ -196,6 +196,71 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
196196 The ID of the session to cancel operations for.
197197</ResponseField >
198198
199+ <a id = " session-close" ></a >
200+ ### <span class = " font-mono" >session/close</span >
201+
202+ ** UNSTABLE**
203+
204+ This capability is not part of the spec yet, and may be removed or changed at any point.
205+
206+ Closes an active session and frees up any resources associated with it.
207+
208+ This method is only available if the agent advertises the ` session.close ` capability.
209+
210+ The agent must cancel any ongoing work (as if ` session/cancel ` was called)
211+ and then free up any resources associated with the session.
212+
213+ #### <span class = " font-mono" >CloseSessionRequest</span >
214+
215+ ** UNSTABLE**
216+
217+ This capability is not part of the spec yet, and may be removed or changed at any point.
218+
219+ Request parameters for closing an active session.
220+
221+ If supported, the agent ** must** cancel any ongoing work related to the session
222+ (treat it as if ` session/cancel ` was called) and then free up any resources
223+ associated with the session.
224+
225+ Only available if the Agent supports the ` session.close ` capability.
226+
227+ ** Type:** Object
228+
229+ ** Properties:**
230+
231+ <ResponseField name = " _meta" type = { " object | null" } >
232+ The _ meta property is reserved by ACP to allow clients and agents to attach additional
233+ metadata to their interactions. Implementations MUST NOT make assumptions about values at
234+ these keys.
235+
236+ See protocol docs: [ Extensibility] ( https://agentclientprotocol.com/protocol/extensibility )
237+
238+ </ResponseField >
239+ <ResponseField name = " sessionId" type = { <a href = " #sessionid" >SessionId</a >} required >
240+ The ID of the session to close.
241+ </ResponseField >
242+
243+ #### <span class = " font-mono" >CloseSessionResponse</span >
244+
245+ ** UNSTABLE**
246+
247+ This capability is not part of the spec yet, and may be removed or changed at any point.
248+
249+ Response from closing a session.
250+
251+ ** Type:** Object
252+
253+ ** Properties:**
254+
255+ <ResponseField name = " _meta" type = { " object | null" } >
256+ The _ meta property is reserved by ACP to allow clients and agents to attach additional
257+ metadata to their interactions. Implementations MUST NOT make assumptions about values at
258+ these keys.
259+
260+ See protocol docs: [ Extensibility] ( https://agentclientprotocol.com/protocol/extensibility )
261+
262+ </ResponseField >
263+
199264<a id = " session-fork" ></a >
200265### <span class = " font-mono" >session/fork</span >
201266
@@ -897,71 +962,6 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
897962
898963</ResponseField >
899964
900- <a id = " session-stop" ></a >
901- ### <span class = " font-mono" >session/stop</span >
902-
903- ** UNSTABLE**
904-
905- This capability is not part of the spec yet, and may be removed or changed at any point.
906-
907- Stops an active session and frees up any resources associated with it.
908-
909- This method is only available if the agent advertises the ` session.stop ` capability.
910-
911- The agent must cancel any ongoing work (as if ` session/cancel ` was called)
912- and then free up any resources associated with the session.
913-
914- #### <span class = " font-mono" >StopSessionRequest</span >
915-
916- ** UNSTABLE**
917-
918- This capability is not part of the spec yet, and may be removed or changed at any point.
919-
920- Request parameters for stopping an active session.
921-
922- If supported, the agent ** must** cancel any ongoing work related to the session
923- (treat it as if ` session/cancel ` was called) and then free up any resources
924- associated with the session.
925-
926- Only available if the Agent supports the ` session.stop ` capability.
927-
928- ** Type:** Object
929-
930- ** Properties:**
931-
932- <ResponseField name = " _meta" type = { " object | null" } >
933- The _ meta property is reserved by ACP to allow clients and agents to attach additional
934- metadata to their interactions. Implementations MUST NOT make assumptions about values at
935- these keys.
936-
937- See protocol docs: [ Extensibility] ( https://agentclientprotocol.com/protocol/extensibility )
938-
939- </ResponseField >
940- <ResponseField name = " sessionId" type = { <a href = " #sessionid" >SessionId</a >} required >
941- The ID of the session to stop.
942- </ResponseField >
943-
944- #### <span class = " font-mono" >StopSessionResponse</span >
945-
946- ** UNSTABLE**
947-
948- This capability is not part of the spec yet, and may be removed or changed at any point.
949-
950- Response from stopping a session.
951-
952- ** Type:** Object
953-
954- ** Properties:**
955-
956- <ResponseField name = " _meta" type = { " object | null" } >
957- The _ meta property is reserved by ACP to allow clients and agents to attach additional
958- metadata to their interactions. Implementations MUST NOT make assumptions about values at
959- these keys.
960-
961- See protocol docs: [ Extensibility] ( https://agentclientprotocol.com/protocol/extensibility )
962-
963- </ResponseField >
964-
965965## Client
966966
967967Defines the interface that ACP-compliant clients must implement.
@@ -3387,12 +3387,35 @@ This capability is not part of the spec yet, and may be removed or changed at an
33873387Whether the agent supports ` session/resume ` .
33883388
33893389</ResponseField >
3390- <ResponseField name = " stop" type = { <><span ><a href = " #sessionstopcapabilities " >SessionStopCapabilities </a ></span ><span > | null</span ></>} >
3390+ <ResponseField name = " stop" type = { <><span ><a href = " #sessionclosecapabilities " >SessionCloseCapabilities </a ></span ><span > | null</span ></>} >
33913391 ** UNSTABLE**
33923392
33933393This capability is not part of the spec yet, and may be removed or changed at any point.
33943394
3395- Whether the agent supports ` session/stop ` .
3395+ Whether the agent supports ` session/close ` .
3396+
3397+ </ResponseField >
3398+
3399+ ## <span class = " font-mono" >SessionCloseCapabilities</span >
3400+
3401+ ** UNSTABLE**
3402+
3403+ This capability is not part of the spec yet, and may be removed or changed at any point.
3404+
3405+ Capabilities for the ` session/close ` method.
3406+
3407+ By supplying ` \{\} ` it means that the agent supports closing of sessions.
3408+
3409+ ** Type:** Object
3410+
3411+ ** Properties:**
3412+
3413+ <ResponseField name = " _meta" type = { " object | null" } >
3414+ The _ meta property is reserved by ACP to allow clients and agents to attach additional
3415+ metadata to their interactions. Implementations MUST NOT make assumptions about values at
3416+ these keys.
3417+
3418+ See protocol docs: [ Extensibility] ( https://agentclientprotocol.com/protocol/extensibility )
33963419
33973420</ResponseField >
33983421
@@ -3818,29 +3841,6 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
38183841
38193842</ResponseField >
38203843
3821- ## <span class = " font-mono" >SessionStopCapabilities</span >
3822-
3823- ** UNSTABLE**
3824-
3825- This capability is not part of the spec yet, and may be removed or changed at any point.
3826-
3827- Capabilities for the ` session/stop ` method.
3828-
3829- By supplying ` \{\} ` it means that the agent supports stopping of sessions.
3830-
3831- ** Type:** Object
3832-
3833- ** Properties:**
3834-
3835- <ResponseField name = " _meta" type = { " object | null" } >
3836- The _ meta property is reserved by ACP to allow clients and agents to attach additional
3837- metadata to their interactions. Implementations MUST NOT make assumptions about values at
3838- these keys.
3839-
3840- See protocol docs: [ Extensibility] ( https://agentclientprotocol.com/protocol/extensibility )
3841-
3842- </ResponseField >
3843-
38443844## <span class = " font-mono" >SessionUpdate</span >
38453845
38463846Different types of updates that can be sent during session processing.
0 commit comments