UNPKG

@artinet/sdk

Version:

A TypeScript SDK for building collaborative AI agents.

23 lines (22 loc) 827 B
import * as describe from "../../../create/agentcard-builder.js"; import { A2A } from "../../../types/index.js"; import { Service } from "../service.js"; export interface ServiceParams { agentCard: describe.AgentCardParams; engine: A2A.Engine; contexts?: A2A.Contexts; streams?: A2A.Streams; connections?: A2A.Connections; cancellations?: A2A.Cancellations; tasks?: A2A.Tasks; handles?: Partial<A2A.Handles>; overrides?: Partial<Omit<A2A.EventConsumer, "contextId">>; } export type CreateAgentParams = ServiceParams; export declare function createService(params: ServiceParams): Service; export declare const createAgent: typeof createService; export type AgentHandler = ReturnType<typeof createService>; /** * @deprecated Use AgentHandler instead */ export type AgentImpl = AgentHandler;