Skip to main content

Attributes

The DeepAgent class accepts the following initialization parameters:
AttributeTypeDefaultDescription
modelstr or Model"openai/gpt-4o"Model identifier or Model instance
subagentsList[Agent]NoneList of Agent instances to use as subagents (each must have a name)
instructionsstrNoneAdditional instructions to append to system prompt
tool_call_limitint100Maximum tool calls per execution
memoryMemoryAuto-createdMemory instance (auto-created with InMemoryStorage if not provided)
**kwargsAdditional arguments passed to base Agent

DeepAgentState Attributes

AttributeTypeDescription
todosList[Todo]List of todo items for task planning and tracking
filesDict[str, str]Virtual filesystem mapping file paths to content

Todo Model

AttributeTypeValuesDescription
contentstrDescription of the task to complete
statusLiteral"pending", "in_progress", "completed"Current status of the task