Longbridge OpenAPI SDK
    Preparing search index...

    Interface SubagentStartedPayload

    Payload of a subagent_started stream event. When the Agent spawns a subagent to work on a sub-task, the subagent's lifecycle is reported with this dedicated event family instead of nodeToolUse*.

    interface SubagentStartedPayload {
        nodeId: string;
        toolUseId: string;
        startedAt: number;
        goal: string;
        prompt: string;
        subagentId: string;
        tools: any[];
    }
    Index
    nodeId: string

    ID of the node that spawned the subagent

    toolUseId: string

    Unique ID of this spawn; matches the finished event

    startedAt: number

    Start time, Unix timestamp in seconds

    goal: string

    Goal assigned to the subagent

    prompt: string

    Full task prompt given to the subagent

    subagentId: string

    Subagent identifier; may be omitted

    tools: any[]

    Tools granted to the subagent; may be omitted