[Go to site: main page, start]

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

    Enumeration EventType

    The types of events that can be parsed from a raw Event.

    Each value corresponds to one category of structured output that toStructuredEvents may produce from a raw Event.

    Enumeration Members

    ACTIVITY: "activity"

    A generic activity or status update.

    CALL_CODE: "call_code"

    A request from the model to execute code.

    CODE_RESULT: "code_result"

    The result of a code execution.

    CONTENT: "content"

    A text delta intended for the end user.

    ERROR: "error"

    A runtime error signalled via event.errorCode.

    FINISHED: "finished"

    The agent has produced its final response for this turn.

    THOUGHT: "thought"

    A reasoning trace (thought) emitted by the model.

    TOOL_CALL: "tool_call"

    A request from the model to execute a tool (function call).

    TOOL_CONFIRMATION: "tool_confirmation"

    A request for the user to confirm one or more tool calls.

    TOOL_RESULT: "tool_result"

    The result returned by a tool execution (function response).