@overmap-ai/core 1.0.47 → 1.0.48-add-agent-service.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @overmap-ai/core
2
-
3
- The `core` package contains core functionality for the Overmap platform. It is a peer dependency of all other overmap
4
- packages.
1
+ # @overmap-ai/core
2
+
3
+ The `core` package contains core functionality for the Overmap platform. It is a peer dependency of all other overmap
4
+ packages.
@@ -7486,10 +7486,27 @@ class DocumentService extends BaseApiService {
7486
7486
  store.dispatch(setDocuments(result));
7487
7487
  }
7488
7488
  }
7489
+ class AgentService extends BaseApiService {
7490
+ prompt(request2) {
7491
+ const activeProjectId = this.client.store.getState().projectReducer.activeProjectId;
7492
+ return this.enqueueRequest({
7493
+ description: "Prompt agent",
7494
+ method: HttpMethod.POST,
7495
+ url: "/agents/prompt/",
7496
+ payload: {
7497
+ prompt: request2,
7498
+ active_project: activeProjectId
7499
+ },
7500
+ blockers: ["prompt"],
7501
+ blocks: ["prompt"]
7502
+ });
7503
+ }
7504
+ }
7489
7505
  class OvermapSDK {
7490
7506
  constructor(apiUrl, store) {
7491
7507
  __publicField(this, "API_URL");
7492
7508
  __publicField(this, "store");
7509
+ __publicField(this, "agent", new AgentService(this));
7493
7510
  __publicField(this, "files", new FileService(this));
7494
7511
  __publicField(this, "attachments", new AttachmentService(this));
7495
7512
  __publicField(this, "auth", new AuthService(this));
@@ -15178,6 +15195,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
15178
15195
  }, Symbol.toStringTag, { value: "Module" }));
15179
15196
  export {
15180
15197
  APIError,
15198
+ AgentService,
15181
15199
  AttachmentService,
15182
15200
  AuthService,
15183
15201
  BaseApiService,