Skip to content

CancelToolCallRequest

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970870918384["tool_calls.CancelToolCallRequest"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970870918384
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Parameters of tool_call/cancel: cancel one tool call.

Only for tool calls that currently advertise capabilities.cancel.

Source code in src/aclientp/schema/v2/tool_calls.py
class CancelToolCallRequest(AnnotatedObject):
    """Parameters of ``tool_call/cancel``: cancel one tool call.

    Only for tool calls that currently advertise ``capabilities.cancel``.
    """

    session_id: SessionId
    """The session that owns the tool call."""

    tool_call_id: ToolCallId
    """The tool call to cancel."""

session_id instance-attribute

session_id: SessionId

The session that owns the tool call.

tool_call_id instance-attribute

tool_call_id: ToolCallId

The tool call to cancel.

:fa-brands-github: Show source on GitHub