Skip to content

AllowedOutcome

Base classes

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

⋔ Inheritance diagram

graph TD
  95970858720640["tool_call.AllowedOutcome"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970858720640
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

The user selected one of the provided options.

Source code in src/aclientp/schema/tool_call.py
class AllowedOutcome(AnnotatedObject):
    """The user selected one of the provided options."""

    option_id: str
    """The ID of the option the user selected."""

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

option_id instance-attribute

option_id: str

The ID of the option the user selected.

:fa-brands-github: Show source on GitHub