ADK for TypeScript: API Reference
    Preparing search index...

    Interface EventActions

    Represents the actions attached to an event.

    interface EventActions {
        agentState?: Record<string, unknown>;
        artifactDelta: { [key: string]: number };
        endOfAgent?: boolean;
        escalate?: boolean;
        requestedAuthConfigs: { [key: string]: AuthConfig };
        requestedToolConfirmations: { [key: string]: ToolConfirmation };
        skipSummarization?: boolean;
        stateDelta: { [key: string]: unknown };
        transferToAgent?: string;
    }

    Properties

    agentState?: Record<string, unknown>

    Workflow: a serialized node/agent state snapshot used for resumable checkpointing. Mirrors Python EventActions.agent_state.

    artifactDelta: { [key: string]: number }

    Indicates that the event is updating an artifact. key is the filename, value is the version.

    endOfAgent?: boolean

    Workflow: marks that the emitting agent/workflow has reached the end of its execution for this invocation. Mirrors Python EventActions.end_of_agent.

    escalate?: boolean

    The agent is escalating to a higher level agent.

    requestedAuthConfigs: { [key: string]: AuthConfig }

    Authentication configurations requested by tool responses.

    This field will only be set by a tool response event indicating tool request auth credential.

    • Keys: The function call id. Since one function response event could contain multiple function responses that correspond to multiple function calls. Each function call could request different auth configs. This id is used to identify the function call.
    • Values: The requested auth config.
    requestedToolConfirmations: { [key: string]: ToolConfirmation }

    A dict of tool confirmation requested by this event, keyed by the function call id.

    skipSummarization?: boolean

    If true, it won't call model to summarize function response. Only used for function_response event.

    stateDelta: { [key: string]: unknown }

    Indicates that the event is updating the state with the given delta.

    transferToAgent?: string

    If set, the event transfers to the specified agent.