@mondaydotcomorg/atp-client
Version:
Client SDK for Agent Tool Protocol
33 lines • 1.37 kB
TypeScript
import { CallbackType } from '@mondaydotcomorg/atp-protocol';
import type { ClientLLMHandler, ClientApprovalHandler, ClientEmbeddingHandler, ClientServiceProviders, ClientTool, ClientToolDefinition } from '@mondaydotcomorg/atp-protocol';
export declare class ServiceProviders {
private providers;
private toolHandlers;
constructor(providers?: ClientServiceProviders);
provideLLM(handler: ClientLLMHandler): void;
provideApproval(handler: ClientApprovalHandler): void;
provideEmbedding(handler: ClientEmbeddingHandler): void;
provideTools(tools: ClientTool[]): void;
getLLM(): ClientLLMHandler | undefined;
getApproval(): ClientApprovalHandler | undefined;
getEmbedding(): ClientEmbeddingHandler | undefined;
getTools(): ClientTool[] | undefined;
/**
* Get tool definitions (without handlers) for sending to server
*/
getToolDefinitions(): ClientToolDefinition[];
/**
* Check if client has tools
*/
hasTools(): boolean;
/**
* Check if client has any services or tools
*/
hasAnyServices(): boolean;
/**
* Check if client has a service for a specific callback type
*/
hasServiceForCallback(callbackType: CallbackType): boolean;
handleCallback(callbackType: CallbackType, payload: any): Promise<any>;
}
//# sourceMappingURL=service-providers.d.ts.map