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

    Class ToolContext

    Context for tool execution

    Implements

    • IToolContext
    Index

    Constructors

    Properties

    Authentication handler for the tool

    parameters: Record<string, any>

    Additional parameters for the tool

    toolId: string = ''

    Tool ID

    toolName: string = ''

    Tool name

    Accessors

    Methods

    • Gets a parameter value

      Type Parameters

      • T

      Parameters

      • name: string
      • OptionaldefaultValue: T

      Returns undefined | T

    • Sets a parameter value

      Parameters

      • name: string
      • value: any

      Returns void