acp-ws
Version:
基于 WebSocket 的智能体通信库,提供智能体身份管理和实时通信功能
12 lines (11 loc) • 634 B
TypeScript
export declare function getGuestAid(apiUrl: string, seedPassword: string): Promise<string | null>;
export declare function getEntryPointConfig(aid: string, apiUrl: string): Promise<{
heartbeatServer: string;
messageServer: string;
} | null>;
export declare function signCert(agentId: string, apiUrl: string, csr: string): Promise<string | null>;
export declare function signIn(agentId: string, apiUrl: string, privateKey: string, publicKeyPem?: string, certPem?: string): Promise<{
signature: string | null;
signData: any;
} | null>;
export declare function signOut(agentId: string, apiUrl: string): Promise<boolean>;