@arvo-tools/agentic 1.0.0 → 1.1.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 +10 -2
- package/dist/Agent/AgentDefaults.d.ts.map +1 -1
- package/dist/Agent/AgentDefaults.js +27 -11
- package/dist/Agent/AgentDefaults.js.map +1 -1
- package/dist/Agent/agentLoop.d.ts +25 -11
- package/dist/Agent/agentLoop.d.ts.map +1 -1
- package/dist/Agent/agentLoop.js +84 -23
- package/dist/Agent/agentLoop.js.map +1 -1
- package/dist/Agent/index.d.ts +5 -1
- package/dist/Agent/index.d.ts.map +1 -1
- package/dist/Agent/index.js +61 -30
- package/dist/Agent/index.js.map +1 -1
- package/dist/Agent/schema.d.ts +76 -76
- package/dist/Agent/schema.js +4 -4
- package/dist/Agent/schema.js.map +1 -1
- package/dist/Agent/stream/schema.d.ts +456 -0
- package/dist/Agent/stream/schema.d.ts.map +1 -0
- package/dist/Agent/stream/schema.js +88 -0
- package/dist/Agent/stream/schema.js.map +1 -0
- package/dist/Agent/stream/types.d.ts +13 -0
- package/dist/Agent/stream/types.d.ts.map +1 -0
- package/dist/Agent/stream/types.js +3 -0
- package/dist/Agent/stream/types.js.map +1 -0
- package/dist/Agent/stream/utils.d.ts +23 -0
- package/dist/Agent/stream/utils.d.ts.map +1 -0
- package/dist/Agent/stream/utils.js +37 -0
- package/dist/Agent/stream/utils.js.map +1 -0
- package/dist/Agent/types.d.ts +15 -2
- package/dist/Agent/types.d.ts.map +1 -1
- package/dist/AgentTool/index.d.ts +26 -0
- package/dist/AgentTool/index.d.ts.map +1 -1
- package/dist/AgentTool/index.js +26 -0
- package/dist/AgentTool/index.js.map +1 -1
- package/dist/AgentTool/types.d.ts +42 -4
- package/dist/AgentTool/types.d.ts.map +1 -1
- package/dist/Integrations/anthropic/index.d.ts +24 -0
- package/dist/Integrations/anthropic/index.d.ts.map +1 -0
- package/dist/Integrations/anthropic/index.js +278 -0
- package/dist/Integrations/anthropic/index.js.map +1 -0
- package/dist/Integrations/anthropic/types.d.ts +17 -0
- package/dist/Integrations/anthropic/types.d.ts.map +1 -0
- package/dist/Integrations/anthropic/types.js +3 -0
- package/dist/Integrations/anthropic/types.js.map +1 -0
- package/dist/Integrations/anthropic/utils.d.ts +14 -0
- package/dist/Integrations/anthropic/utils.d.ts.map +1 -0
- package/dist/Integrations/anthropic/utils.js +158 -0
- package/dist/Integrations/anthropic/utils.js.map +1 -0
- package/dist/Integrations/openai/index.d.ts +15 -19
- package/dist/Integrations/openai/index.d.ts.map +1 -1
- package/dist/Integrations/openai/index.js +74 -179
- package/dist/Integrations/openai/index.js.map +1 -1
- package/dist/Integrations/openai/types.d.ts +33 -0
- package/dist/Integrations/openai/types.d.ts.map +1 -0
- package/dist/Integrations/openai/types.js +3 -0
- package/dist/Integrations/openai/types.js.map +1 -0
- package/dist/Integrations/openai/utils.d.ts +13 -0
- package/dist/Integrations/openai/utils.d.ts.map +1 -0
- package/dist/Integrations/openai/utils.js +133 -0
- package/dist/Integrations/openai/utils.js.map +1 -0
- package/dist/Integrations/prompts.d.ts +1 -0
- package/dist/Integrations/prompts.d.ts.map +1 -1
- package/dist/Integrations/prompts.js +5 -1
- package/dist/Integrations/prompts.js.map +1 -1
- package/dist/Integrations/types.d.ts +41 -1
- package/dist/Integrations/types.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type OpenAI from 'openai';
|
|
2
|
+
import type { AzureOpenAI } from 'openai';
|
|
3
|
+
import type { CommonIntegrationConfig } from '../types';
|
|
4
|
+
export type OpenAILlmIntegrationConfig<TClient extends OpenAI | AzureOpenAI> = {
|
|
5
|
+
/**
|
|
6
|
+
* Configuration strictly for the model invocation parameters passed to the OpenAI SDK.
|
|
7
|
+
*
|
|
8
|
+
* Common parameters include:
|
|
9
|
+
* - `model`: The model ID (e.g., `gpt-4o`).
|
|
10
|
+
* - `temperature`: Controls randomness.
|
|
11
|
+
* - `max_completion_tokens` or `max_tokens`: Limits the generation length.
|
|
12
|
+
*
|
|
13
|
+
* @default
|
|
14
|
+
* { model: 'gpt-4o', max_completion_tokens: 4096, temperature: 0 }
|
|
15
|
+
*/
|
|
16
|
+
invocationParam?: Pick<Parameters<TClient['chat']['completions']['create']>[0], 'model' | 'temperature' | 'max_tokens' | 'max_completion_tokens'>;
|
|
17
|
+
/**
|
|
18
|
+
* Configuration for distributed tracing attributes.
|
|
19
|
+
*/
|
|
20
|
+
telemetry?: {
|
|
21
|
+
/**
|
|
22
|
+
* The value for the `llm.provider` OpenTelemetry attribute.
|
|
23
|
+
* @default 'openai'
|
|
24
|
+
*/
|
|
25
|
+
modelProvider?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The value for the `llm.system` OpenTelemetry attribute.
|
|
28
|
+
* @default 'openai' (or 'azure_openai' if utilizing Azure)
|
|
29
|
+
*/
|
|
30
|
+
modelSystem?: string;
|
|
31
|
+
};
|
|
32
|
+
} & CommonIntegrationConfig;
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Integrations/openai/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,MAAM,GAAG,WAAW,IAAI;IAC7E;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,IAAI,CACpB,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EACvD,OAAO,GAAG,aAAa,GAAG,YAAY,GAAG,uBAAuB,CACjE,CAAC;IAEF;;OAEG;IACH,SAAS,CAAC,EAAE;QACV;;;WAGG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH,GAAG,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/Integrations/openai/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ChatCompletionMessageParam } from 'openai/resources/index.mjs';
|
|
2
|
+
import type { AgentLLMIntegrationParam } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Internal Adapter: Maps Arvo's generic Agent Message format to OpenAI's specific API format.
|
|
5
|
+
*
|
|
6
|
+
* Handles:
|
|
7
|
+
* - System Prompt injection.
|
|
8
|
+
* - Mapping Tool Results to their originating Tool Call IDs.
|
|
9
|
+
* - Multimodal Content (converting Arvo media objects to OpenAI Image/File URLs).
|
|
10
|
+
* - Reconstructs the specific message ordering OpenAI expects (User -> Assistant(ToolCall) -> Tool(Result)).
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatMessagesForOpenAI: (messages: AgentLLMIntegrationParam["messages"], systemPrompt: string | null) => ChatCompletionMessageParam[];
|
|
13
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/Integrations/openai/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEzD;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GAClC,UAAU,wBAAwB,CAAC,UAAU,CAAC,EAC9C,cAAc,MAAM,GAAG,IAAI,KAC1B,0BAA0B,EAyF5B,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __values = (this && this.__values) || function(o) {
|
|
3
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
4
|
+
if (m) return m.call(o);
|
|
5
|
+
if (o && typeof o.length === "number") return {
|
|
6
|
+
next: function () {
|
|
7
|
+
if (o && i >= o.length) o = void 0;
|
|
8
|
+
return { value: o && o[i++], done: !o };
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.formatMessagesForOpenAI = void 0;
|
|
15
|
+
/**
|
|
16
|
+
* Internal Adapter: Maps Arvo's generic Agent Message format to OpenAI's specific API format.
|
|
17
|
+
*
|
|
18
|
+
* Handles:
|
|
19
|
+
* - System Prompt injection.
|
|
20
|
+
* - Mapping Tool Results to their originating Tool Call IDs.
|
|
21
|
+
* - Multimodal Content (converting Arvo media objects to OpenAI Image/File URLs).
|
|
22
|
+
* - Reconstructs the specific message ordering OpenAI expects (User -> Assistant(ToolCall) -> Tool(Result)).
|
|
23
|
+
*/
|
|
24
|
+
var formatMessagesForOpenAI = function (messages, systemPrompt) {
|
|
25
|
+
var e_1, _a, e_2, _b;
|
|
26
|
+
var _c;
|
|
27
|
+
var formattedMessages = [];
|
|
28
|
+
if (systemPrompt) {
|
|
29
|
+
formattedMessages.push({
|
|
30
|
+
role: 'system',
|
|
31
|
+
content: systemPrompt,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
var toolResponseMap = {};
|
|
35
|
+
try {
|
|
36
|
+
for (var messages_1 = __values(messages), messages_1_1 = messages_1.next(); !messages_1_1.done; messages_1_1 = messages_1.next()) {
|
|
37
|
+
var message = messages_1_1.value;
|
|
38
|
+
if (message.role === 'user' && message.content.type === 'tool_result') {
|
|
39
|
+
toolResponseMap[message.content.toolUseId] = message.content;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
44
|
+
finally {
|
|
45
|
+
try {
|
|
46
|
+
if (messages_1_1 && !messages_1_1.done && (_a = messages_1.return)) _a.call(messages_1);
|
|
47
|
+
}
|
|
48
|
+
finally { if (e_1) throw e_1.error; }
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
for (var messages_2 = __values(messages), messages_2_1 = messages_2.next(); !messages_2_1.done; messages_2_1 = messages_2.next()) {
|
|
52
|
+
var message = messages_2_1.value;
|
|
53
|
+
if (message.role === 'user') {
|
|
54
|
+
if (message.content.type === 'text') {
|
|
55
|
+
formattedMessages.push({
|
|
56
|
+
role: 'user',
|
|
57
|
+
content: message.content.content,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
else if (message.content.type === 'media' &&
|
|
61
|
+
message.content.contentType.type === 'image' &&
|
|
62
|
+
message.content.contentType.format === 'base64') {
|
|
63
|
+
formattedMessages.push({
|
|
64
|
+
role: 'user',
|
|
65
|
+
content: [
|
|
66
|
+
{
|
|
67
|
+
type: 'image_url',
|
|
68
|
+
image_url: {
|
|
69
|
+
url: message.content.content,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
else if (message.content.type === 'media' &&
|
|
76
|
+
message.content.contentType.type === 'file' &&
|
|
77
|
+
message.content.contentType.format === 'base64') {
|
|
78
|
+
formattedMessages.push({
|
|
79
|
+
role: 'user',
|
|
80
|
+
content: [
|
|
81
|
+
{
|
|
82
|
+
type: 'file',
|
|
83
|
+
file: {
|
|
84
|
+
filename: message.content.contentType.name,
|
|
85
|
+
file_data: message.content.content,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
else if (message.role === 'assistant') {
|
|
93
|
+
if (message.content.type === 'text') {
|
|
94
|
+
formattedMessages.push({
|
|
95
|
+
role: 'assistant',
|
|
96
|
+
content: message.content.content,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
else if (message.content.type === 'tool_use') {
|
|
100
|
+
formattedMessages.push({
|
|
101
|
+
role: 'assistant',
|
|
102
|
+
tool_calls: [
|
|
103
|
+
{
|
|
104
|
+
type: 'function',
|
|
105
|
+
id: message.content.toolUseId,
|
|
106
|
+
function: {
|
|
107
|
+
name: message.content.name,
|
|
108
|
+
arguments: JSON.stringify(message.content.input),
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
});
|
|
113
|
+
var toolResult = toolResponseMap[message.content.toolUseId];
|
|
114
|
+
formattedMessages.push({
|
|
115
|
+
role: 'tool',
|
|
116
|
+
tool_call_id: message.content.toolUseId,
|
|
117
|
+
content: (_c = toolResult === null || toolResult === void 0 ? void 0 : toolResult.content) !== null && _c !== void 0 ? _c : JSON.stringify({ error: 'No tool response' }),
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
124
|
+
finally {
|
|
125
|
+
try {
|
|
126
|
+
if (messages_2_1 && !messages_2_1.done && (_b = messages_2.return)) _b.call(messages_2);
|
|
127
|
+
}
|
|
128
|
+
finally { if (e_2) throw e_2.error; }
|
|
129
|
+
}
|
|
130
|
+
return formattedMessages;
|
|
131
|
+
};
|
|
132
|
+
exports.formatMessagesForOpenAI = formatMessagesForOpenAI;
|
|
133
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/Integrations/openai/utils.ts"],"names":[],"mappings":";;;;;;;;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AAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;iCACjD;6BACF;yBACF;qBACF,CAAC,CAAC;oBACH,IAAM,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;oBAC9D,iBAAiB,CAAC,IAAI,CAAC;wBACrB,IAAI,EAAE,MAAM;wBACZ,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS;wBACvC,OAAO,EAAE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,mCAAI,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC;qBAC9E,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;;;;;;;;;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC;AA5FW,QAAA,uBAAuB,2BA4FlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/Integrations/prompts.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,QAOpC,CAAC"}
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/Integrations/prompts.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,QAOpC,CAAC;AAEH,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,WAmCvC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_TOOL_LIMIT_PROMPT = void 0;
|
|
3
|
+
exports.jsonPrompt = exports.DEFAULT_TOOL_LIMIT_PROMPT = void 0;
|
|
4
4
|
var arvo_core_1 = require("arvo-core");
|
|
5
5
|
/**
|
|
6
6
|
* Standard System Instruction injected when the Agent reaches its `maxToolInteractions` limit.
|
|
@@ -9,4 +9,8 @@ var arvo_core_1 = require("arvo-core");
|
|
|
9
9
|
* synthesize a final response based on whatever partial data it has managed to collect so far.
|
|
10
10
|
*/
|
|
11
11
|
exports.DEFAULT_TOOL_LIMIT_PROMPT = (0, arvo_core_1.cleanString)("\n **CRITICAL WARNING: You have reached your tool interaction limit!**\n You must answer the original question using all the data available to you. \n You have run out of tool call budget. No more tool calls are allowed any more.\n If you cannot answer the query well. Then mention what you have done briefly, what\n can you answer based on the collected data, what data is missing and why you cannot \n answer any further. \n");
|
|
12
|
+
var jsonPrompt = function (schema) {
|
|
13
|
+
return (0, arvo_core_1.cleanString)("\n # Critical JSON Output Requirements\n You must return ONLY a valid JSON object with no additional text, explanations, or formatting outside the required JSON structure.\n\n ## Mandatory Compliance Rules\n 1. The entire response must be a single, parseable JSON object\n 2. Use double quotes for all keys and string values\n 3. No text, commentary, or explanations before or after the JSON\n 4. No markdown code fences (```json or ```) - return raw JSON only\n 5. Properly escape special characters: \\n for newlines, \\\" for quotes, \\\\ for backslashes\n 6. Use literal values: true, false, and null (lowercase, never as strings)\n 7. Numbers must not be enclosed in quotes\n 8. No comments (// or /* */) or trailing commas anywhere in the JSON\n 9. Arrays must use square brackets [], objects must use curly braces {}\n 10. All required fields in the schema MUST be present\n 11. Do not include fields not defined in the schema\n 12. When a field is optional and you have no value, omit it entirely (do not use null unless the schema explicitly allows it)\n\n ## Schema Specification\n The response must conform exactly to this JSON Schema (Draft-07) structure:\n ```json\n ".concat(schema, "\n ```\n\n ## Output Format\n Return ONLY the raw JSON object starting with { and ending with }.\n The output will be parsed directly using JSON.parse(), so any non-compliant formatting will cause a fatal error.\n\n ## Common Mistakes to Avoid\n - Do NOT wrap the JSON in markdown code blocks\n - Do NOT include any preamble like \"Here is the JSON:\"\n - Do NOT include any explanation after the JSON\n - Do NOT use single quotes instead of double quotes\n - Do NOT leave trailing commas after the last item in arrays or objects\n"));
|
|
14
|
+
};
|
|
15
|
+
exports.jsonPrompt = jsonPrompt;
|
|
12
16
|
//# sourceMappingURL=prompts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/Integrations/prompts.ts"],"names":[],"mappings":";;;AAAA,uCAAwC;AAExC;;;;;GAKG;AACU,QAAA,yBAAyB,GAAG,IAAA,uBAAW,EAAC,mbAOpD,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/Integrations/prompts.ts"],"names":[],"mappings":";;;AAAA,uCAAwC;AAExC;;;;;GAKG;AACU,QAAA,yBAAyB,GAAG,IAAA,uBAAW,EAAC,mbAOpD,CAAC,CAAC;AAEI,IAAM,UAAU,GAAG,UAAC,MAAc;IACvC,OAAA,IAAA,uBAAW,EAAC,+tCAqBR,MAAM,sjBAaX,CAAC;AAlCA,CAkCA,CAAC;AAnCU,QAAA,UAAU,cAmCpB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type z from 'zod';
|
|
2
|
+
import type { AgentEventStreamer } from '../Agent/stream/types';
|
|
2
3
|
import type { AgentLLMContext, AgentMessage, AgentToolCallContent, AgentToolDefinition } from '../Agent/types';
|
|
3
|
-
import type { OtelInfoType } from '../types';
|
|
4
|
+
import type { OtelInfoType, PromiseAble } from '../types';
|
|
4
5
|
/**
|
|
5
6
|
* The standardized input payload passed to a Custom LLM Integration function.
|
|
6
7
|
*
|
|
@@ -41,6 +42,10 @@ export type AgentLLMIntegrationParam = {
|
|
|
41
42
|
type: 'json';
|
|
42
43
|
format: z.ZodTypeAny;
|
|
43
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* A function to log streaming events from the llm
|
|
47
|
+
*/
|
|
48
|
+
onStream: AgentEventStreamer;
|
|
44
49
|
};
|
|
45
50
|
/**
|
|
46
51
|
* The normalized response object your Custom Integration must return.
|
|
@@ -98,4 +103,39 @@ export type AgentLLMIntegrationOutput = {
|
|
|
98
103
|
export type AgentLLMIntegration = (param: AgentLLMIntegrationParam, config: {
|
|
99
104
|
otelInfo: OtelInfoType;
|
|
100
105
|
}) => Promise<AgentLLMIntegrationOutput>;
|
|
106
|
+
export type CommonIntegrationConfig = {
|
|
107
|
+
/**
|
|
108
|
+
* A calculator function to determine the abstract "Execution Units" (cost) of the LLM call.
|
|
109
|
+
*
|
|
110
|
+
* This allows mapping raw token usage to a unified cost metric used by the `Arvo` event system.
|
|
111
|
+
* For example, $Cost = (PromptTokens \times Price_{in}) + (CompletionTokens \times Price_{out})$.
|
|
112
|
+
*
|
|
113
|
+
* @param prompt - The number of input tokens used.
|
|
114
|
+
* @param completion - The number of output tokens generated.
|
|
115
|
+
* @returns The calculated execution units (e.g., cost in cents or arbitrary units).
|
|
116
|
+
*/
|
|
117
|
+
executionunits?: (prompt: number, completion: number) => number;
|
|
118
|
+
/**
|
|
119
|
+
* A custom system instruction injected when the agent exceeds its `maxToolInteractions` limit.
|
|
120
|
+
*
|
|
121
|
+
* Use this to guide the model to either summarize its current progress, give up gracefully, or
|
|
122
|
+
* attempt a final answer without further tool usage.
|
|
123
|
+
*/
|
|
124
|
+
toolLimitPrompt?: (toolInteractions: AgentLLMIntegrationParam['toolInteractions']) => string;
|
|
125
|
+
/**
|
|
126
|
+
* An optional interceptor to transform messages or system instructions immediately before the LLM call.
|
|
127
|
+
*
|
|
128
|
+
* This is useful for last-mile modifications, such as filtering sensitive data or appending dynamic
|
|
129
|
+
* context, without permanently altering the Agent's state history.
|
|
130
|
+
*
|
|
131
|
+
* @returns A promise resolving to the modified `messages` array and `system` prompt string.
|
|
132
|
+
*/
|
|
133
|
+
contextTransformer?: (param: {
|
|
134
|
+
messages: AgentMessage[];
|
|
135
|
+
system: string | null;
|
|
136
|
+
}) => PromiseAble<{
|
|
137
|
+
messages: AgentMessage[];
|
|
138
|
+
system: string | null;
|
|
139
|
+
}>;
|
|
140
|
+
};
|
|
101
141
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Integrations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Integrations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,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;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,GAAG,aAAa,GAAG,uBAAuB,CAAC;IAE5D,kGAAkG;IAClG,QAAQ,EAAE,YAAY,EAAE,CAAC;IAEzB,mFAAmF;IACnF,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,+FAA+F;IAC/F,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAE7B;;;;OAIG;IACH,gBAAgB,EAAE,eAAe,CAAC,kBAAkB,CAAC,GAAG;QACtD,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;IAEF;;;;OAIG;IACH,YAAY,EACR;QACE,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC;KACtB,CAAC;IAEN;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM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MAAM,GAAG,IAAI,CAAC;KACvB,CAAC,CAAC;CACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export { AgentState, createArvoAgent } from './Agent';
|
|
2
2
|
export { AgentDefaults } from './Agent/AgentDefaults';
|
|
3
3
|
export { AgentMediaContentSchema, AgentMessageContentSchema, AgentMessageSchema, AgentTextContentSchema, AgentToolCallContentSchema, AgentToolResultContentSchema, } from './Agent/schema';
|
|
4
|
+
export { AgentStreamEventSchema } from './Agent/stream/schema';
|
|
5
|
+
export { AgentStreamListener } from './Agent/stream/types';
|
|
4
6
|
export type { AgentContextBuilder, AgentLLMContext, AgentMediaContent, AgentMessage, AgentMessageContent, AgentOutputBuilder, AgentServiceContract, AgentTextContent, AgentToolCallContent, AgentToolDefinition, AgentToolResultContent, AnyArvoContract, AnyArvoOrchestratorContract, CreateArvoAgentParam, } from './Agent/types';
|
|
5
7
|
export { setOpenInferenceInputAttr, setOpenInferenceResponseOutputAttr, setOpenInferenceToolCallOutputAttr, setOpenInferenceUsageOutputAttr, tryParseJson, } from './Agent/utils';
|
|
6
8
|
export { createAgentTool } from './AgentTool';
|
|
7
9
|
export type { AgentInternalTool } from './AgentTool/types';
|
|
10
|
+
export { anthropicLLMIntegration } from './Integrations/anthropic';
|
|
8
11
|
export { MCPClient } from './Integrations/MCPClient';
|
|
9
12
|
export { openaiLLMIntegration } from './Integrations/openai';
|
|
10
13
|
export { DEFAULT_TOOL_LIMIT_PROMPT } from './Integrations/prompts';
|
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,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB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AAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,2BAA2B,EAC3B,oBAAoB,GACrB,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,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_TOOL_LIMIT_PROMPT = exports.openaiLLMIntegration = exports.MCPClient = exports.createAgentTool = exports.tryParseJson = exports.setOpenInferenceUsageOutputAttr = exports.setOpenInferenceToolCallOutputAttr = exports.setOpenInferenceResponseOutputAttr = exports.setOpenInferenceInputAttr = exports.AgentToolResultContentSchema = exports.AgentToolCallContentSchema = exports.AgentTextContentSchema = exports.AgentMessageSchema = exports.AgentMessageContentSchema = exports.AgentMediaContentSchema = exports.AgentDefaults = exports.createArvoAgent = void 0;
|
|
3
|
+
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 = void 0;
|
|
4
4
|
var Agent_1 = require("./Agent");
|
|
5
5
|
Object.defineProperty(exports, "createArvoAgent", { enumerable: true, get: function () { return Agent_1.createArvoAgent; } });
|
|
6
6
|
var AgentDefaults_1 = require("./Agent/AgentDefaults");
|
|
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "AgentMessageSchema", { enumerable: true, get: fu
|
|
|
12
12
|
Object.defineProperty(exports, "AgentTextContentSchema", { enumerable: true, get: function () { return schema_1.AgentTextContentSchema; } });
|
|
13
13
|
Object.defineProperty(exports, "AgentToolCallContentSchema", { enumerable: true, get: function () { return schema_1.AgentToolCallContentSchema; } });
|
|
14
14
|
Object.defineProperty(exports, "AgentToolResultContentSchema", { enumerable: true, get: function () { return schema_1.AgentToolResultContentSchema; } });
|
|
15
|
+
var schema_2 = require("./Agent/stream/schema");
|
|
16
|
+
Object.defineProperty(exports, "AgentStreamEventSchema", { enumerable: true, get: function () { return schema_2.AgentStreamEventSchema; } });
|
|
15
17
|
var utils_1 = require("./Agent/utils");
|
|
16
18
|
Object.defineProperty(exports, "setOpenInferenceInputAttr", { enumerable: true, get: function () { return utils_1.setOpenInferenceInputAttr; } });
|
|
17
19
|
Object.defineProperty(exports, "setOpenInferenceResponseOutputAttr", { enumerable: true, get: function () { return utils_1.setOpenInferenceResponseOutputAttr; } });
|
|
@@ -20,6 +22,8 @@ Object.defineProperty(exports, "setOpenInferenceUsageOutputAttr", { enumerable:
|
|
|
20
22
|
Object.defineProperty(exports, "tryParseJson", { enumerable: true, get: function () { return utils_1.tryParseJson; } });
|
|
21
23
|
var AgentTool_1 = require("./AgentTool");
|
|
22
24
|
Object.defineProperty(exports, "createAgentTool", { enumerable: true, get: function () { return AgentTool_1.createAgentTool; } });
|
|
25
|
+
var anthropic_1 = require("./Integrations/anthropic");
|
|
26
|
+
Object.defineProperty(exports, "anthropicLLMIntegration", { enumerable: true, get: function () { return anthropic_1.anthropicLLMIntegration; } });
|
|
23
27
|
var MCPClient_1 = require("./Integrations/MCPClient");
|
|
24
28
|
Object.defineProperty(exports, "MCPClient", { enumerable: true, get: function () { return MCPClient_1.MCPClient; } });
|
|
25
29
|
var openai_1 = require("./Integrations/openai");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iCAAsD;AAAjC,wGAAA,eAAe,OAAA;AACpC,uDAAsD;AAA7C,8GAAA,aAAa,OAAA;AACtB,yCAOwB;AANtB,iHAAA,uBAAuB,OAAA;AACvB,mHAAA,yBAAyB,OAAA;AACzB,4GAAA,kBAAkB,OAAA;AAClB,gHAAA,sBAAsB,OAAA;AACtB,oHAAA,0BAA0B,OAAA;AAC1B,sHAAA,4BAA4B,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iCAAsD;AAAjC,wGAAA,eAAe,OAAA;AACpC,uDAAsD;AAA7C,8GAAA,aAAa,OAAA;AACtB,yCAOwB;AANtB,iHAAA,uBAAuB,OAAA;AACvB,mHAAA,yBAAyB,OAAA;AACzB,4GAAA,kBAAkB,OAAA;AAClB,gHAAA,sBAAsB,OAAA;AACtB,oHAAA,0BAA0B,OAAA;AAC1B,sHAAA,4BAA4B,OAAA;AAE9B,gDAA+D;AAAtD,gHAAA,sBAAsB,OAAA;AAkB/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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arvo-tools/agentic",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.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",
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@anthropic-ai/sdk": "^0.71.0",
|
|
28
29
|
"@arizeai/openinference-semantic-conventions": "^2.1.2",
|
|
30
|
+
"@azure/openai": "^2.0.0",
|
|
29
31
|
"@modelcontextprotocol/sdk": "^1.22.0",
|
|
30
32
|
"@opentelemetry/api": "1.9.0",
|
|
31
33
|
"arvo-core": "^3.0.19",
|