Agent
exposes numerous attributes that control its behavior and capabilities. Understanding these attributes is crucial for effective agent configuration.
Core Identity Attributes
Attribute | Type | Default | Description |
---|---|---|---|
name | str | None | None | Human-readable name for the agent |
agent_id_ | str | None | None | Unique identifier for the agent instance |
model_provider | BaseModelProvider | None | OpenAI(“gpt-4o”) | The underlying LLM provider |
Model and Performance Attributes
Attribute | Type | Default | Description |
---|---|---|---|
model | Union[str, BaseModelProvider] | “openai/gpt-4o” | Model specification (string or provider instance) |
retry | int | 1 | Number of retry attempts for failed calls |
mode | RetryMode | ”raise” | Retry behavior: “raise” or “return_false” |
debug | bool | False | Enable debug mode for detailed logging |
Company Context Attributes
Attribute | Type | Default | Description |
---|---|---|---|
company_url | str | None | None | Company website URL |
company_objective | str | None | None | Company’s main objective |
company_description | str | None | None | Detailed company description |
Role and Professional Attributes
Attribute | Type | Default | Description |
---|---|---|---|
role | str | None | None | Professional role of the agent |
goal | str | None | None | Primary goal or objective |
instructions | str | None | None | Specific instructions for behavior |
education | str | None | None | Educational background |
work_experience | str | None | None | Professional experience |
System and Context Attributes
Attribute | Type | Default | Description |
---|---|---|---|
system_prompt | str | None | None | Custom system prompt for the agent |
reflection | str | None | None | Reflection capabilities configuration |
compress_context | bool | False | Enable context compression |
Tool and Execution Attributes
Attribute | Type | Default | Description |
---|---|---|---|
show_tool_calls | bool | True | Display tool call information |
tool_call_limit | int | 5 | Maximum number of tool calls per execution |
tool_call_count | int | 0 | Current tool call count (read-only) |
enable_thinking_tool | bool | False | Enable thinking/reasoning capabilities |
enable_reasoning_tool | bool | False | Enable advanced reasoning (requires thinking) |
enable_reasoning_tool
requires enable_thinking_tool
to be True
. Setting reasoning without thinking will raise a ValueError
.
Memory and Storage Attributes
Attribute | Type | Default | Description |
---|---|---|---|
memory | Memory | None | None | Memory management system |
feed_tool_call_results | bool | False | Include tool results in memory |
Safety and Reliability Attributes
Attribute | Type | Default | Description |
---|---|---|---|
user_policy | Policy | None | None | Policy for user input validation |
agent_policy | Policy | None | None | Policy for agent output validation |
reliability_layer | ReliabilityProcessor | None | Advanced content validation system |
Canvas and External Integration Attributes
Attribute | Type | Default | Description |
---|---|---|---|
canvas | Canvas | None | None | Canvas for persistent editing |