Agents
Waldiez agents model.
WaldiezAgents
¶
Bases: WaldiezBase
Waldiez agents model.
Attributes:
Name | Type | Description |
---|---|---|
users | List[WaldiezUserProxy] | User proxy agents. |
assistants | List[WaldiezAssistant] | Assistant agents. |
managers | List[WaldiezGroupManager] | Group chat managers. |
rag_users | List[WaldiezRagUser] | RAG user agents. |
members: Iterator[WaldiezAgent]
property
¶
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(model_ids: List[str], skill_ids: List[str]) -> None
¶
Validate the flow of the agents.
- Validate the linked models (the referenced model ids must exist).
- Validate the linked skills (the referenced skill 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 |
skill_ids | List[str] | The list of skill IDs. | required |
Raises:
Type | Description |
---|---|
ValueError | If the flow is invalid. |