GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — ReadonlyContext | ADK for TypeScript: API Reference - v2.5.0

  • ReadonlyContext

Class ReadonlyContext

A readonly context represents the data of a single invocation of an agent.

Hierarchy (View Summary)

  • ReadonlyContext
    • Context
  • Defined in core/src/agents/readonly_context.ts:16

Constructors

constructor

  • new ReadonlyContext(invocationContext: InvocationContext): ReadonlyContext

    Parameters

    • invocationContext: InvocationContext

    Returns ReadonlyContext

    • Defined in core/src/agents/readonly_context.ts:17

Properties

ReadonlyinvocationContext

invocationContext: InvocationContext
  • Defined in core/src/agents/readonly_context.ts:17

Accessors

a2aMetadata

  • get a2aMetadata(): Record<string, unknown> | undefined

    Request-level metadata passed from an incoming A2A request or caller.

    Returns Record<string, unknown> | undefined

    • Defined in core/src/agents/readonly_context.ts:67

agentName

  • get agentName(): string

    The current agent name.

    Returns string

    • Defined in core/src/agents/readonly_context.ts:50

invocationId

  • get invocationId(): string

    The current invocation id.

    Returns string

    • Defined in core/src/agents/readonly_context.ts:29

sessionId

  • get sessionId(): string

    The ID of the current session.

    Returns string

    • Defined in core/src/agents/readonly_context.ts:43

state

  • get state(): Readonly<State>

    The state of the current session.

    Returns Readonly<State>

    • Defined in core/src/agents/readonly_context.ts:57

userContent

  • get userContent(): Content | undefined

    The user content that started this invocation.

    Returns Content | undefined

    • Defined in core/src/agents/readonly_context.ts:22

userId

  • get userId(): string

    The user ID of the current session.

    Returns string

    • Defined in core/src/agents/readonly_context.ts:36
Constructors
constructor
Properties
invocationContext
Accessors
a2aMetadataagentNameinvocationIdsessionIdstateuserContentuserId
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.