UNPKG

@artinet/sdk

Version:

A TypeScript SDK for building collaborative AI agents.

23 lines (22 loc) 769 B
import { A2A } from "../../types/index.js"; export declare class Stream implements A2A.Stream { private _contextId; private _context; private _updates; private _completed; protected running: AsyncGenerator<A2A.Update> | null; constructor(_contextId: string, _context: A2A.Context, _updates?: A2A.Update[], _completed?: boolean); get contextId(): string; get isAlive(): boolean; kill(): Promise<void>; get context(): A2A.Context; set context(context: A2A.Context); get updates(): A2A.Update[]; run({ service, }: { service: A2A.Service; }): AsyncGenerator<A2A.Update>; subscribe(): AsyncGenerator<A2A.Update>; _run({ service, }: { service: A2A.Service; }): AsyncGenerator<A2A.Update>; }