@overmap-ai/core 1.0.47 → 1.0.48-add-agent-service.0
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/README.md +4 -4
- package/dist/overmap-core.js +18 -0
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +18 -0
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -0
- package/dist/sdk/services/AgentService.d.ts +5 -0
- package/dist/sdk/services/index.d.ts +1 -0
- package/package.json +150 -150
|
@@ -7477,10 +7477,27 @@ var __publicField = (obj, key, value) => {
|
|
|
7477
7477
|
store.dispatch(setDocuments(result));
|
|
7478
7478
|
}
|
|
7479
7479
|
}
|
|
7480
|
+
class AgentService extends BaseApiService {
|
|
7481
|
+
prompt(request2) {
|
|
7482
|
+
const activeProjectId = this.client.store.getState().projectReducer.activeProjectId;
|
|
7483
|
+
return this.enqueueRequest({
|
|
7484
|
+
description: "Prompt agent",
|
|
7485
|
+
method: HttpMethod.POST,
|
|
7486
|
+
url: "/agents/prompt/",
|
|
7487
|
+
payload: {
|
|
7488
|
+
prompt: request2,
|
|
7489
|
+
active_project: activeProjectId
|
|
7490
|
+
},
|
|
7491
|
+
blockers: ["prompt"],
|
|
7492
|
+
blocks: ["prompt"]
|
|
7493
|
+
});
|
|
7494
|
+
}
|
|
7495
|
+
}
|
|
7480
7496
|
class OvermapSDK {
|
|
7481
7497
|
constructor(apiUrl, store) {
|
|
7482
7498
|
__publicField(this, "API_URL");
|
|
7483
7499
|
__publicField(this, "store");
|
|
7500
|
+
__publicField(this, "agent", new AgentService(this));
|
|
7484
7501
|
__publicField(this, "files", new FileService(this));
|
|
7485
7502
|
__publicField(this, "attachments", new AttachmentService(this));
|
|
7486
7503
|
__publicField(this, "auth", new AuthService(this));
|
|
@@ -15168,6 +15185,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15168
15185
|
valueIsFile
|
|
15169
15186
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15170
15187
|
exports2.APIError = APIError;
|
|
15188
|
+
exports2.AgentService = AgentService;
|
|
15171
15189
|
exports2.AttachmentService = AttachmentService;
|
|
15172
15190
|
exports2.AuthService = AuthService;
|
|
15173
15191
|
exports2.BaseApiService = BaseApiService;
|