@mondaydotcomorg/atp-runtime
Version:
Runtime SDK injected into sandbox for Agent Tool Protocol
29 lines • 1.55 kB
TypeScript
import type { LLMCallOptions, LLMExtractOptions, LLMClassifyOptions } from './types';
export type { LLMCallOptions, LLMExtractOptions, LLMClassifyOptions, ClientLLMCallback, } from './types';
export { setClientLLMCallback, getClientLLMCallback } from './callback.js';
export { initializeExecutionState, setPauseForClient, shouldPauseForClient, setReplayMode, getCallSequenceNumber, nextSequenceNumber, getCachedResult, isReplayMode, runInExecutionContext, setCurrentExecutionId, clearCurrentExecutionId, storeAPICallResult, getAPICallResults, clearAPICallResults, setAPIResultCache, getAPIResultFromCache, storeAPIResultInCache, cleanupExecutionState, cleanupOldExecutionStates, resetAllExecutionState, getExecutionStateStats, } from './replay.js';
/**
* LLM Runtime API
*
* Provides client-side LLM operations with pause/resume support.
* All calls pause execution and route to client-provided LLM.
*/
declare class LLMAPI {
/**
* Makes a standard LLM call
* Always pauses execution and routes to client-provided LLM
*/
call(options: LLMCallOptions): Promise<string>;
/**
* Extracts structured data using LLM
* Always pauses execution and routes to client-provided LLM
*/
extract<T>(options: LLMExtractOptions): Promise<T>;
/**
* Classifies text into one of the provided categories
* Always pauses execution and routes to client-provided LLM
*/
classify(options: LLMClassifyOptions): Promise<string>;
}
export declare const llm: LLMAPI;
//# sourceMappingURL=index.d.ts.map