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

    Class Runner

    Hierarchy (View Summary)

    Constructors

    Properties

    agent: BaseAgent
    appName: string
    artifactService?: BaseArtifactService
    credentialService?: BaseCredentialService
    memoryService?: BaseMemoryService
    pluginManager: PluginManager
    sessionService: BaseSessionService

    Methods

    • Runs the agent with the given message, and returns an async generator of events.

      Parameters

      • userId: {
            newMessage: Content;
            runConfig?: RunConfig;
            sessionId: string;
            stateDelta?: Record<string, any>;
            userId: string;
        }

        The user ID of the session.

      Returns AsyncGenerator<Event, void, undefined>

      The events generated by the agent.