@economic/agents-react 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +16 -9
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -225,13 +225,6 @@ type GetChatsHandler = () => Promise<ChatSummary[]>;
|
|
|
225
225
|
type CreateChatHandler = () => Promise<string>;
|
|
226
226
|
type OpenChatHandler = (chatId: string) => void;
|
|
227
227
|
type DeleteChatHandler = (chatId: string) => Promise<void>;
|
|
228
|
-
interface AssistantActions {
|
|
229
|
-
state: unknown;
|
|
230
|
-
getChats: GetChatsHandler;
|
|
231
|
-
createChat: CreateChatHandler;
|
|
232
|
-
openChat: OpenChatHandler;
|
|
233
|
-
deleteChat: DeleteChatHandler;
|
|
234
|
-
}
|
|
235
228
|
//#endregion
|
|
236
229
|
//#region src/useAgent.d.ts
|
|
237
230
|
interface UseAgentOptions {
|
|
@@ -320,7 +313,21 @@ declare function useAssistant<ToolContext extends Record<string, unknown>>(optio
|
|
|
320
313
|
chats: ChatSummary[];
|
|
321
314
|
status: AgentConnectionStatus;
|
|
322
315
|
assistant: {
|
|
323
|
-
|
|
316
|
+
agent: Omit<PartySocket, "path"> & {
|
|
317
|
+
agent: string;
|
|
318
|
+
name: string;
|
|
319
|
+
path: ReadonlyArray<{
|
|
320
|
+
agent: string;
|
|
321
|
+
name: string;
|
|
322
|
+
}>;
|
|
323
|
+
identified: boolean;
|
|
324
|
+
ready: Promise<void>;
|
|
325
|
+
state: unknown;
|
|
326
|
+
setState: (state: unknown) => void;
|
|
327
|
+
call: <T = unknown>(method: string, args?: unknown[], options?: import("agents/client").CallOptions | import("agents/client").StreamOptions) => Promise<T>;
|
|
328
|
+
stub: import("agents/client").UntypedAgentStub;
|
|
329
|
+
getHttpUrl: () => string;
|
|
330
|
+
};
|
|
324
331
|
getChats: () => Promise<ChatSummary[]>;
|
|
325
332
|
createChat: () => Promise<string>;
|
|
326
333
|
openChat: (chatId: string) => void;
|
|
@@ -362,4 +369,4 @@ declare function useAssistant<ToolContext extends Record<string, unknown>>(optio
|
|
|
362
369
|
};
|
|
363
370
|
};
|
|
364
371
|
//#endregion
|
|
365
|
-
export { type AgentConnectionStatus, type AgentConnectionType, type
|
|
372
|
+
export { type AgentConnectionStatus, type AgentConnectionType, type ChatSummary, type CreateChatHandler, type DeleteChatHandler, type GetChatsHandler, type GetMessageFeedbackHandler, type MessageFeedback, type MessageFeedbackHandler, type OpenChatHandler, useAgent, useAssistant, useChat };
|
package/dist/index.mjs
CHANGED