adk-typescript
Version:
TypeScript port of Google's Agent Development Kit (ADK)
22 lines (21 loc) • 623 B
TypeScript
import { InvocationContext } from './InvocationContext';
/**
* Readonly context for agent invocations.
* Provides read-only access to the agent's state and context.
*/
export declare class ReadonlyContext {
protected invocationContext: InvocationContext;
constructor(invocationContext: InvocationContext);
/**
* The current invocation id.
*/
get invocationId(): string;
/**
* The name of the agent that is currently running.
*/
get agentName(): string;
/**
* The state of the current session. READONLY field.
*/
get state(): Readonly<Record<string, any>>;
}