@arcgis/ai-agents 5.1.0-next.89 → 5.1.0-next.90

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.
@@ -5,8 +5,11 @@ import { default as LinkChartView } from '@arcgis/core/views/LinkChartView.js';
5
5
  * Supplied by the application via an agent `getContext()` provider.
6
6
  */
7
7
  export type ArcgisKnowledgeContext = {
8
- linkChartView: LinkChartView;
9
8
  knowledgeGraph: KnowledgeGraph;
9
+ linkChartView?: never;
10
+ } | {
11
+ linkChartView: LinkChartView;
12
+ knowledgeGraph?: never;
10
13
  };
11
14
  export declare const arcgisKnowledgeContextRequiredKeys: readonly ["linkChartView"];
12
- export declare const serviceContextRequiredKeys: readonly ["knowledgeGraph"];
15
+ export declare const serviceContextKeys: readonly ["knowledgeGraph", "linkChartView"];
@@ -4,6 +4,6 @@ import { default as LinkChartView } from '@arcgis/core/views/LinkChartView.js';
4
4
  export declare function getLinkChartContext(config?: RunnableConfig): {
5
5
  linkChartView: LinkChartView;
6
6
  };
7
- export declare function getKnowledgeGraphContext(config?: RunnableConfig): {
7
+ export declare function getKnowledgeGraphContext(config?: RunnableConfig): Promise<{
8
8
  knowledgeGraph: KnowledgeGraph;
9
- };
9
+ }>;
@@ -1,8 +1,11 @@
1
- import { AgentExecutionContext } from '@arcgis/ai-orchestrator';
1
+ import { AgentExecutionContext, AgentStatus, ChatHistory } from '@arcgis/ai-orchestrator';
2
2
  export declare const arcgisKnowledgeState: import('@langchain/langgraph/web').AnnotationRoot<{
3
3
  agentExecutionContext: import('@langchain/langgraph/web').BaseChannel<AgentExecutionContext, AgentExecutionContext | import('@langchain/langgraph/web').OverwriteValue<AgentExecutionContext>, unknown>;
4
4
  outputMessage: import('@langchain/langgraph/web').BaseChannel<string, string | import('@langchain/langgraph/web').OverwriteValue<string>, unknown>;
5
+ summary: import('@langchain/langgraph/web').BaseChannel<string, string | import('@langchain/langgraph/web').OverwriteValue<string>, unknown>;
6
+ status: import('@langchain/langgraph/web').BaseChannel<AgentStatus, AgentStatus | import('@langchain/langgraph/web').OverwriteValue<AgentStatus>, unknown>;
5
7
  intent: import('@langchain/langgraph/web').BaseChannel<string, string | import('@langchain/langgraph/web').OverwriteValue<string>, unknown>;
8
+ arcgisKnowledgeMessages: import('@langchain/langgraph/web').BaseChannel<ChatHistory, ChatHistory | import('@langchain/langgraph/web').OverwriteValue<ChatHistory>, unknown>;
6
9
  }>;
7
10
  export type ArcgisKnowledgeGraphStateType = typeof arcgisKnowledgeState.State;
8
11
  export declare const arcgisKnowledgeServerSkillState: {
@@ -41,6 +41,12 @@ export declare const arcgisKnowledgeTools: (import('@langchain/core/tools').Dyna
41
41
  prompt: string;
42
42
  }, {
43
43
  prompt: string;
44
+ }, string, unknown, "queryGraphData"> | import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
45
+ prompt: import('zod').ZodString;
46
+ }, import('zod/v4/core').$strip>, {
47
+ prompt: string;
48
+ }, {
49
+ prompt: string;
44
50
  }, string, unknown, "generateCypher">)[];
45
51
  export declare const arcgisKnowledgeServerSkills: (import('@langchain/core/tools').DynamicStructuredTool<import('zod').ZodObject<{
46
52
  prompt: import('zod').ZodString;
@@ -0,0 +1,12 @@
1
+ import { RunnableConfig } from '@langchain/core/runnables';
2
+ import { default as z } from 'zod';
3
+ export declare function queryGraphDataWrapper({ prompt }: {
4
+ prompt: string;
5
+ }, config?: RunnableConfig): Promise<string>;
6
+ export declare const queryGraphData: import('@langchain/core/tools').DynamicStructuredTool<z.ZodObject<{
7
+ prompt: z.ZodString;
8
+ }, z.core.$strip>, {
9
+ prompt: string;
10
+ }, {
11
+ prompt: string;
12
+ }, string, unknown, "queryGraphData">;
@@ -0,0 +1 @@
1
+ export * from './adapter';
@@ -1,3 +1,29 @@
1
- import { IdTypePair } from '@arcgis/core/layers/knowledgeGraph/types.js';
2
- import { default as GraphQueryStreamingResult } from '@arcgis/core/rest/knowledgeGraph/GraphQueryStreamingResult.js';
3
- export declare const queryResultToIdTypePairs: (queryResult: GraphQueryStreamingResult) => Promise<IdTypePair[]>;
1
+ import { GraphAnyValue } from '@arcgis/core/rest/knowledgeGraph/GraphAnyValue.js';
2
+ import { default as GraphQueryStreaming } from '@arcgis/core/rest/knowledgeGraph/GraphQueryStreaming.js';
3
+ import { default as KnowledgeGraph } from '@arcgis/core/rest/knowledgeGraph/KnowledgeGraph.js';
4
+ import { default as GraphQueryResultHeader } from '@arcgis/core/rest/knowledgeGraph/GraphQueryResultHeader.js';
5
+ import { RequestOptions } from '@arcgis/core/request/types.js';
6
+ type RunCypherQueryResult<T> = {
7
+ type: "aborted";
8
+ } | {
9
+ type: "error";
10
+ errorMessage: string;
11
+ error: unknown;
12
+ } | {
13
+ type: "success";
14
+ rowLimitReached: boolean;
15
+ resultHeader: GraphQueryResultHeader;
16
+ processedResult: T;
17
+ } | {
18
+ type: "timeout";
19
+ };
20
+ export declare const runCypherQueryAndReduce: <T>({ kg, queryParams, targetStructure, targetStructureReducer, requestOptions, queryRowLimit, queryTimeoutMs, }: {
21
+ kg: KnowledgeGraph;
22
+ queryParams: GraphQueryStreaming;
23
+ targetStructure: T;
24
+ targetStructureReducer: (prev: T, nextRow: GraphAnyValue[]) => T;
25
+ requestOptions?: RequestOptions;
26
+ queryRowLimit?: number;
27
+ queryTimeoutMs?: number;
28
+ }) => Promise<RunCypherQueryResult<T>>;
29
+ export {};