@arvo-tools/agentic 1.2.16 → 2.0.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/dist/Agent/AgentDefaults.d.ts +4 -1
- package/dist/Agent/AgentDefaults.d.ts.map +1 -1
- package/dist/Agent/AgentDefaults.js +110 -73
- package/dist/Agent/AgentDefaults.js.map +1 -1
- package/dist/Agent/agentLoop.d.ts +19 -17
- package/dist/Agent/agentLoop.d.ts.map +1 -1
- package/dist/Agent/agentLoop.js +239 -120
- package/dist/Agent/agentLoop.js.map +1 -1
- package/dist/Agent/index.d.ts +91 -39
- package/dist/Agent/index.d.ts.map +1 -1
- package/dist/Agent/index.js +218 -146
- package/dist/Agent/index.js.map +1 -1
- package/dist/Agent/schema.d.ts +326 -22
- package/dist/Agent/schema.d.ts.map +1 -1
- package/dist/Agent/schema.js +23 -1
- package/dist/Agent/schema.js.map +1 -1
- package/dist/Agent/stream/schema.d.ts +39 -39
- package/dist/Agent/types.d.ts +170 -79
- package/dist/Agent/types.d.ts.map +1 -1
- package/dist/Agent/utils.d.ts +6 -0
- package/dist/Agent/utils.d.ts.map +1 -1
- package/dist/Agent/utils.js +10 -1
- package/dist/Agent/utils.js.map +1 -1
- package/dist/AgentTool/index.d.ts +2 -3
- package/dist/AgentTool/index.d.ts.map +1 -1
- package/dist/AgentTool/index.js +11 -7
- package/dist/AgentTool/index.js.map +1 -1
- package/dist/AgentTool/types.d.ts +27 -9
- package/dist/AgentTool/types.d.ts.map +1 -1
- package/dist/Integrations/MCPClient.d.ts +2 -2
- package/dist/Integrations/MCPClient.js +2 -2
- package/dist/Integrations/anthropic/index.d.ts.map +1 -1
- package/dist/Integrations/anthropic/index.js +3 -3
- package/dist/Integrations/anthropic/index.js.map +1 -1
- package/dist/Integrations/openai/index.d.ts.map +1 -1
- package/dist/Integrations/openai/index.js +3 -3
- package/dist/Integrations/openai/index.js.map +1 -1
- package/dist/Integrations/types.d.ts +89 -15
- package/dist/Integrations/types.d.ts.map +1 -1
- package/dist/Integrations/types.js +47 -0
- package/dist/Integrations/types.js.map +1 -1
- package/dist/SimplePermissionManager/contract.d.ts +4 -4
- package/dist/SimplePermissionManager/index.d.ts +12 -12
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/AgentTool/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,iBAAiB,CAE3B,YAAY,SAAS,CAAC,CAAC,UAAU,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/AgentTool/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,iBAAiB,CAE3B,YAAY,SAAS,CAAC,CAAC,UAAU,GAAG,GAAG,IACrC;IACF;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,EAAE,YAAY,CAAC;IAEpB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;OAYG;IACH,EAAE,EAAE,CACF,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,EAC5B,MAAM,EAAE;QAAE,QAAQ,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAClD,WAAW,CACZ;QACE,QAAQ,EACJ;YACE,IAAI,EAAE,MAAM,CAAC;YACb,SAAS,EAAE,MAAM,CAAC;YAClB,OAAO,EAAE,sBAAsB,CAAC;SACjC,GACD;YACE;gBACE,IAAI,EAAE,MAAM,CAAC;gBACb,SAAS,EAAE,MAAM,CAAC;gBAClB,OAAO,EAAE,sBAAsB,CAAC;aACjC;YACD,GAAG,YAAY,EAAE;SAClB,CAAC;KACP,GAED;QAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,GAE7B,IAAI,CACP,CAAC;CACH,CAAC"}
|
|
@@ -10,9 +10,9 @@ export type MCPClientParam = {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
* A
|
|
13
|
+
* A Client for the Model Context Protocol (MCP).
|
|
14
14
|
*
|
|
15
|
-
* This
|
|
15
|
+
* This connector bridges Arvo Agents with the external MCP ecosystem, allowing agents to
|
|
16
16
|
* interact with filesystem, databases, GitHub, Slack, and other standardized MCP servers.
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
@@ -65,9 +65,9 @@ var streamableHttp_js_1 = require("@modelcontextprotocol/sdk/client/streamableHt
|
|
|
65
65
|
var api_1 = require("@opentelemetry/api");
|
|
66
66
|
var arvo_core_1 = require("arvo-core");
|
|
67
67
|
/**
|
|
68
|
-
* A
|
|
68
|
+
* A Client for the Model Context Protocol (MCP).
|
|
69
69
|
*
|
|
70
|
-
* This
|
|
70
|
+
* This connector bridges Arvo Agents with the external MCP ecosystem, allowing agents to
|
|
71
71
|
* interact with filesystem, databases, GitHub, Slack, and other standardized MCP servers.
|
|
72
72
|
*
|
|
73
73
|
* @remarks
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Integrations/anthropic/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAiB/C,OAAO,KAAK,EAAE,mBAAmB,EAAiD,MAAM,UAAU,CAAC;AAGnG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAG7D;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,GACjC,QAAQ,SAAS,EAAE,SAAS,6BAA6B,KAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Integrations/anthropic/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAiB/C,OAAO,KAAK,EAAE,mBAAmB,EAAiD,MAAM,UAAU,CAAC;AAGnG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAG7D;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,GACjC,QAAQ,SAAS,EAAE,SAAS,6BAA6B,KAAG,mBAyJzD,CAAC"}
|
|
@@ -91,7 +91,7 @@ var utils_2 = require("./utils");
|
|
|
91
91
|
var anthropicLLMIntegration = function (client, config) {
|
|
92
92
|
return function (_a, _b) { return __awaiter(void 0, [_a, _b], void 0, function (_c, _d) {
|
|
93
93
|
var _e;
|
|
94
|
-
var _messages = _c.messages, _system = _c.system, tools = _c.tools, outputFormat = _c.outputFormat, lifecycle = _c.lifecycle,
|
|
94
|
+
var _messages = _c.messages, _system = _c.system, tools = _c.tools, outputFormat = _c.outputFormat, lifecycle = _c.lifecycle, agentCycles = _c.agentCycles, onStream = _c.onStream;
|
|
95
95
|
var otelInfo = _d.otelInfo;
|
|
96
96
|
return __generator(this, function (_f) {
|
|
97
97
|
switch (_f.label) {
|
|
@@ -121,8 +121,8 @@ var anthropicLLMIntegration = function (client, config) {
|
|
|
121
121
|
})];
|
|
122
122
|
case 1:
|
|
123
123
|
_a = _l.sent(), messages = _a.messages, system = _a.system;
|
|
124
|
-
if (
|
|
125
|
-
limitMessage = (_f = (_e = config === null || config === void 0 ? void 0 : config.toolLimitPrompt) === null || _e === void 0 ? void 0 : _e.call(config,
|
|
124
|
+
if (agentCycles.exhausted) {
|
|
125
|
+
limitMessage = (_f = (_e = config === null || config === void 0 ? void 0 : config.toolLimitPrompt) === null || _e === void 0 ? void 0 : _e.call(config, agentCycles)) !== null && _f !== void 0 ? _f : prompts_1.DEFAULT_TOOL_LIMIT_PROMPT;
|
|
126
126
|
messages.push({
|
|
127
127
|
role: 'user',
|
|
128
128
|
content: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Integrations/anthropic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAGqD;AACrD,0CAAoD;AACpD,uCAA+D;AAC/D,yDAAqD;AACrD,2CAM2B;AAC3B,0EAAyE;AACzE,sCAAmE;AAEnE,iDAAyD;AACzD,2CAAmD;AAEnD,iCAAqD;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACI,IAAM,uBAAuB,GAClC,UAAC,MAAiB,EAAE,MAAsC;IAC1D,OAAA,yEACE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Integrations/anthropic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAGqD;AACrD,0CAAoD;AACpD,uCAA+D;AAC/D,yDAAqD;AACrD,2CAM2B;AAC3B,0EAAyE;AACzE,sCAAmE;AAEnE,iDAAyD;AACzD,2CAAmD;AAEnD,iCAAqD;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACI,IAAM,uBAAuB,GAClC,UAAC,MAAiB,EAAE,MAAsC;IAC1D,OAAA,yEACE,EAA+F,EAC/F,EAAY;;YADA,SAAS,cAAA,EAAU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"","sources":["../../../src/Integrations/openai/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAY1C,OAAO,KAAK,EAAE,mBAAmB,EAAiD,MAAM,UAAU,CAAC;AAGnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAG1D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,GAC9B,OAAO,SAAS,MAAM,GAAG,WAAW,EACnC,QAAQ,OAAO,EACf,SAAS,0BAA0B,CAAC,OAAO,CAAC,KAC3C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Integrations/openai/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAY1C,OAAO,KAAK,EAAE,mBAAmB,EAAiD,MAAM,UAAU,CAAC;AAGnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAG1D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,GAC9B,OAAO,SAAS,MAAM,GAAG,WAAW,EACnC,QAAQ,OAAO,EACf,SAAS,0BAA0B,CAAC,OAAO,CAAC,KAC3C,mBAwKC,CAAC"}
|
|
@@ -87,7 +87,7 @@ var utils_2 = require("./utils");
|
|
|
87
87
|
var openaiLLMIntegration = function (client, config) {
|
|
88
88
|
return function (_a, _b) { return __awaiter(void 0, [_a, _b], void 0, function (_c, _d) {
|
|
89
89
|
var _e;
|
|
90
|
-
var _messages = _c.messages, _system = _c.system, tools = _c.tools, outputFormat = _c.outputFormat, lifecycle = _c.lifecycle,
|
|
90
|
+
var _messages = _c.messages, _system = _c.system, tools = _c.tools, outputFormat = _c.outputFormat, lifecycle = _c.lifecycle, agentCycles = _c.agentCycles, onStream = _c.onStream;
|
|
91
91
|
var otelInfo = _d.otelInfo;
|
|
92
92
|
return __generator(this, function (_f) {
|
|
93
93
|
switch (_f.label) {
|
|
@@ -117,8 +117,8 @@ var openaiLLMIntegration = function (client, config) {
|
|
|
117
117
|
})];
|
|
118
118
|
case 1:
|
|
119
119
|
_a = _r.sent(), messages = _a.messages, system = _a.system;
|
|
120
|
-
if (
|
|
121
|
-
limitMessage = (_f = (_e = config === null || config === void 0 ? void 0 : config.toolLimitPrompt) === null || _e === void 0 ? void 0 : _e.call(config,
|
|
120
|
+
if (agentCycles.exhausted) {
|
|
121
|
+
limitMessage = (_f = (_e = config === null || config === void 0 ? void 0 : config.toolLimitPrompt) === null || _e === void 0 ? void 0 : _e.call(config, agentCycles)) !== null && _f !== void 0 ? _f : prompts_1.DEFAULT_TOOL_LIMIT_PROMPT;
|
|
122
122
|
messages.push({
|
|
123
123
|
role: 'user',
|
|
124
124
|
content: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Integrations/openai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kGAGqD;AACrD,0CAAoD;AACpD,uCAA+D;AAI/D,yDAAqD;AACrD,2CAM2B;AAC3B,0EAAyE;AACzE,sCAAuD;AAEvD,iDAAsD;AACtD,2CAAgD;AAEhD,iCAAkD;AAElD;;;;;;;;;;;;;;GAcG;AACI,IAAM,oBAAoB,GAC/B,UACE,MAAe,EACf,MAA4C;IAE9C,OAAA,yEACE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Integrations/openai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kGAGqD;AACrD,0CAAoD;AACpD,uCAA+D;AAI/D,yDAAqD;AACrD,2CAM2B;AAC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CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,oBAAc,CAAC,KAAK,EAAE,OAAO,EAAG,GAAW,aAAX,GAAC,uBAAD,GAAC,CAAY,OAAO,EAAE,CAAC,CAAC;wCAC/E,IAAA,2BAAe,EAAC,GAAU,EAAE,IAAI,CAAC,CAAC;wCAClC,MAAM,GAAC,CAAC;;wCAER,IAAI,CAAC,GAAG,EAAE,CAAC;;;;;6BAEd;qBACF,CAAC,EAAA;wBAnKF,sBAAA,SAmKE,EAAA;;;SAAA;AAvKJ,CAuKI,CAAC;AA5KM,QAAA,oBAAoB,wBA4K1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import z from 'zod';
|
|
2
2
|
import type { AgentEventStreamer } from '../Agent/stream/types';
|
|
3
3
|
import type { AgentLLMContext, AgentMessage, AgentToolCallContent, AgentToolDefinition } from '../Agent/types';
|
|
4
4
|
import type { OtelInfoType, PromiseAble } from '../types';
|
|
@@ -24,11 +24,11 @@ export type AgentLLMIntegrationParam = {
|
|
|
24
24
|
/** List of available tools. You must convert these to your provider's tool/function schema. */
|
|
25
25
|
tools: AgentToolDefinition[];
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Agent loop limits.
|
|
28
28
|
* If `exhausted` is true, you should inject a system instruction forcing the LLM to stop calling tools
|
|
29
29
|
* and synthesize a final answer.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
agentCycles: AgentLLMContext['toolInteractions'] & {
|
|
32
32
|
exhausted: boolean;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
@@ -53,37 +53,111 @@ export type AgentLLMIntegrationParam = {
|
|
|
53
53
|
* You must parse your provider's raw response (e.g. OpenAI `Choice`, Anthropic `ContentBlock`)
|
|
54
54
|
* and normalize it into one of these three mutually exclusive types so the Agent Loop can act on it.
|
|
55
55
|
*/
|
|
56
|
-
export
|
|
56
|
+
export declare const AgentLLMIntegrationOutputSchema: z.ZodIntersection<z.ZodObject<{
|
|
57
57
|
/** Token metrics for observability/billing. */
|
|
58
|
-
usage: {
|
|
58
|
+
usage: z.ZodObject<{
|
|
59
|
+
tokens: z.ZodObject<{
|
|
60
|
+
prompt: z.ZodNumber;
|
|
61
|
+
completion: z.ZodNumber;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
prompt: number;
|
|
64
|
+
completion: number;
|
|
65
|
+
}, {
|
|
66
|
+
prompt: number;
|
|
67
|
+
completion: number;
|
|
68
|
+
}>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
70
|
tokens: {
|
|
60
71
|
prompt: number;
|
|
61
72
|
completion: number;
|
|
62
73
|
};
|
|
63
|
-
}
|
|
74
|
+
}, {
|
|
75
|
+
tokens: {
|
|
76
|
+
prompt: number;
|
|
77
|
+
completion: number;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
64
80
|
/**
|
|
65
81
|
* A standardized cost metric for Arvo's throttling/billing (e.g. 1 unit = 1 input token).
|
|
66
82
|
* You define the calculation logic in your integration.
|
|
67
83
|
*/
|
|
84
|
+
executionUnits: z.ZodNumber;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
usage: {
|
|
87
|
+
tokens: {
|
|
88
|
+
prompt: number;
|
|
89
|
+
completion: number;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
68
92
|
executionUnits: number;
|
|
69
|
-
}
|
|
93
|
+
}, {
|
|
94
|
+
usage: {
|
|
95
|
+
tokens: {
|
|
96
|
+
prompt: number;
|
|
97
|
+
completion: number;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
executionUnits: number;
|
|
101
|
+
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
70
102
|
/** The LLM wants to execute tools. */
|
|
71
|
-
type:
|
|
72
|
-
toolRequests: Omit<
|
|
73
|
-
|
|
103
|
+
type: z.ZodLiteral<"tool_call">;
|
|
104
|
+
toolRequests: z.ZodArray<z.ZodObject<Omit<{
|
|
105
|
+
type: z.ZodLiteral<"tool_use">;
|
|
106
|
+
toolUseId: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
109
|
+
}, "type">, "strip", z.ZodTypeAny, {
|
|
110
|
+
toolUseId: string;
|
|
111
|
+
name: string;
|
|
112
|
+
input: Record<string, any>;
|
|
113
|
+
}, {
|
|
114
|
+
toolUseId: string;
|
|
115
|
+
name: string;
|
|
116
|
+
input: Record<string, any>;
|
|
117
|
+
}>, "many">;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
type: "tool_call";
|
|
120
|
+
toolRequests: {
|
|
121
|
+
toolUseId: string;
|
|
122
|
+
name: string;
|
|
123
|
+
input: Record<string, any>;
|
|
124
|
+
}[];
|
|
125
|
+
}, {
|
|
126
|
+
type: "tool_call";
|
|
127
|
+
toolRequests: {
|
|
128
|
+
toolUseId: string;
|
|
129
|
+
name: string;
|
|
130
|
+
input: Record<string, any>;
|
|
131
|
+
}[];
|
|
132
|
+
}>, z.ZodObject<{
|
|
74
133
|
/** The LLM responded with conversational text. */
|
|
75
|
-
type:
|
|
134
|
+
type: z.ZodLiteral<"text">;
|
|
135
|
+
content: z.ZodString;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
type: "text";
|
|
76
138
|
content: string;
|
|
77
|
-
}
|
|
139
|
+
}, {
|
|
140
|
+
type: "text";
|
|
141
|
+
content: string;
|
|
142
|
+
}>, z.ZodObject<{
|
|
78
143
|
/**
|
|
79
144
|
* The LLM responded with Structured JSON (requested via `outputFormat`).
|
|
80
145
|
* `parsedContent` must be the valid JS object result of parsing `content`.
|
|
81
146
|
* You can use `tryParseJson` utility from `@arvo-tools/agentic`
|
|
82
147
|
*/
|
|
83
|
-
type:
|
|
148
|
+
type: z.ZodLiteral<"json">;
|
|
149
|
+
content: z.ZodString;
|
|
150
|
+
parsedContent: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
type: "json";
|
|
153
|
+
content: string;
|
|
154
|
+
parsedContent: Record<string, unknown> | null;
|
|
155
|
+
}, {
|
|
156
|
+
type: "json";
|
|
84
157
|
content: string;
|
|
85
158
|
parsedContent: Record<string, unknown> | null;
|
|
86
|
-
}
|
|
159
|
+
}>]>>;
|
|
160
|
+
export type AgentLLMIntegrationOutput = z.infer<typeof AgentLLMIntegrationOutputSchema>;
|
|
87
161
|
/**
|
|
88
162
|
* Interface for an LLM Provider Adapter function.
|
|
89
163
|
*
|
|
@@ -121,7 +195,7 @@ export type CommonIntegrationConfig = {
|
|
|
121
195
|
* Use this to guide the model to either summarize its current progress, give up gracefully, or
|
|
122
196
|
* attempt a final answer without further tool usage.
|
|
123
197
|
*/
|
|
124
|
-
toolLimitPrompt?: (toolInteractions: AgentLLMIntegrationParam['
|
|
198
|
+
toolLimitPrompt?: (toolInteractions: AgentLLMIntegrationParam['agentCycles']) => string;
|
|
125
199
|
/**
|
|
126
200
|
* An optional interceptor to transform messages or system instructions immediately before the LLM call.
|
|
127
201
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Integrations/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Integrations/types.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;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EAAE,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,aAAa,CAAC,KAAK,MAAM,CAAC;IAExF;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,KAAK,WAAW,CAAC;QAC/F,QAAQ,EAAE,YAAY,EAAE,CAAC;QACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,CAAC,CAAC;CACJ,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;IAC1D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,WAAW,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC,CAAC;CACxD,CAAC"}
|
|
@@ -1,3 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AgentLLMIntegrationOutputSchema = void 0;
|
|
7
|
+
var zod_1 = __importDefault(require("zod"));
|
|
8
|
+
var schema_1 = require("../Agent/schema");
|
|
9
|
+
/**
|
|
10
|
+
* The normalized response object your Custom Integration must return.
|
|
11
|
+
*
|
|
12
|
+
* You must parse your provider's raw response (e.g. OpenAI `Choice`, Anthropic `ContentBlock`)
|
|
13
|
+
* and normalize it into one of these three mutually exclusive types so the Agent Loop can act on it.
|
|
14
|
+
*/
|
|
15
|
+
exports.AgentLLMIntegrationOutputSchema = zod_1.default.intersection(zod_1.default.object({
|
|
16
|
+
/** Token metrics for observability/billing. */
|
|
17
|
+
usage: zod_1.default.object({
|
|
18
|
+
tokens: zod_1.default.object({
|
|
19
|
+
prompt: zod_1.default.number(),
|
|
20
|
+
completion: zod_1.default.number(),
|
|
21
|
+
}),
|
|
22
|
+
}),
|
|
23
|
+
/**
|
|
24
|
+
* A standardized cost metric for Arvo's throttling/billing (e.g. 1 unit = 1 input token).
|
|
25
|
+
* You define the calculation logic in your integration.
|
|
26
|
+
*/
|
|
27
|
+
executionUnits: zod_1.default.number(),
|
|
28
|
+
}), zod_1.default.discriminatedUnion('type', [
|
|
29
|
+
zod_1.default.object({
|
|
30
|
+
/** The LLM wants to execute tools. */
|
|
31
|
+
type: zod_1.default.literal('tool_call'),
|
|
32
|
+
toolRequests: schema_1.AgentToolCallContentSchema.omit({ type: true }).array(),
|
|
33
|
+
}),
|
|
34
|
+
zod_1.default.object({
|
|
35
|
+
/** The LLM responded with conversational text. */
|
|
36
|
+
type: zod_1.default.literal('text'),
|
|
37
|
+
content: zod_1.default.string(),
|
|
38
|
+
}),
|
|
39
|
+
zod_1.default.object({
|
|
40
|
+
/**
|
|
41
|
+
* The LLM responded with Structured JSON (requested via `outputFormat`).
|
|
42
|
+
* `parsedContent` must be the valid JS object result of parsing `content`.
|
|
43
|
+
* You can use `tryParseJson` utility from `@arvo-tools/agentic`
|
|
44
|
+
*/
|
|
45
|
+
type: zod_1.default.literal('json'),
|
|
46
|
+
content: zod_1.default.string(),
|
|
47
|
+
parsedContent: zod_1.default.record(zod_1.default.string(), zod_1.default.unknown()).nullable(),
|
|
48
|
+
}),
|
|
49
|
+
]));
|
|
3
50
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Integrations/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Integrations/types.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,0CAA6D;AAgE7D;;;;;GAKG;AACU,QAAA,+BAA+B,GAAG,aAAC,CAAC,YAAY,CAC3D,aAAC,CAAC,MAAM,CAAC;IACP,+CAA+C;IAC/C,KAAK,EAAE,aAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;YACf,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;YAClB,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;SACvB,CAAC;KACH,CAAC;IACF;;;OAGG;IACH,cAAc,EAAE,aAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,EACF,aAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC3B,aAAC,CAAC,MAAM,CAAC;QACP,sCAAsC;QACtC,IAAI,EAAE,aAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QAC5B,YAAY,EAAE,mCAA0B,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE;KACtE,CAAC;IACF,aAAC,CAAC,MAAM,CAAC;QACP,kDAAkD;QAClD,IAAI,EAAE,aAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACvB,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;KACpB,CAAC;IACF,aAAC,CAAC,MAAM,CAAC;QACP;;;;WAIG;QACH,IAAI,EAAE,aAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACvB,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;QACnB,aAAa,EAAE,aAAC,CAAC,MAAM,CAAC,aAAC,CAAC,MAAM,EAAE,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC5D,CAAC;CACH,CAAC,CACH,CAAC"}
|
|
@@ -14,13 +14,13 @@ export declare const simplePermissionContract: import("arvo-core").SimpleArvoCon
|
|
|
14
14
|
kind: z.ZodString;
|
|
15
15
|
requests: z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
kind: string;
|
|
18
17
|
name: string;
|
|
18
|
+
kind: string;
|
|
19
19
|
originalName: string;
|
|
20
20
|
requests: Record<string, any>[] | null;
|
|
21
21
|
}, {
|
|
22
|
-
kind: string;
|
|
23
22
|
name: string;
|
|
23
|
+
kind: string;
|
|
24
24
|
originalName: string;
|
|
25
25
|
requests: Record<string, any>[] | null;
|
|
26
26
|
}>>;
|
|
@@ -29,8 +29,8 @@ export declare const simplePermissionContract: import("arvo-core").SimpleArvoCon
|
|
|
29
29
|
requestedTools: string[];
|
|
30
30
|
reason: string;
|
|
31
31
|
toolMetaData: Record<string, {
|
|
32
|
-
kind: string;
|
|
33
32
|
name: string;
|
|
33
|
+
kind: string;
|
|
34
34
|
originalName: string;
|
|
35
35
|
requests: Record<string, any>[] | null;
|
|
36
36
|
}>;
|
|
@@ -39,8 +39,8 @@ export declare const simplePermissionContract: import("arvo-core").SimpleArvoCon
|
|
|
39
39
|
requestedTools: string[];
|
|
40
40
|
reason: string;
|
|
41
41
|
toolMetaData: Record<string, {
|
|
42
|
-
kind: string;
|
|
43
42
|
name: string;
|
|
43
|
+
kind: string;
|
|
44
44
|
originalName: string;
|
|
45
45
|
requests: Record<string, any>[] | null;
|
|
46
46
|
}>;
|
|
@@ -37,13 +37,13 @@ export declare class SimplePermissionManager implements IPermissionManager<Versi
|
|
|
37
37
|
kind: import("zod").ZodString;
|
|
38
38
|
requests: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, "many">>;
|
|
39
39
|
}, "strip", import("zod").ZodTypeAny, {
|
|
40
|
-
kind: string;
|
|
41
40
|
name: string;
|
|
41
|
+
kind: string;
|
|
42
42
|
originalName: string;
|
|
43
43
|
requests: Record<string, any>[] | null;
|
|
44
44
|
}, {
|
|
45
|
-
kind: string;
|
|
46
45
|
name: string;
|
|
46
|
+
kind: string;
|
|
47
47
|
originalName: string;
|
|
48
48
|
requests: Record<string, any>[] | null;
|
|
49
49
|
}>>;
|
|
@@ -52,8 +52,8 @@ export declare class SimplePermissionManager implements IPermissionManager<Versi
|
|
|
52
52
|
requestedTools: string[];
|
|
53
53
|
reason: string;
|
|
54
54
|
toolMetaData: Record<string, {
|
|
55
|
-
kind: string;
|
|
56
55
|
name: string;
|
|
56
|
+
kind: string;
|
|
57
57
|
originalName: string;
|
|
58
58
|
requests: Record<string, any>[] | null;
|
|
59
59
|
}>;
|
|
@@ -62,8 +62,8 @@ export declare class SimplePermissionManager implements IPermissionManager<Versi
|
|
|
62
62
|
requestedTools: string[];
|
|
63
63
|
reason: string;
|
|
64
64
|
toolMetaData: Record<string, {
|
|
65
|
-
kind: string;
|
|
66
65
|
name: string;
|
|
66
|
+
kind: string;
|
|
67
67
|
originalName: string;
|
|
68
68
|
requests: Record<string, any>[] | null;
|
|
69
69
|
}>;
|
|
@@ -95,13 +95,13 @@ export declare class SimplePermissionManager implements IPermissionManager<Versi
|
|
|
95
95
|
kind: import("zod").ZodString;
|
|
96
96
|
requests: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, "many">>;
|
|
97
97
|
}, "strip", import("zod").ZodTypeAny, {
|
|
98
|
-
kind: string;
|
|
99
98
|
name: string;
|
|
99
|
+
kind: string;
|
|
100
100
|
originalName: string;
|
|
101
101
|
requests: Record<string, any>[] | null;
|
|
102
102
|
}, {
|
|
103
|
-
kind: string;
|
|
104
103
|
name: string;
|
|
104
|
+
kind: string;
|
|
105
105
|
originalName: string;
|
|
106
106
|
requests: Record<string, any>[] | null;
|
|
107
107
|
}>>;
|
|
@@ -110,8 +110,8 @@ export declare class SimplePermissionManager implements IPermissionManager<Versi
|
|
|
110
110
|
requestedTools: string[];
|
|
111
111
|
reason: string;
|
|
112
112
|
toolMetaData: Record<string, {
|
|
113
|
-
kind: string;
|
|
114
113
|
name: string;
|
|
114
|
+
kind: string;
|
|
115
115
|
originalName: string;
|
|
116
116
|
requests: Record<string, any>[] | null;
|
|
117
117
|
}>;
|
|
@@ -120,8 +120,8 @@ export declare class SimplePermissionManager implements IPermissionManager<Versi
|
|
|
120
120
|
requestedTools: string[];
|
|
121
121
|
reason: string;
|
|
122
122
|
toolMetaData: Record<string, {
|
|
123
|
-
kind: string;
|
|
124
123
|
name: string;
|
|
124
|
+
kind: string;
|
|
125
125
|
originalName: string;
|
|
126
126
|
requests: Record<string, any>[] | null;
|
|
127
127
|
}>;
|
|
@@ -161,13 +161,13 @@ export declare class SimplePermissionManager implements IPermissionManager<Versi
|
|
|
161
161
|
kind: import("zod").ZodString;
|
|
162
162
|
requests: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, "many">>;
|
|
163
163
|
}, "strip", import("zod").ZodTypeAny, {
|
|
164
|
-
kind: string;
|
|
165
164
|
name: string;
|
|
165
|
+
kind: string;
|
|
166
166
|
originalName: string;
|
|
167
167
|
requests: Record<string, any>[] | null;
|
|
168
168
|
}, {
|
|
169
|
-
kind: string;
|
|
170
169
|
name: string;
|
|
170
|
+
kind: string;
|
|
171
171
|
originalName: string;
|
|
172
172
|
requests: Record<string, any>[] | null;
|
|
173
173
|
}>>;
|
|
@@ -176,8 +176,8 @@ export declare class SimplePermissionManager implements IPermissionManager<Versi
|
|
|
176
176
|
requestedTools: string[];
|
|
177
177
|
reason: string;
|
|
178
178
|
toolMetaData: Record<string, {
|
|
179
|
-
kind: string;
|
|
180
179
|
name: string;
|
|
180
|
+
kind: string;
|
|
181
181
|
originalName: string;
|
|
182
182
|
requests: Record<string, any>[] | null;
|
|
183
183
|
}>;
|
|
@@ -186,8 +186,8 @@ export declare class SimplePermissionManager implements IPermissionManager<Versi
|
|
|
186
186
|
requestedTools: string[];
|
|
187
187
|
reason: string;
|
|
188
188
|
toolMetaData: Record<string, {
|
|
189
|
-
kind: string;
|
|
190
189
|
name: string;
|
|
190
|
+
kind: string;
|
|
191
191
|
originalName: string;
|
|
192
192
|
requests: Record<string, any>[] | null;
|
|
193
193
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * as Anthropic from '@anthropic-ai/sdk';
|
|
2
2
|
export * as OpenAI from 'openai';
|
|
3
|
-
export {
|
|
3
|
+
export { createArvoAgent } from './Agent';
|
|
4
4
|
export { AgentDefaults } from './Agent/AgentDefaults';
|
|
5
|
-
export { AgentMediaContentSchema, AgentMessageContentSchema, AgentMessageSchema, AgentTextContentSchema, AgentToolCallContentSchema, AgentToolResultContentSchema, } from './Agent/schema';
|
|
5
|
+
export { AgentMediaContentSchema, AgentMessageContentSchema, AgentMessageSchema, AgentStateSchema, AgentTextContentSchema, AgentToolCallContentSchema, AgentToolResultContentSchema, } from './Agent/schema';
|
|
6
6
|
export { AgentStreamEventSchema } from './Agent/stream/schema';
|
|
7
7
|
export type { AgentStreamListener } from './Agent/stream/types';
|
|
8
|
-
export type { AgentContextBuilder, AgentLLMContext, AgentMediaContent, AgentMessage, AgentMessageContent, AgentOutputBuilder, AgentServiceContract, AgentTextContent, AgentToolCallContent, AgentToolDefinition, AgentToolResultContent, AnyArvoContract, AnyArvoOrchestratorContract, CreateArvoAgentParam, } from './Agent/types';
|
|
8
|
+
export type { AgentContextBuilder, AgentInferenceConfiguration, AgentLLMContext, AgentMediaContent, AgentMessage, AgentMessageContent, AgentOutputBuilder, AgentServiceContract, AgentState, AgentTextContent, AgentToolCallContent, AgentToolDefinition, AgentToolResultContent, AnyArvoContract, AnyArvoOrchestratorContract, CreateArvoAgentParam, PostInferenceHook, PreInferenceHook, } from './Agent/types';
|
|
9
9
|
export { setOpenInferenceInputAttr, setOpenInferenceResponseOutputAttr, setOpenInferenceToolCallOutputAttr, setOpenInferenceUsageOutputAttr, tryParseJson, } from './Agent/utils';
|
|
10
10
|
export { createAgentTool } from './AgentTool';
|
|
11
11
|
export type { AgentInternalTool } from './AgentTool/types';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,YAAY,EACV,mBAAmB,EACnB,2BAA2B,EAC3B,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,yBAAyB,EACzB,kCAAkC,EAClC,kCAAkC,EAClC,+BAA+B,EAC/B,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EACV,mBAAmB,EACnB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.SimplePermissionManager = exports.DEFAULT_TOOL_LIMIT_PROMPT = exports.openaiLLMIntegration = exports.MCPClient = exports.anthropicLLMIntegration = exports.createAgentTool = exports.tryParseJson = exports.setOpenInferenceUsageOutputAttr = exports.setOpenInferenceToolCallOutputAttr = exports.setOpenInferenceResponseOutputAttr = exports.setOpenInferenceInputAttr = exports.AgentStreamEventSchema = exports.AgentToolResultContentSchema = exports.AgentToolCallContentSchema = exports.AgentTextContentSchema = exports.AgentMessageSchema = exports.AgentMessageContentSchema = exports.AgentMediaContentSchema = exports.AgentDefaults = exports.createArvoAgent = exports.OpenAI = exports.Anthropic = void 0;
|
|
36
|
+
exports.SimplePermissionManager = exports.DEFAULT_TOOL_LIMIT_PROMPT = exports.openaiLLMIntegration = exports.MCPClient = exports.anthropicLLMIntegration = exports.createAgentTool = exports.tryParseJson = exports.setOpenInferenceUsageOutputAttr = exports.setOpenInferenceToolCallOutputAttr = exports.setOpenInferenceResponseOutputAttr = exports.setOpenInferenceInputAttr = exports.AgentStreamEventSchema = exports.AgentToolResultContentSchema = exports.AgentToolCallContentSchema = exports.AgentTextContentSchema = exports.AgentStateSchema = exports.AgentMessageSchema = exports.AgentMessageContentSchema = exports.AgentMediaContentSchema = exports.AgentDefaults = exports.createArvoAgent = exports.OpenAI = exports.Anthropic = void 0;
|
|
37
37
|
exports.Anthropic = __importStar(require("@anthropic-ai/sdk"));
|
|
38
38
|
exports.OpenAI = __importStar(require("openai"));
|
|
39
39
|
var Agent_1 = require("./Agent");
|
|
@@ -44,6 +44,7 @@ var schema_1 = require("./Agent/schema");
|
|
|
44
44
|
Object.defineProperty(exports, "AgentMediaContentSchema", { enumerable: true, get: function () { return schema_1.AgentMediaContentSchema; } });
|
|
45
45
|
Object.defineProperty(exports, "AgentMessageContentSchema", { enumerable: true, get: function () { return schema_1.AgentMessageContentSchema; } });
|
|
46
46
|
Object.defineProperty(exports, "AgentMessageSchema", { enumerable: true, get: function () { return schema_1.AgentMessageSchema; } });
|
|
47
|
+
Object.defineProperty(exports, "AgentStateSchema", { enumerable: true, get: function () { return schema_1.AgentStateSchema; } });
|
|
47
48
|
Object.defineProperty(exports, "AgentTextContentSchema", { enumerable: true, get: function () { return schema_1.AgentTextContentSchema; } });
|
|
48
49
|
Object.defineProperty(exports, "AgentToolCallContentSchema", { enumerable: true, get: function () { return schema_1.AgentToolCallContentSchema; } });
|
|
49
50
|
Object.defineProperty(exports, "AgentToolResultContentSchema", { enumerable: true, get: function () { return schema_1.AgentToolResultContentSchema; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA+C;AAC/C,iDAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA+C;AAC/C,iDAAiC;AACjC,iCAA0C;AAAjC,wGAAA,eAAe,OAAA;AACxB,uDAAsD;AAA7C,8GAAA,aAAa,OAAA;AACtB,yCAQwB;AAPtB,iHAAA,uBAAuB,OAAA;AACvB,mHAAA,yBAAyB,OAAA;AACzB,4GAAA,kBAAkB,OAAA;AAClB,0GAAA,gBAAgB,OAAA;AAChB,gHAAA,sBAAsB,OAAA;AACtB,oHAAA,0BAA0B,OAAA;AAC1B,sHAAA,4BAA4B,OAAA;AAE9B,gDAA+D;AAAtD,gHAAA,sBAAsB,OAAA;AAsB/B,uCAMuB;AALrB,kHAAA,yBAAyB,OAAA;AACzB,2HAAA,kCAAkC,OAAA;AAClC,2HAAA,kCAAkC,OAAA;AAClC,wHAAA,+BAA+B,OAAA;AAC/B,qGAAA,YAAY,OAAA;AAEd,yCAA8C;AAArC,4GAAA,eAAe,OAAA;AAExB,sDAAmE;AAA1D,oHAAA,uBAAuB,OAAA;AAChC,sDAAqD;AAA5C,sGAAA,SAAS,OAAA;AAClB,gDAA6D;AAApD,8GAAA,oBAAoB,OAAA;AAC7B,kDAAmE;AAA1D,oHAAA,yBAAyB,OAAA;AAQlC,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arvo-tools/agentic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Agentic toolset for building applications using arvo-core and arvo-event-handler",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@anthropic-ai/sdk": "0.
|
|
35
|
-
"@arizeai/openinference-semantic-conventions": "2.1.
|
|
36
|
-
"@modelcontextprotocol/sdk": "1.
|
|
34
|
+
"@anthropic-ai/sdk": "0.74.0",
|
|
35
|
+
"@arizeai/openinference-semantic-conventions": "2.1.7",
|
|
36
|
+
"@modelcontextprotocol/sdk": "1.26.0",
|
|
37
37
|
"@opentelemetry/api": "1.9.0",
|
|
38
|
-
"arvo-core": "3.0.
|
|
39
|
-
"arvo-event-handler": "3.0.
|
|
40
|
-
"openai": "6.
|
|
38
|
+
"arvo-core": "3.0.28",
|
|
39
|
+
"arvo-event-handler": "3.0.28",
|
|
40
|
+
"openai": "6.18.0",
|
|
41
41
|
"uuid": "11.1.0",
|
|
42
42
|
"zod": "3.25.76",
|
|
43
|
-
"zod-to-json-schema": "3.25.
|
|
43
|
+
"zod-to-json-schema": "3.25.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "24.10.1",
|