Skip to content

inputs

inputs

InputBase dataclass

InputBase(*, raw: RawDict = (lambda: {})())

Base class for typed tool inputs. Provides from_raw() parsing and as_() type narrowing.

FileInputBase dataclass

FileInputBase(
    *, raw: RawDict = (lambda: {})(), file_path: str
)

Bases: InputBase

Base for tool inputs that reference a file, providing a cached file property returning a File.

BashInput dataclass

BashInput(
    *,
    raw: RawDict = (lambda: {})(),
    command: str,
    timeout: int | None = None,
    description: str | None = None,
)

Bases: InputBase

Parsed Bash/Execute tool input.

EditInput dataclass

EditInput(
    *,
    raw: RawDict = (lambda: {})(),
    file_path: str,
    old: str,
    new: str,
    replace_all: bool = False,
)

Bases: FileInputBase

Parsed Edit tool input with old/new content for replacements.

WriteInput dataclass

WriteInput(
    *,
    raw: RawDict = (lambda: {})(),
    file_path: str,
    content: str,
)

Bases: FileInputBase

Parsed Write/Create tool input.

ReadInput dataclass

ReadInput(
    *,
    raw: RawDict = (lambda: {})(),
    file_path: str,
    limit: int | None = None,
    offset: int | None = None,
)

Bases: FileInputBase

Parsed Read tool input.

AgentInput dataclass

AgentInput(
    *,
    raw: RawDict = (lambda: {})(),
    prompt: str,
    agent_type: str | None = None,
    model: str | None = None,
    name: str | None = None,
    run_in_background: bool | None = None,
)

Bases: InputBase

Parsed Agent/Task tool input.

GrepInput dataclass

GrepInput(
    *,
    raw: RawDict = (lambda: {})(),
    pattern: str,
    path: str | None = None,
    file_type: str | None = None,
    glob: str | None = None,
    output_mode: str | None = None,
)

Bases: InputBase

Parsed Grep tool input.

GlobInput dataclass

GlobInput(
    *,
    raw: RawDict = (lambda: {})(),
    pattern: str,
    path: str | None = None,
)

Bases: InputBase

Parsed Glob tool input.

TaskCreateInput dataclass

TaskCreateInput(
    *,
    raw: RawDict = (lambda: {})(),
    subject: str,
    description: str | None = None,
)

Bases: InputBase

Parsed TaskCreate tool input.

TaskUpdateInput dataclass

TaskUpdateInput(
    *,
    raw: RawDict = (lambda: {})(),
    task_id: str,
    status: str | None = None,
    subject: str | None = None,
    description: str | None = None,
)

Bases: InputBase

Parsed TaskUpdate tool input.

SkillInput dataclass

SkillInput(
    *,
    raw: RawDict = (lambda: {})(),
    skill: str,
    args: str | None = None,
)

Bases: InputBase

Parsed Skill tool input.

GenericInput dataclass

GenericInput(*, raw: RawDict = (lambda: {})())

Bases: InputBase

Fallback typed input for unrecognized tools, providing dict-like get() access to raw data.

parse_tool_input

parse_tool_input(
    name: str, raw: RawDict | Any
) -> ToolInput

Parse raw tool input into a typed dataclass based on tool name.