@toolpack-sdk/agents 3.0.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/dist/index.d.cts CHANGED
@@ -1,16 +1,16 @@
1
- import { B as BaseAgentOptions, A as AgentInput, a as AgentResult, d as IAgentRegistry, f as AgentOutput, g as AgentInstance, C as ChannelInterface, P as PendingAsk } from './types-CJinv165.cjs';
2
- export { b as AgentDelegationConfig, e as AgentRunOptions, c as AgentSpawnConfig, h as AgentSpawnTemplate, I as Interceptor, i as InterceptorChainConfig, j as InterceptorContext, k as InterceptorResult, N as NextFunction, S as SKIP_SENTINEL, W as WorkflowStep, l as isSkipSentinel, s as skip } from './types-CJinv165.cjs';
3
- import { B as BaseAgent, A as AgentMindConfig } from './base-agent-iaQiO7jW.cjs';
4
- export { a as AgentEvents, C as ConfidenceLevel, G as GoalPriority, b as GoalStatus, M as MindBelief, c as MindEntry, d as MindEntryType, e as MindGoal, f as MindRecallResult, g as MindReflection, h as MindTtlDefaults } from './base-agent-iaQiO7jW.cjs';
5
- import { ModeConfig, ConversationStore, AssemblerOptions, AssembledPrompt, RequestToolDefinition, ToolProject } from 'toolpack-sdk';
1
+ import { B as BaseAgentOptions, A as AgentInput, a as AgentResult, d as IAgentRegistry, f as AgentOutput, g as AgentInstance, C as ChannelInterface, P as PendingAsk } from './types-D5dxhUX8.cjs';
2
+ export { b as AgentDelegationConfig, e as AgentRunOptions, c as AgentSpawnConfig, h as AgentSpawnTemplate, I as Interceptor, i as InterceptorChainConfig, j as InterceptorContext, k as InterceptorResult, N as NextFunction, S as SKIP_SENTINEL, W as WorkflowStep, l as isSkipSentinel, s as skip } from './types-D5dxhUX8.cjs';
3
+ import { B as BaseAgent, A as AgentMindConfig } from './base-agent-C_h8KyH0.cjs';
4
+ export { a as AgentEvents, C as ConfidenceLevel, G as GoalPriority, b as GoalStatus, M as MindBelief, c as MindEntry, d as MindEntryType, e as MindGoal, f as MindRecallResult, g as MindReflection, h as MindTtlDefaults } from './base-agent-C_h8KyH0.cjs';
5
+ import { ModeConfig, ConversationStore, AssemblerOptions, AssembledPrompt, ToolProject } from 'toolpack-sdk';
6
6
  export { AssembledPrompt, AssemblerOptions, ConversationScope, ConversationStore, GetOptions, InMemoryConversationStore, InMemoryConversationStoreConfig, Participant, PromptMessage, ConversationSearchOptions as SearchOptions, StoredMessage } from 'toolpack-sdk';
7
- import { S as SchedulerStore } from './index-a2wZU6Eu.cjs';
8
- export { B as BaseChannel, C as CreateJobOptions, a as CreateJobResult, D as DiscordChannel, b as DiscordChannelConfig, E as EmailChannel, c as EmailChannelConfig, J as JobStatus, M as McpChannel, d as McpChannelConfig, e as SMSChannel, f as SMSChannelConfig, g as ScheduledChannel, h as ScheduledChannelConfig, i as ScheduledJob, j as SlackChannel, k as SlackChannelConfig, T as TelegramChannel, l as TelegramChannelConfig, W as WebhookChannel, m as WebhookChannelConfig } from './index-a2wZU6Eu.cjs';
9
- export { I as IntentClassification, a as IntentClassifierAgent, b as IntentClassifierInput } from './intent-classifier-agent-CEmRGpUr.cjs';
7
+ import { S as SchedulerStore } from './index-Cuyk9sbf.cjs';
8
+ export { B as BaseChannel, C as ChatChannel, a as ChatChannelConfig, b as CreateJobOptions, c as CreateJobResult, D as DiscordChannel, d as DiscordChannelConfig, E as EmailChannel, e as EmailChannelConfig, J as JobStatus, M as McpChannel, f as McpChannelConfig, g as SMSChannel, h as SMSChannelConfig, i as ScheduledChannel, j as ScheduledChannelConfig, k as ScheduledJob, l as SlackChannel, m as SlackChannelConfig, T as TelegramChannel, n as TelegramChannelConfig, W as WebhookChannel, o as WebhookChannelConfig } from './index-Cuyk9sbf.cjs';
9
+ export { I as IntentClassification, a as IntentClassifierAgent, b as IntentClassifierInput } from './intent-classifier-agent-DRNbyZ5N.cjs';
10
10
  import { SummarizerAgent } from './capabilities/index.cjs';
