SwarmResult

SwarmResult(**data: Any)

Encapsulates the possible return values for a swarm agent function.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.

Parameters:
NameDescription
**dataType: Any

Class Attributes

Config



agent



context_variables



model_config



values



Instance Methods

serialize_agent

serialize_agent(self, agent: ConversableAgent | str) -> str
Parameters:
NameDescription
agentType: ConversableAgent | str