Skip to content

TaskConfig

autogen.beta.agent.TaskConfig dataclass #

TaskConfig(config=None, prompt='You are a task agent. Complete the assigned task thoroughly and concisely. Return only the result.', include_tools=None, exclude_tools=(), extra_tools=())

Groups task-spawning Agent parameters.

By default a subtask Agent inherits all of the parent's user-supplied tools (everything passed via tools=). Subtask Agents never receive the auto-injected run_subtask / run_subtasks tools, so recursive delegation is structurally impossible — no depth limiting required.

Use include_tools (allowlist) and exclude_tools (blocklist) to narrow what the subtask sees, and extra_tools to add capabilities the parent doesn't have.

config class-attribute instance-attribute #

config = None

prompt class-attribute instance-attribute #

prompt = 'You are a task agent. Complete the assigned task thoroughly and concisely. Return only the result.'

include_tools class-attribute instance-attribute #

include_tools = None

exclude_tools class-attribute instance-attribute #

exclude_tools = ()

extra_tools class-attribute instance-attribute #

extra_tools = ()