Index
Waldiez agents model.
WaldiezAgents ¶
Bases: WaldiezBase
Waldiez agents model.
Attributes:
Name | Type | Description |
---|---|---|
userProxyAgents | list[WaldiezUserProxy] | User proxy agents. |
assistantAgents | list[WaldiezAssistant] | Assistant agents. |
ragUserProxyAgents | list[WaldiezRagUserProxy] | RAG user proxy agents. |
reasoningAgents | list[WaldiezReasoningAgent] | Reasoning agents. |
captainAgents | list[WaldiezCaptainAgent] | Captain agents. |
groupManagerAgents | list[WaldiezGroupManager] | Group manager agents. |
members property
¶
members: Iterator[WaldiezAgent]
validate_agents ¶
validate_agents() -> Self
Validate the agents.
- At least two agents are required.
- All the agent IDs must be unique.
Returns:
Type | Description |
---|---|
WaldiezAgents | The agents. |
Raises:
Type | Description |
---|---|
ValueError | If the agents are invalid. |
Source code in waldiez/models/agents/agents.py
validate_flow ¶
Validate the flow of the agents.
- Validate the linked models (the referenced model ids must exist).
- Validate the linked tools (the referenced tool ids must exist).
- Validate the code execution (the referenced functions must exist).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_ids | list[str] | The list of model IDs. | required |
tool_ids | list[str] | The list of tool IDs. | required |
Raises:
Type | Description |
---|---|
ValueError | If the flow is invalid. |