@arcgis/ai-orchestrator 5.1.0-next.78 → 5.1.0-next.79

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.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { Orchestrator } from './orchestrator/orchestrator';
2
2
  export { sendTraceMessage, sendUXSuggestion } from './signals';
3
3
  export { invokeTextPrompt, invokeStructuredPrompt, invokeToolPrompt } from './providers/arcgis/promptChain';
4
+ export { createChatModel } from './providers/arcgis/aiFactory';
4
5
  export { createWebmapEmbeddings } from './embeddings/webmapEmbeddings';
5
6
  export { getEmbeddings } from './embeddings/embeddingsUtil';
6
7
  export { cosineSimilarity } from './embeddings/cosineSimilarity';
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { dispatchCustomEvent as q } from "@langchain/core/callbacks/dispatch/web
6
6
  import p, { z as l } from "zod";
7
7
  import { ChatPromptTemplate as N, SystemMessagePromptTemplate as de } from "@langchain/core/prompts";
8
8
  import { createAgent as le, summarizationMiddleware as me, modelCallLimitMiddleware as ge } from "langchain";
9
- import { OpenAIEmbeddings as ue, ChatOpenAI as pe } from "@langchain/openai";
9
+ import { ChatOpenAI as ue, OpenAIEmbeddings as pe } from "@langchain/openai";
10
10
  import * as H from "@arcgis/core/core/reactiveUtils.js";
11
11
  import O from "@arcgis/core/layers/FeatureLayer.js";
12
12
  import he from "@arcgis/core/request.js";
@@ -190,7 +190,7 @@ const fe = () => {
190
190
  });
191
191
  }, x = async (t = "default", e = 0) => {
192
192
  const r = I.getDefault(), n = await R.getCredential(`${r.url}/sharing`), s = V[t], a = await ye(t);
193
- return new pe({
193
+ return new ue({
194
194
  modelName: s,
195
195
  apiKey: "dummy-key",
196
196
  // 5-mini does not support temperature parameter
@@ -202,7 +202,7 @@ const fe = () => {
202
202
  });
203
203
  }, De = async (t = "default") => {
204
204
  const e = I.getDefault(), r = await R.getCredential(`${e.url}/sharing`), n = k[t], s = await G(t);
205
- return new ue({
205
+ return new pe({
206
206
  modelName: n,
207
207
  apiKey: "dummy-key",
208
208
  configuration: {
@@ -865,6 +865,7 @@ const Qe = async (t) => {
865
865
  export {
866
866
  ee as Orchestrator,
867
867
  yt as cosineSimilarity,
868
+ x as createChatModel,
868
869
  ft as createWebmapEmbeddings,
869
870
  B as getEmbeddings,
870
871
  te as invokeStructuredPrompt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/ai-orchestrator",
3
- "version": "5.1.0-next.78",
3
+ "version": "5.1.0-next.79",
4
4
  "description": "ArcGIS AI Orchestrator Package",
5
5
  "homepage": "https://developers.arcgis.com/javascript/latest/",
6
6
  "type": "module",