Skip to content

AgentInput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  3250848298["input_types.AgentInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3250848298
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the Task tool. Launches a new agent to handle complex, multi-step tasks.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class AgentInput(TypedDict):
    """Input for the Task tool. Launches a new agent to handle complex, multi-step tasks."""

    description: str
    """A short (3-5 word) description of the task."""
    prompt: str
    """The task for the agent to perform."""
    subagent_type: NotRequired[str]
    """The type of specialized agent to use for this task."""
    model: NotRequired[ModelName]
    """Optional model override for this agent.

    Takes precedence over the agent definition's model frontmatter.
    If omitted, uses the agent definition's model, or inherits from the parent."""
    # resume: NotRequired[str]
    # """Optional agent ID to resume from in order to continue from the previous exec transcript."""
    run_in_background: NotRequired[bool]
    """Whether to run the agent in the background."""
    name: NotRequired[str]
    """Name for the spawned agent."""
    team_name: NotRequired[str]
    """Team name for spawning. Uses current team context if omitted."""
    mode: NotRequired[PermissionMode]
    """Deprecated; ignored. Subagents inherit the parent session's permission mode."""
    effort: NotRequired[ReasoningEffort]
    """Reasoning effort for this agent."""
    isolation: NotRequired[Literal["worktree", "remote"]]
    """Isolation mode.

    "worktree" creates a temporary git worktree; "remote" launches the agent in a
    remote cloud environment (always runs in background)."""

description instance-attribute

description: str

A short (3-5 word) description of the task.

effort instance-attribute

effort: NotRequired[ReasoningEffort]

Reasoning effort for this agent.

isolation instance-attribute

isolation: NotRequired[Literal['worktree', 'remote']]

Isolation mode.

"worktree" creates a temporary git worktree; "remote" launches the agent in a remote cloud environment (always runs in background).

mode instance-attribute

mode: NotRequired[PermissionMode]

Deprecated; ignored. Subagents inherit the parent session's permission mode.

model instance-attribute

model: NotRequired[ModelName]

Optional model override for this agent.

Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent.

name instance-attribute

name: NotRequired[str]

Name for the spawned agent.

prompt instance-attribute

prompt: str

The task for the agent to perform.

run_in_background instance-attribute

run_in_background: NotRequired[bool]

Whether to run the agent in the background.

subagent_type instance-attribute

subagent_type: NotRequired[str]

The type of specialized agent to use for this task.

team_name instance-attribute

team_name: NotRequired[str]

Team name for spawning. Uses current team context if omitted.

:fa-brands-github: Show source on GitHub