@arvo-tools/agentic 1.0.1 → 1.1.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.
Files changed (64) hide show
  1. package/dist/Agent/AgentDefaults.d.ts +10 -2
  2. package/dist/Agent/AgentDefaults.d.ts.map +1 -1
  3. package/dist/Agent/AgentDefaults.js +27 -11
  4. package/dist/Agent/AgentDefaults.js.map +1 -1
  5. package/dist/Agent/agentLoop.d.ts +25 -11
  6. package/dist/Agent/agentLoop.d.ts.map +1 -1
  7. package/dist/Agent/agentLoop.js +84 -23
  8. package/dist/Agent/agentLoop.js.map +1 -1
  9. package/dist/Agent/index.d.ts +5 -1
  10. package/dist/Agent/index.d.ts.map +1 -1
  11. package/dist/Agent/index.js +36 -7
  12. package/dist/Agent/index.js.map +1 -1
  13. package/dist/Agent/schema.d.ts +76 -76
  14. package/dist/Agent/schema.js +4 -4
  15. package/dist/Agent/schema.js.map +1 -1
  16. package/dist/Agent/stream/schema.d.ts +456 -0
  17. package/dist/Agent/stream/schema.d.ts.map +1 -0
  18. package/dist/Agent/stream/schema.js +88 -0
  19. package/dist/Agent/stream/schema.js.map +1 -0
  20. package/dist/Agent/stream/types.d.ts +13 -0
  21. package/dist/Agent/stream/types.d.ts.map +1 -0
  22. package/dist/Agent/stream/types.js +3 -0
  23. package/dist/Agent/stream/types.js.map +1 -0
  24. package/dist/Agent/stream/utils.d.ts +23 -0
  25. package/dist/Agent/stream/utils.d.ts.map +1 -0
  26. package/dist/Agent/stream/utils.js +37 -0
  27. package/dist/Agent/stream/utils.js.map +1 -0
  28. package/dist/Agent/types.d.ts +5 -0
  29. package/dist/Agent/types.d.ts.map +1 -1
  30. package/dist/Integrations/anthropic/index.d.ts +24 -0
  31. package/dist/Integrations/anthropic/index.d.ts.map +1 -0
  32. package/dist/Integrations/anthropic/index.js +278 -0
  33. package/dist/Integrations/anthropic/index.js.map +1 -0
  34. package/dist/Integrations/anthropic/types.d.ts +17 -0
  35. package/dist/Integrations/anthropic/types.d.ts.map +1 -0
  36. package/dist/Integrations/anthropic/types.js +3 -0
  37. package/dist/Integrations/anthropic/types.js.map +1 -0
  38. package/dist/Integrations/anthropic/utils.d.ts +14 -0
  39. package/dist/Integrations/anthropic/utils.d.ts.map +1 -0
  40. package/dist/Integrations/anthropic/utils.js +158 -0
  41. package/dist/Integrations/anthropic/utils.js.map +1 -0
  42. package/dist/Integrations/openai/index.d.ts +15 -19
  43. package/dist/Integrations/openai/index.d.ts.map +1 -1
  44. package/dist/Integrations/openai/index.js +74 -179
  45. package/dist/Integrations/openai/index.js.map +1 -1
  46. package/dist/Integrations/openai/types.d.ts +33 -0
  47. package/dist/Integrations/openai/types.d.ts.map +1 -0
  48. package/dist/Integrations/openai/types.js +3 -0
  49. package/dist/Integrations/openai/types.js.map +1 -0
  50. package/dist/Integrations/openai/utils.d.ts +13 -0
  51. package/dist/Integrations/openai/utils.d.ts.map +1 -0
  52. package/dist/Integrations/openai/utils.js +133 -0
  53. package/dist/Integrations/openai/utils.js.map +1 -0
  54. package/dist/Integrations/prompts.d.ts +1 -0
  55. package/dist/Integrations/prompts.d.ts.map +1 -1
  56. package/dist/Integrations/prompts.js +5 -1
  57. package/dist/Integrations/prompts.js.map +1 -1
  58. package/dist/Integrations/types.d.ts +41 -1
  59. package/dist/Integrations/types.d.ts.map +1 -1
  60. package/dist/index.d.ts +3 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +5 -1
  63. package/dist/index.js.map +1 -1
  64. package/package.json +2 -1
@@ -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;AAE7C;;;;;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,CAA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AwB,EAC/B,MAAM,EAAE;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,KAC/B,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAExC,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IAEhE;;;;;OAKG;IACH,eAAe,CAAC,EAAE,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,kBAAkB,CAAC,KAAK,MAAM,CAAC;IAE7F;;;;;;;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"}
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';
@@ -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,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AACxB,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,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,k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,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;AAkB9B,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,sDAAqD;AAA5C,sGAAA,SAAS,OAAA;AAClB,gDAA6D;AAApD,8GAAA,oBAAoB,OAAA;AAC7B,kDAAmE;AAA1D,oHAAA,yBAAyB,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.0.1",
3
+ "version": "1.1.1",
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,6 +25,7 @@
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",
29
30
  "@modelcontextprotocol/sdk": "^1.22.0",
30
31
  "@opentelemetry/api": "1.9.0",