Skip to content

EndDecision

Base classes

Name Children Inherits
Decision
llmling_agent.delegation.router
Base class for all routing decisions.

⋔ Inheritance diagram

graph TD
  94350422099712["router.EndDecision"]
  94350422920384["router.Decision"]
  94350366564672["main.BaseModel"]
  140709601677504["builtins.object"]
  94350422920384 --> 94350422099712
  94350366564672 --> 94350422920384
  140709601677504 --> 94350366564672

🛈 DocStrings

Bases: Decision

End the conversation.

Source code in src/llmling_agent/delegation/router.py
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
class EndDecision(Decision):
    """End the conversation."""

    type: Literal["end"] = Field("end", init=False)
    """Type discriminator for end decisions."""

    async def execute(
        self,
        message: ChatMessage[Any],
        source_agent: AnyAgent[Any, Any],
        pool: AgentPool,
    ):
        """End the conversation."""

type class-attribute instance-attribute

type: Literal['end'] = Field('end', init=False)

Type discriminator for end decisions.

execute async

execute(message: ChatMessage[Any], source_agent: AnyAgent[Any, Any], pool: AgentPool)

End the conversation.

Source code in src/llmling_agent/delegation/router.py
 95
 96
 97
 98
 99
100
101
async def execute(
    self,
    message: ChatMessage[Any],
    source_agent: AnyAgent[Any, Any],
    pool: AgentPool,
):
    """End the conversation."""

Show source on GitHub