Skip to content

DeniedOutcome

Base classes

Name Children Inherits
Schema
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970862387280["tool_call.DeniedOutcome"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862254416 --> 95970862387280
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: Schema

The prompt turn was cancelled before the user responded.

When a client sends a session/cancel notification to cancel an ongoing prompt turn, it MUST respond to all pending session/request_permission requests with this Cancelled outcome. See protocol docs: Cancellation

Source code in src/aclientp/schema/tool_call.py
class DeniedOutcome(Schema):
    """The prompt turn was cancelled before the user responded.

    When a client sends a `session/cancel` notification to cancel an ongoing
    prompt turn, it MUST respond to all pending `session/request_permission`
    requests with this `Cancelled` outcome.
    See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/prompt-turn#cancellation)
    """

    outcome: Literal["cancelled"] = Field(default="cancelled", init=False)

:fa-brands-github: Show source on GitHub