ADK TypeScript Documentation - v0.0.4
    Preparing search index...

    Class InvocationContext

    Contextual data for a specific agent invocation

    Index

    Constructors

    Properties

    appName?: string

    Application name (for multi-app environments)

    config: RunConfig

    Run configuration

    memory: Map<string, any> = ...

    In-memory storage for node execution results

    memoryService?: BaseMemoryService

    Memory service for long-term storage

    messages: Message[]

    Current conversation history

    metadata: Record<string, any>

    Additional context metadata

    sessionId: string

    Unique session ID for the current conversation

    sessionService?: SessionService

    Session service for session management

    userId?: string

    User identifier associated with the session

    Methods

    • Gets a variable from the context

      Type Parameters

      • T

      Parameters

      • name: string
      • OptionaldefaultValue: T

      Returns undefined | T