@overmap-ai/core 1.0.53-add-agent-slice.1 → 1.0.53-add-agent-sdk.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.
- package/dist/overmap-core.js +10 -0
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +10 -0
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/AgentService.d.ts +3 -11
- package/dist/typings/models/agents.d.ts +17 -0
- package/dist/typings/models/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import {
|
|
2
|
+
import { Payload } from "../../typings";
|
|
3
3
|
import { JSONContent } from "@tiptap/core";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The name of the agent.
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* The description of the agent.
|
|
11
|
-
*/
|
|
12
|
-
description: string;
|
|
13
|
-
}
|
|
4
|
+
import { AgentConversation, AgentProfile } from "../../typings/models/agents";
|
|
14
5
|
export interface PromptAgentResponse {
|
|
15
6
|
/**
|
|
16
7
|
* The response from the agent.
|
|
@@ -36,5 +27,6 @@ export declare class AgentService extends BaseApiService {
|
|
|
36
27
|
* @param conversationId If continuing an existing message, the UUID of that conversation.
|
|
37
28
|
*/
|
|
38
29
|
prompt(request: Payload<string>, conversationId?: string | null | undefined): Promise<PromptAgentResponse>;
|
|
30
|
+
fetchAll(): Promise<AgentConversation[]>;
|
|
39
31
|
rate(responseId: string, rating: 1 | 5): Promise<undefined>;
|
|
40
32
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSONContent } from "@tiptap/core";
|
|
2
|
+
import { OptionalFileModel, TimestampedModel } from "./base";
|
|
3
|
+
export interface AgentProfile extends OptionalFileModel {
|
|
4
|
+
/**
|
|
5
|
+
* The name of the agent.
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The description of the agent.
|
|
10
|
+
*/
|
|
11
|
+
description: string;
|
|
12
|
+
}
|
|
13
|
+
export type AgentConversation = Omit<TimestampedModel, "updated_at"> & {
|
|
14
|
+
id: string;
|
|
15
|
+
profile?: AgentProfile | null;
|
|
16
|
+
history: JSONContent[];
|
|
17
|
+
};
|
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-
|
|
6
|
+
"version": "1.0.53-add-agent-sdk.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|