@toolpack-sdk/agents 3.1.0 → 3.2.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/README.md +36 -1
- package/dist/{base-agent-iaQiO7jW.d.cts → base-agent-C_h8KyH0.d.cts} +3 -3
- package/dist/{base-agent-CJE2QCjY.d.ts → base-agent-DIuUtRdS.d.ts} +3 -3
- package/dist/capabilities/index.cjs +24 -24
- package/dist/capabilities/index.d.cts +3 -3
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/index.js +21 -21
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.d.cts +2 -2
- package/dist/channels/index.d.ts +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{eval-report-0O9AlW7u.d.ts → eval-report---32U3p-.d.ts} +1 -1
- package/dist/{eval-report-DUlkrBuJ.d.cts → eval-report-uHxVuPiL.d.cts} +1 -1
- package/dist/{index-DQuf4mxT.d.ts → index-Bd2nQrax.d.ts} +25 -3
- package/dist/{index-a2wZU6Eu.d.cts → index-Cuyk9sbf.d.cts} +25 -3
- package/dist/index.cjs +35 -35
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +35 -35
- package/dist/{intent-classifier-agent-QuB4WIWf.d.ts → intent-classifier-agent-CZMHh1wf.d.ts} +2 -2
- package/dist/{intent-classifier-agent-CEmRGpUr.d.cts → intent-classifier-agent-DRNbyZ5N.d.cts} +2 -2
- package/dist/interceptors/index.d.cts +4 -4
- package/dist/interceptors/index.d.ts +4 -4
- package/dist/testing/index.d.cts +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/{types-CJinv165.d.cts → types-D5dxhUX8.d.cts} +3 -1
- package/dist/{types-CJinv165.d.ts → types-D5dxhUX8.d.ts} +3 -1
- package/package.json +3 -3
package/dist/{intent-classifier-agent-QuB4WIWf.d.ts → intent-classifier-agent-CZMHh1wf.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseAgentOptions, A as AgentInput, a as AgentResult } from './types-
|
|
2
|
-
import { B as BaseAgent } from './base-agent-
|
|
1
|
+
import { B as BaseAgentOptions, A as AgentInput, a as AgentResult } from './types-D5dxhUX8.js';
|
|
2
|
+
import { B as BaseAgent } from './base-agent-DIuUtRdS.js';
|
|
3
3
|
import { ModeConfig } from 'toolpack-sdk';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/{intent-classifier-agent-CEmRGpUr.d.cts → intent-classifier-agent-DRNbyZ5N.d.cts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseAgentOptions, A as AgentInput, a as AgentResult } from './types-
|
|
2
|
-
import { B as BaseAgent } from './base-agent-
|
|
1
|
+
import { B as BaseAgentOptions, A as AgentInput, a as AgentResult } from './types-D5dxhUX8.cjs';
|
|
2
|
+
import { B as BaseAgent } from './base-agent-C_h8KyH0.cjs';
|
|
3
3
|
import { ModeConfig } from 'toolpack-sdk';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AgentInput, k as InterceptorResult, I as Interceptor, g as AgentInstance, C as ChannelInterface, d as IAgentRegistry, i as InterceptorChainConfig, a as AgentResult } from '../types-
|
|
2
|
-
export { j as InterceptorContext, N as NextFunction, S as SKIP_SENTINEL, l as isSkipSentinel, s as skip } from '../types-
|
|
1
|
+
import { A as AgentInput, k as InterceptorResult, I as Interceptor, g as AgentInstance, C as ChannelInterface, d as IAgentRegistry, i as InterceptorChainConfig, a as AgentResult } from '../types-D5dxhUX8.cjs';
|
|
2
|
+
export { j as InterceptorContext, N as NextFunction, S as SKIP_SENTINEL, l as isSkipSentinel, s as skip } from '../types-D5dxhUX8.cjs';
|
|
3
3
|
import { Participant, ConversationStore, ConversationScope, StoredMessage } from 'toolpack-sdk';
|
|
4
|
-
import { I as IntentClassification } from '../intent-classifier-agent-
|
|
4
|
+
import { I as IntentClassification } from '../intent-classifier-agent-DRNbyZ5N.cjs';
|
|
5
5
|
import 'events';
|
|
6
|
-
import '../base-agent-
|
|
6
|
+
import '../base-agent-C_h8KyH0.cjs';
|
|
7
7
|
import '@toolpack-sdk/knowledge';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AgentInput, k as InterceptorResult, I as Interceptor, g as AgentInstance, C as ChannelInterface, d as IAgentRegistry, i as InterceptorChainConfig, a as AgentResult } from '../types-
|
|
2
|
-
export { j as InterceptorContext, N as NextFunction, S as SKIP_SENTINEL, l as isSkipSentinel, s as skip } from '../types-
|
|
1
|
+
import { A as AgentInput, k as InterceptorResult, I as Interceptor, g as AgentInstance, C as ChannelInterface, d as IAgentRegistry, i as InterceptorChainConfig, a as AgentResult } from '../types-D5dxhUX8.js';
|
|
2
|
+
export { j as InterceptorContext, N as NextFunction, S as SKIP_SENTINEL, l as isSkipSentinel, s as skip } from '../types-D5dxhUX8.js';
|
|
3
3
|
import { Participant, ConversationStore, ConversationScope, StoredMessage } from 'toolpack-sdk';
|
|
4
|
-
import { I as IntentClassification } from '../intent-classifier-agent-
|
|
4
|
+
import { I as IntentClassification } from '../intent-classifier-agent-CZMHh1wf.js';
|
|
5
5
|
import 'events';
|
|
6
|
-
import '../base-agent-
|
|
6
|
+
import '../base-agent-DIuUtRdS.js';
|
|
7
7
|
import '@toolpack-sdk/knowledge';
|
|
8
8
|
|
|
9
9
|
/**
|
package/dist/testing/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as ChannelInterface, f as AgentOutput, A as AgentInput, B as BaseAgentOptions } from '../types-
|
|
1
|
+
import { C as ChannelInterface, f as AgentOutput, A as AgentInput, B as BaseAgentOptions } from '../types-D5dxhUX8.cjs';
|
|
2
2
|
import { Chunk, QueryOptions, QueryResult, Knowledge } from '@toolpack-sdk/knowledge';
|
|
3
3
|
import { Toolpack } from 'toolpack-sdk';
|
|
4
|
-
import { B as BaseAgent } from '../base-agent-
|
|
5
|
-
export { C as ContainsScorer, a as CustomScorer, E as EvalCase, b as EvalCaseResult, c as EvalDataset, d as EvalImprovement, e as EvalRegression, f as EvalReport, g as EvalRun, h as EvalRunner, i as EvalRunnerOptions, j as EvalScoredResult, k as EvalScoredRun, l as EvalScorer, m as EvalVerdict, n as ExactMatchScorer, L as LLMJudgeScorer, o as LLMJudgeScorerOptions, p as compareEvalRuns, q as formatEvalReport } from '../eval-report-
|
|
4
|
+
import { B as BaseAgent } from '../base-agent-C_h8KyH0.cjs';
|
|
5
|
+
export { C as ContainsScorer, a as CustomScorer, E as EvalCase, b as EvalCaseResult, c as EvalDataset, d as EvalImprovement, e as EvalRegression, f as EvalReport, g as EvalRun, h as EvalRunner, i as EvalRunnerOptions, j as EvalScoredResult, k as EvalScoredRun, l as EvalScorer, m as EvalVerdict, n as ExactMatchScorer, L as LLMJudgeScorer, o as LLMJudgeScorerOptions, p as compareEvalRuns, q as formatEvalReport } from '../eval-report-uHxVuPiL.cjs';
|
|
6
6
|
import 'events';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as ChannelInterface, f as AgentOutput, A as AgentInput, B as BaseAgentOptions } from '../types-
|
|
1
|
+
import { C as ChannelInterface, f as AgentOutput, A as AgentInput, B as BaseAgentOptions } from '../types-D5dxhUX8.js';
|
|
2
2
|
import { Chunk, QueryOptions, QueryResult, Knowledge } from '@toolpack-sdk/knowledge';
|
|
3
3
|
import { Toolpack } from 'toolpack-sdk';
|
|
4
|
-
import { B as BaseAgent } from '../base-agent-
|
|
5
|
-
export { C as ContainsScorer, a as CustomScorer, E as EvalCase, b as EvalCaseResult, c as EvalDataset, d as EvalImprovement, e as EvalRegression, f as EvalReport, g as EvalRun, h as EvalRunner, i as EvalRunnerOptions, j as EvalScoredResult, k as EvalScoredRun, l as EvalScorer, m as EvalVerdict, n as ExactMatchScorer, L as LLMJudgeScorer, o as LLMJudgeScorerOptions, p as compareEvalRuns, q as formatEvalReport } from '../eval-report
|
|
4
|
+
import { B as BaseAgent } from '../base-agent-DIuUtRdS.js';
|
|
5
|
+
export { C as ContainsScorer, a as CustomScorer, E as EvalCase, b as EvalCaseResult, c as EvalDataset, d as EvalImprovement, e as EvalRegression, f as EvalReport, g as EvalRun, h as EvalRunner, i as EvalRunnerOptions, j as EvalScoredResult, k as EvalScoredRun, l as EvalScorer, m as EvalVerdict, n as ExactMatchScorer, L as LLMJudgeScorer, o as LLMJudgeScorerOptions, p as compareEvalRuns, q as formatEvalReport } from '../eval-report---32U3p-.js';
|
|
6
6
|
import 'events';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Participant, ModeConfig, ToolpackInitConfig, Toolpack } from 'toolpack-sdk';
|
|
1
|
+
import { ImagePart, FilePart, Participant, ModeConfig, ToolpackInitConfig, Toolpack } from 'toolpack-sdk';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -206,6 +206,8 @@ interface AgentInput<TIntent extends string = string> {
|
|
|
206
206
|
intent?: TIntent;
|
|
207
207
|
/** Natural language message from the user */
|
|
208
208
|
message?: string;
|
|
209
|
+
/** Image or file attachments accompanying the message */
|
|
210
|
+
attachments?: Array<ImagePart | FilePart>;
|
|
209
211
|
/** Structured payload from the channel */
|
|
210
212
|
data?: unknown;
|
|
211
213
|
/** Additional context for the agent */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Participant, ModeConfig, ToolpackInitConfig, Toolpack } from 'toolpack-sdk';
|
|
1
|
+
import { ImagePart, FilePart, Participant, ModeConfig, ToolpackInitConfig, Toolpack } from 'toolpack-sdk';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -206,6 +206,8 @@ interface AgentInput<TIntent extends string = string> {
|
|
|
206
206
|
intent?: TIntent;
|
|
207
207
|
/** Natural language message from the user */
|
|
208
208
|
message?: string;
|
|
209
|
+
/** Image or file attachments accompanying the message */
|
|
210
|
+
attachments?: Array<ImagePart | FilePart>;
|
|
209
211
|
/** Structured payload from the channel */
|
|
210
212
|
data?: unknown;
|
|
211
213
|
/** Additional context for the agent */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolpack-sdk/agents",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Production AI agents for Toolpack SDK — 8 channel integrations (Slack, Discord, Telegram, SMS, Email, Webhook, Scheduled, MCP), AgentMind persistent cognitive layer (goals, beliefs, reflections), interceptors, evals, and multi-agent coordination",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@opentelemetry/api": "^1.x",
|
|
92
|
-
"@toolpack-sdk/knowledge": "^3.
|
|
92
|
+
"@toolpack-sdk/knowledge": "^3.2.0",
|
|
93
93
|
"better-sqlite3": "^12.6.2",
|
|
94
94
|
"discord.js": "^14.x",
|
|
95
95
|
"nodemailer": "^6.x",
|
|
96
|
-
"toolpack-sdk": "^3.
|
|
96
|
+
"toolpack-sdk": "^3.2.0",
|
|
97
97
|
"twilio": "^5.x"
|
|
98
98
|
},
|
|
99
99
|
"peerDependenciesMeta": {
|