@squidcloud/client
Version:
A typescript implementation of the Squid client
28 lines (27 loc) • 992 B
TypeScript
import { AiAgent, AiAgentId } from '../public-types';
import { AiAgentReference } from './ai-agent-client-reference';
/**
* AiAgentClient manages AI agent interactions, including listing agents,
* handling real-time chat responses, and processing AI status updates
* through WebSocket notifications.
* @category AI
*/
export declare class AiAgentClient {
private readonly rpcManager;
private readonly socketManager;
private readonly ongoingChatSequences;
private readonly statusUpdates;
/**
* Retrieves an instance of AiAgentReference for a specific agent ID.
* This reference provides methods for interacting with the agent.
*/
agent(id: AiAgentId): AiAgentReference;
/**
* Lists all agents available in the system.
* @returns A promise that resolves to an array of AiAgent instances.
*/
listAgents(): Promise<Array<AiAgent>>;
private handleChatResponse;
private handleStatusMessage;
private getStatusSubject;
}