11
11
  export { HistoryTurn, SummarizerInput, SummarizerOutput } from './capabilities/index.cjs';
12
12
  export { AddressCheckConfig, AddressCheckResult, CaptureHistoryConfig, ComposedChain, DepthExceededError, DepthGuardConfig, EventDedupConfig, IntentClassifierInterceptorConfig, InvocationDepthExceededError, NoiseFilterConfig, OTelSpan, OTelSpanOptions, OTelSpanStatus, OTelSpanStatusCode, OTelTracer, OTelTracerConfig, OTelTracerProvider, ParticipantResolverConfig, RateLimitConfig, SelfFilterConfig, TracerConfig, composeChain, createAddressCheckInterceptor, createCaptureInterceptor, createDepthGuardInterceptor, createEventDedupInterceptor, createIntentClassifierInterceptor, createNoiseFilterInterceptor, createOTelTracerInterceptor, createParticipantResolverInterceptor, createRateLimitInterceptor, createSelfFilterInterceptor, createTracerInterceptor, executeChain } from './interceptors/index.cjs';
13
- 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-DUlkrBuJ.cjs';
13
+ 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';
14
14
  import 'events';
15
15
  import '@toolpack-sdk/knowledge';
16
16
 
@@ -439,8 +439,8 @@ declare function createConversationSearchTool(store: ConversationStore, conversa
439
439
  interface RunContext {
440
440
  /** The assembled header string to prepend to the system prompt (empty string if no content). */
441
441
  mindHeader: string;
442
- /** The 7 mind tool definitions to add to requestTools. */
443
- tools: RequestToolDefinition[];
442
+ /** Mind tools packaged as a ToolProject pass to toolpack.loadRequestToolProject(). */
443
+ toolProject: ToolProject;
444
444
  /** Call this at run completion. Pass isError=true on crash. */
445
445
  flush: (isError: boolean) => Promise<void>;
446
446
  }
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { B as BaseAgentOptions, A as AgentInput, a as AgentResult, d as IAgentRegistry, f as AgentOutput, g as AgentInstance, C as ChannelInterface, P as PendingAsk } from './types-CJinv165.js';
2
- export { b as AgentDelegationConfig, e as AgentRunOptions, c as AgentSpawnConfig, h as AgentSpawnTemplate, I as Interceptor, i as InterceptorChainConfig, j as InterceptorContext, k as InterceptorResult, N as NextFunction, S as SKIP_SENTINEL, W as WorkflowStep, l as isSkipSentinel, s as skip } from './types-CJinv165.js';
3
- import { B as BaseAgent, A as AgentMindConfig } from './base-agent-CJE2QCjY.js';
4
- export { a as AgentEvents, C as ConfidenceLevel, G as GoalPriority, b as GoalStatus, M as MindBelief, c as MindEntry, d as MindEntryType, e as MindGoal, f as MindRecallResult, g as MindReflection, h as MindTtlDefaults } from './base-agent-CJE2QCjY.js';
5
- import { ModeConfig, ConversationStore, AssemblerOptions, AssembledPrompt, RequestToolDefinition, ToolProject } from 'toolpack-sdk';
1
+ import { B as BaseAgentOptions, A as AgentInput, a as AgentResult, d as IAgentRegistry, f as AgentOutput, g as AgentInstance, C as ChannelInterface, P as PendingAsk } from './types-D5dxhUX8.js';
2
+ export { b as AgentDelegationConfig, e as AgentRunOptions, c as AgentSpawnConfig, h as AgentSpawnTemplate, I as Interceptor, i as InterceptorChainConfig, j as InterceptorContext, k as InterceptorResult, N as NextFunction, S as SKIP_SENTINEL, W as WorkflowStep, l as isSkipSentinel, s as skip } from './types-D5dxhUX8.js';
3
+ import { B as BaseAgent, A as AgentMindConfig } from './base-agent-DIuUtRdS.js';
4
+ export { a as AgentEvents, C as ConfidenceLevel, G as GoalPriority, b as GoalStatus, M as MindBelief, c as MindEntry, d as MindEntryType, e as MindGoal, f as MindRecallResult, g as MindReflection, h as MindTtlDefaults } from './base-agent-DIuUtRdS.js';
5
+ import { ModeConfig, ConversationStore, AssemblerOptions, AssembledPrompt, ToolProject } from 'toolpack-sdk';
6
6
  export { AssembledPrompt, AssemblerOptions, ConversationScope, ConversationStore, GetOptions, InMemoryConversationStore, InMemoryConversationStoreConfig, Participant, PromptMessage, ConversationSearchOptions as SearchOptions, StoredMessage } from 'toolpack-sdk';
7
- import { S as SchedulerStore } from './index-DQuf4mxT.js';
8
- export { B as BaseChannel, C as CreateJobOptions, a as CreateJobResult, D as DiscordChannel, b as DiscordChannelConfig, E as EmailChannel, c as EmailChannelConfig, J as JobStatus, M as McpChannel, d as McpChannelConfig, e as SMSChannel, f as SMSChannelConfig, g as ScheduledChannel, h as ScheduledChannelConfig, i as ScheduledJob, j as SlackChannel, k as SlackChannelConfig, T as TelegramChannel, l as TelegramChannelConfig, W as WebhookChannel, m as WebhookChannelConfig } from './index-DQuf4mxT.js';
9
- export { I as IntentClassification, a as IntentClassifierAgent, b as IntentClassifierInput } from './intent-classifier-agent-QuB4WIWf.js';
7
+ import { S as SchedulerStore } from './index-Bd2nQrax.js';
8
+ export { B as BaseChannel, C as ChatChannel, a as ChatChannelConfig, b as CreateJobOptions, c as CreateJobResult, D as DiscordChannel, d as DiscordChannelConfig, E as EmailChannel, e as EmailChannelConfig, J as JobStatus, M as McpChannel, f as McpChannelConfig, g as SMSChannel, h as SMSChannelConfig, i as ScheduledChannel, j as ScheduledChannelConfig, k as ScheduledJob, l as SlackChannel, m as SlackChannelConfig, T as TelegramChannel, n as TelegramChannelConfig, W as WebhookChannel, o as WebhookChannelConfig } from './index-Bd2nQrax.js';
9
+ export { I as IntentClassification, a as IntentClassifierAgent, b as IntentClassifierInput } from './intent-classifier-agent-CZMHh1wf.js';
10
10
  import { SummarizerAgent } from './capabilities/index.js';
11
11
  export { HistoryTurn, SummarizerInput, SummarizerOutput } from './capabilities/index.js';
12
12
  export { AddressCheckConfig, AddressCheckResult, CaptureHistoryConfig, ComposedChain, DepthExceededError, DepthGuardConfig, EventDedupConfig, IntentClassifierInterceptorConfig, InvocationDepthExceededError, NoiseFilterConfig, OTelSpan, OTelSpanOptions, OTelSpanStatus, OTelSpanStatusCode, OTelTracer, OTelTracerConfig, OTelTracerProvider, ParticipantResolverConfig, RateLimitConfig, SelfFilterConfig, TracerConfig, composeChain, createAddressCheckInterceptor, createCaptureInterceptor, createDepthGuardInterceptor, createEventDedupInterceptor, createIntentClassifierInterceptor, createNoiseFilterInterceptor, createOTelTracerInterceptor, createParticipantResolverInterceptor, createRateLimitInterceptor, createSelfFilterInterceptor, createTracerInterceptor, executeChain } from './interceptors/index.js';
13
- 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-0O9AlW7u.js';
13
+ 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';
14
14
  import 'events';
15
15
  import '@toolpack-sdk/knowledge';
16
16
 
@@ -439,8 +439,8 @@ declare function createConversationSearchTool(store: ConversationStore, conversa
439
439
  interface RunContext {
440
440
  /** The assembled header string to prepend to the system prompt (empty string if no content). */
441
441
  mindHeader: string;
442
- /** The 7 mind tool definitions to add to requestTools. */
443
- tools: RequestToolDefinition[];
442
+ /** Mind tools packaged as a ToolProject pass to toolpack.loadRequestToolProject(). */
443
+ toolProject: ToolProject;
444
444
  /** Call this at run completion. Pass isError=true on crash. */
445
445
  flush: (isError: boolean) => Promise<void>;
446
446
  }