@overmap-ai/core 1.0.53-add-agent-conversations.0 → 1.0.53-add-agent-conversations.1

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.
@@ -1,5 +1,5 @@
1
1
  import { BaseApiService } from "./BaseApiService";
2
- import { AgentUserConversation, Payload, PromptAgentResponse } from "../../typings";
2
+ import { Payload, PromptAgentResponse } from "../../typings";
3
3
  export declare class AgentService extends BaseApiService {
4
4
  /**
5
5
  * Prompt the agent with a message.
@@ -8,5 +8,5 @@ export declare class AgentService extends BaseApiService {
8
8
  */
9
9
  prompt(request: Payload<string>, conversationId?: string | null | undefined): Promise<PromptAgentResponse>;
10
10
  rate(responseId: string, rating: 1 | 5): Promise<undefined>;
11
- fetchAll(): Promise<AgentUserConversation[]>;
11
+ refreshStore(): Promise<void>;
12
12
  }
@@ -4,11 +4,11 @@ export interface AgentsState {
4
4
  conversations: OfflineIdMapping<AgentUserConversation>;
5
5
  }
6
6
  export declare const agentsSlice: import("@reduxjs/toolkit").Slice<AgentsState, {
7
- setHistory: (state: import("immer/dist/internal.js").WritableDraft<AgentsState>, action: PayloadAction<OfflineIdMapping<AgentUserConversation>>) => void;
7
+ setConversations: (state: import("immer/dist/internal.js").WritableDraft<AgentsState>, action: PayloadAction<AgentUserConversation[]>) => void;
8
8
  addConversation: (state: import("immer/dist/internal.js").WritableDraft<AgentsState>, action: PayloadAction<AgentUserConversation>) => void;
9
9
  setConversation: (state: import("immer/dist/internal.js").WritableDraft<AgentsState>, action: PayloadAction<AgentUserConversation>) => void;
10
10
  }, "agents">;
11
- export declare const setHistory: import("@reduxjs/toolkit").ActionCreatorWithPayload<OfflineIdMapping<AgentUserConversation>, "agents/setHistory">, addConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation, "agents/addConversation">, setConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation, "agents/setConversation">;
11
+ export declare const setConversations: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation[], "agents/setConversations">, addConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation, "agents/addConversation">, setConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation, "agents/setConversation">;
12
12
  export declare const selectConversationMapping: (state: RootState) => OfflineIdMapping<AgentUserConversation>;
13
13
  export declare const selectConversation: (args: string) => (state: RootState) => AgentUserConversation | undefined;
14
14
  export declare const agentsReducer: Reducer<AgentsState>;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core functionality for Overmap",
4
4
  "author": "Wôrdn Inc.",
5
5
  "license": "UNLICENSED",
6
- "version": "1.0.53-add-agent-conversations.0",
6
+ "version": "1.0.53-add-agent-conversations.1",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",