Swarm-readme-8.md
· 1.1 KiB · Markdown
Brut
| Field | Type | Description | Default |
| ---------------- | ------------------------ | ----------------------------------------------------------------------------- | ---------------------------- |
| **name** | `str` | The name of the agent. | `"Agent"` |
| **model** | `str` | The model to be used by the agent. | `"gpt-4o"` |
| **instructions** | `str` or `func() -> str` | Instructions for the agent, can be a string or a callable returning a string. | `"You are a helpful agent."` |
| **functions** | `List` | A list of functions that the agent can call. | `[]` |
| **tool_choice** | `str` | The tool choice for the agent, if any. | `None` |
Field | Type | Description | Default |
---|---|---|---|
name | str |
The name of the agent. | "Agent" |
model | str |
The model to be used by the agent. | "gpt-4o" |
instructions | str or func() -> str |
Instructions for the agent, can be a string or a callable returning a string. | "You are a helpful agent." |
functions | List |
A list of functions that the agent can call. | [] |
tool_choice | str |
The tool choice for the agent, if any. | None |