MCPcopy Create free account
hub / github.com/microsoft/TypeChat / Agent

Interface Agent

typescript/examples/multiSchema/src/agent.ts:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14export type MessageHandler<T extends object> = (message: string) => Promise<Result<T>>;
15
16export interface Agent<T extends object> extends AgentInfo {
17 handleMessage(message: string): Promise<Result<T>>;
18};
19
20interface JsonPrintAgent<T extends object> extends Agent<T> {
21 _translator: TypeChatJsonTranslator<T>;

Callers 1

routeRequestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…