ApiInteractionManager
import { ApiInteractionManager, ApiInteractionManagerOptions } from '@ulifeai/agentb';Constructor
new ApiInteractionManager(options: ApiInteractionManagerOptions)
new ApiInteractionManager(options: ApiInteractionManagerOptions)Instance Methods
async ensureInitialized(): Promise<void>
async ensureInitialized(): Promise<void>async getPrimaryLLMFormattedTools(): Promise<any[]>
async getPrimaryLLMFormattedTools(): Promise<any[]>async getPrimaryLLMSystemPrompt(customBusinessContext?: string): Promise<string>
async getPrimaryLLMSystemPrompt(customBusinessContext?: string): Promise<string>async *runAgentInteraction(threadId: string, initialTurnMessages: LLMMessage[], agentRunConfigOverride?: Partial<AgentRunConfig>, existingRunId?: string): AsyncGenerator<AgentEvent, void, undefined>
async *runAgentInteraction(threadId: string, initialTurnMessages: LLMMessage[], agentRunConfigOverride?: Partial<AgentRunConfig>, existingRunId?: string): AsyncGenerator<AgentEvent, void, undefined>async *continueAgentRunWithToolOutputs(runId: string, threadId: string, toolOutputs: Array<{ tool_call_id: string; output: string; tool_name?: string }>, agentRunConfigOverride?: Partial<AgentRunConfig>): AsyncGenerator<AgentEvent, void, undefined>
async *continueAgentRunWithToolOutputs(runId: string, threadId: string, toolOutputs: Array<{ tool_call_id: string; output: string; tool_name?: string }>, agentRunConfigOverride?: Partial<AgentRunConfig>): AsyncGenerator<AgentEvent, void, undefined>async updateAuthentication(newAuth: ConnectorAuthentication | ((sourceId: string, currentOptions: OpenAPIConnectorOptions) => ConnectorAuthentication | undefined)): Promise<void>
async updateAuthentication(newAuth: ConnectorAuthentication | ((sourceId: string, currentOptions: OpenAPIConnectorOptions) => ConnectorAuthentication | undefined)): Promise<void>async getToolset(toolsetId: string): Promise<IToolSet | undefined>
async getToolset(toolsetId: string): Promise<IToolSet | undefined>async getAllToolsets(): Promise<IToolSet[]>
async getAllToolsets(): Promise<IToolSet[]>async getAllGenericTools(): Promise<ITool[]>
async getAllGenericTools(): Promise<ITool[]>Properties (Read-only after initialization)
Last updated