@directive-run/ai 1.3.0 → 1.5.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/anthropic.cjs +1 -1
- package/dist/anthropic.cjs.map +1 -1
- package/dist/anthropic.js +1 -1
- package/dist/anthropic.js.map +1 -1
- package/dist/{chunk-265ZKXYE.js → chunk-3PGRBK4E.js} +2 -2
- package/dist/chunk-3PGRBK4E.js.map +1 -0
- package/dist/{chunk-QXMXSHYS.cjs → chunk-KP3G32S7.cjs} +2 -2
- package/dist/chunk-KP3G32S7.cjs.map +1 -0
- package/dist/{chunk-5ERCL33C.js → chunk-Q3PQLWBR.js} +3 -3
- package/dist/chunk-Q3PQLWBR.js.map +1 -0
- package/dist/{chunk-K2LZMRLN.js → chunk-RW4R3O5P.js} +3 -3
- package/dist/{chunk-K2LZMRLN.js.map → chunk-RW4R3O5P.js.map} +1 -1
- package/dist/{chunk-KALRDVN5.cjs → chunk-X3VQ5F7D.cjs} +3 -3
- package/dist/{chunk-KALRDVN5.cjs.map → chunk-X3VQ5F7D.cjs.map} +1 -1
- package/dist/{chunk-L35IQAWD.cjs → chunk-XV2QSBBE.cjs} +7 -7
- package/dist/chunk-XV2QSBBE.cjs.map +1 -0
- package/dist/gemini.cjs +1 -1
- package/dist/gemini.cjs.map +1 -1
- package/dist/gemini.js +1 -1
- package/dist/gemini.js.map +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -6
- package/dist/index.d.ts +50 -6
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/dist/{multi-agent-orchestrator-675FR2HF.js → multi-agent-orchestrator-4PXNYRHB.js} +2 -2
- package/dist/{multi-agent-orchestrator-675FR2HF.js.map → multi-agent-orchestrator-4PXNYRHB.js.map} +1 -1
- package/dist/multi-agent-orchestrator-KFGTEGE5.cjs +2 -0
- package/dist/{multi-agent-orchestrator-SH5TRRS3.cjs.map → multi-agent-orchestrator-KFGTEGE5.cjs.map} +1 -1
- package/dist/ollama.cjs +2 -2
- package/dist/ollama.cjs.map +1 -1
- package/dist/ollama.js +1 -1
- package/dist/ollama.js.map +1 -1
- package/dist/openai.cjs +1 -1
- package/dist/openai.cjs.map +1 -1
- package/dist/openai.js +1 -1
- package/dist/openai.js.map +1 -1
- package/dist/{orchestrator-types-BmvoZgfO.d.cts → orchestrator-types-Bh8r3_Sq.d.cts} +1 -1
- package/dist/{orchestrator-types-D6gzobwg.d.ts → orchestrator-types-CTfIKk0W.d.ts} +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-265ZKXYE.js.map +0 -1
- package/dist/chunk-5ERCL33C.js.map +0 -1
- package/dist/chunk-L35IQAWD.cjs.map +0 -1
- package/dist/chunk-QXMXSHYS.cjs.map +0 -1
- package/dist/multi-agent-orchestrator-SH5TRRS3.cjs +0 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { G as GuardrailFn, I as InputGuardrailData, O as OutputGuardrailData, S as SchemaValidator, T as ToolCallGuardrailData, A as AgentLike, M as Message, a as AdapterHooks, b as AgentRunner, c as ApprovalState, d as AgentState, P as PatternCheckpointState, C as CheckpointDiff, e as CheckpointStore, f as CheckpointProgress, g as AgentSelectionStrategy, D as DagNode, h as DagExecutionContext, i as DagPattern, j as GoalNode, R as RelaxationTier, k as GoalMetrics, l as PatternCheckpointConfig, m as GoalPattern, n as RunResult, o as OrchestratorConstraint, p as RunOptions, q as DebugEvent, B as BreakpointState, r as GoalResult } from './types-CRmwFnVk.cjs';
|
|
2
2
|
export { s as AgentCircuitBreakerConfig, t as AgentCompleteEvent, u as AgentErrorEvent, v as AgentHealthState, w as AgentRetryConfig, x as AgentRetryEvent, y as AgentStartEvent, z as ApprovalRequest, E as ApprovalRequestEvent, F as ApprovalResponseEvent, H as BreakpointConfig, J as BreakpointContext, K as BreakpointHitEvent, L as BreakpointModifications, N as BreakpointRequest, Q as BreakpointResumedEvent, U as BreakpointState, V as BreakpointType, W as Checkpoint, X as CheckpointContext, Y as CheckpointLocalState, Z as CheckpointRestoreEvent, _ as CheckpointSaveEvent, $ as ConstraintEvaluateEvent, a0 as CrossAgentDerivationFn, a1 as CrossAgentSnapshot, a2 as DagCheckpointState, a3 as DagNodeStatus, a4 as DagNodeUpdateEvent, a5 as DebateCheckpointState, a6 as DebateRoundEvent, a7 as DebugEventBase, a8 as DebugEventType, a9 as DerivationUpdateEvent, aa as GoalCheckpointConfig, ab as GoalCheckpointState, ac as GoalStepMetrics, ad as GuardrailCheckEvent, ae as GuardrailContext, af as GuardrailError, ag as GuardrailErrorCode, ah as GuardrailResult, ai as GuardrailRetryConfig, aj as GuardrailsConfig, ak as HandoffCompleteEvent, al as HandoffStartEvent, am as HealthMonitorConfig, an as InMemoryCheckpointStore, ao as InMemoryCheckpointStoreOptions, ap as MAX_BREAKPOINT_HISTORY, aq as MultiAgentBreakpointType, ar as MultiAgentCheckpointLocalState, as as MultiAgentLifecycleHooks, at as MultiAgentSelfHealingConfig, au as NamedGuardrail, av as OrchestratorDebugConfig, aw as OrchestratorLifecycleHooks, ax as OrchestratorResolver, ay as OrchestratorResolverContext, az as OrchestratorState, aA as PatternCheckpointBase, aB as PatternCompleteEvent, aC as PatternStartEvent, aD as RaceCancelledEvent, aE as RaceStartEvent, aF as RaceWinnerEvent, aG as ReflectCheckpointState, aH as ReflectionIterationEvent, aI as RejectedRequest, aJ as RelaxationContext, aK as RelaxationRecord, aL as RelaxationStrategy, aM as RerouteDebugEvent, aN as RerouteEvent, aO as ResolverCompleteEvent, aP as ResolverErrorEvent, aQ as ResolverStartEvent, aR as SchemaValidationResult, aS as Scratchpad, aT as ScratchpadUpdateEvent, aU as SelfHealingConfig, aV as SequentialCheckpointState, aW as SingleAgentCheckpointLocalState, aX as StreamingCallbackRunner, aY as SupervisorCheckpointState, aZ as TaskCompleteEvent, a_ as TaskErrorEvent, a$ as TaskProgressEvent, b0 as TaskStartEvent, b1 as TokenUsage, b2 as ToolCall, b3 as createBreakpointId, b4 as createCheckpointId, b5 as createInitialBreakpointState, b6 as isGuardrailError, b7 as matchBreakpoint, b8 as validateCheckpoint } from './types-CRmwFnVk.cjs';
|
|
3
|
-
import { M as MultiAgentOrchestratorOptions, a as MultiAgentOrchestrator, P as ParallelPattern, R as RacePattern, b as ReflectionEvaluation, c as ReflectIterationRecord, d as ReflectPattern, S as SequentialPattern, e as SupervisorPattern, E as ExecutionPattern, D as DebatePattern, A as AgentRegistry, f as RunAgentRequirement, g as DebateResult, h as AgentHealthMetrics, i as DebugTimeline, H as HealthMonitor } from './orchestrator-types-
|
|
4
|
-
export { j as AgentMemory, k as AgentMemoryConfig, l as AgentOrchestrator, m as AgentRegistration, B as BackpressureStrategy, n as DebugTimelineListener, o as DebugTimelineOptions, p as DoneChunk, q as ErrorChunk, G as GuardrailTriggeredChunk, r as HandoffRequest, s as HandoffResult, t as HealthCircuitState, u as MemoryManageResult, v as MemoryState, w as MemoryStrategy, x as MemoryStrategyConfig, y as MemoryStrategyResult, z as MergedTaggedStreamResult, C as MessageChunk, F as MessageSummarizer, I as MultiAgentRunCallOptions, J as MultiAgentState, K as MultiplexedStreamChunk, L as MultiplexedStreamResult, O as OrchestratorOptions, N as OrchestratorStreamChunk, Q as OrchestratorStreamResult, T as ProgressChunk, U as RaceResult, V as RaceSuccessEntry, W as ReflectionConfig, X as ReflectionContext, Y as ReflectionEvaluator, Z as ReflectionExhaustedError, _ as RunCallOptions, $ as SafeParseResult, a0 as SafeParseable, a1 as StreamChunk, a2 as StreamRunOptions, a3 as StreamRunner, a4 as StreamingGuardrail, a5 as StreamingGuardrailResult, a6 as StreamingRunResult, a7 as StructuredOutputConfig, a8 as StructuredOutputError, a9 as TaskContext, aa as TaskRegistration, ab as TokenChunk, ac as ToolEndChunk, ad as ToolStartChunk, ae as adaptOutputGuardrail, af as collectTokens, ag as combineStreamingGuardrails, ah as createAgentMemory, ai as createAgentOrchestrator, aj as createDebugTimeline, ak as createDebugTimelinePlugin, al as createHealthMonitor, am as createHybridStrategy, an as createKeyPointsSummarizer, ao as createLLMSummarizer, ap as createLengthStreamingGuardrail, aq as createPatternStreamingGuardrail, ar as createSlidingWindowStrategy, as as createStreamingRunner, at as createTokenBasedStrategy, au as createToxicityStreamingGuardrail, av as createTruncationSummarizer, aw as extractJsonFromOutput, ax as filterStream, ay as mapStream, az as mergeTaggedStreams, aA as tapStream, aB as withReflection, aC as withStructuredOutput } from './orchestrator-types-
|
|
3
|
+
import { M as MultiAgentOrchestratorOptions, a as MultiAgentOrchestrator, P as ParallelPattern, R as RacePattern, b as ReflectionEvaluation, c as ReflectIterationRecord, d as ReflectPattern, S as SequentialPattern, e as SupervisorPattern, E as ExecutionPattern, D as DebatePattern, A as AgentRegistry, f as RunAgentRequirement, g as DebateResult, h as AgentHealthMetrics, i as DebugTimeline, H as HealthMonitor } from './orchestrator-types-Bh8r3_Sq.cjs';
|
|
4
|
+
export { j as AgentMemory, k as AgentMemoryConfig, l as AgentOrchestrator, m as AgentRegistration, B as BackpressureStrategy, n as DebugTimelineListener, o as DebugTimelineOptions, p as DoneChunk, q as ErrorChunk, G as GuardrailTriggeredChunk, r as HandoffRequest, s as HandoffResult, t as HealthCircuitState, u as MemoryManageResult, v as MemoryState, w as MemoryStrategy, x as MemoryStrategyConfig, y as MemoryStrategyResult, z as MergedTaggedStreamResult, C as MessageChunk, F as MessageSummarizer, I as MultiAgentRunCallOptions, J as MultiAgentState, K as MultiplexedStreamChunk, L as MultiplexedStreamResult, O as OrchestratorOptions, N as OrchestratorStreamChunk, Q as OrchestratorStreamResult, T as ProgressChunk, U as RaceResult, V as RaceSuccessEntry, W as ReflectionConfig, X as ReflectionContext, Y as ReflectionEvaluator, Z as ReflectionExhaustedError, _ as RunCallOptions, $ as SafeParseResult, a0 as SafeParseable, a1 as StreamChunk, a2 as StreamRunOptions, a3 as StreamRunner, a4 as StreamingGuardrail, a5 as StreamingGuardrailResult, a6 as StreamingRunResult, a7 as StructuredOutputConfig, a8 as StructuredOutputError, a9 as TaskContext, aa as TaskRegistration, ab as TokenChunk, ac as ToolEndChunk, ad as ToolStartChunk, ae as adaptOutputGuardrail, af as collectTokens, ag as combineStreamingGuardrails, ah as createAgentMemory, ai as createAgentOrchestrator, aj as createDebugTimeline, ak as createDebugTimelinePlugin, al as createHealthMonitor, am as createHybridStrategy, an as createKeyPointsSummarizer, ao as createLLMSummarizer, ap as createLengthStreamingGuardrail, aq as createPatternStreamingGuardrail, ar as createSlidingWindowStrategy, as as createStreamingRunner, at as createTokenBasedStrategy, au as createToxicityStreamingGuardrail, av as createTruncationSummarizer, aw as extractJsonFromOutput, ax as filterStream, ay as mapStream, az as mergeTaggedStreams, aA as tapStream, aB as withReflection, aC as withStructuredOutput } from './orchestrator-types-Bh8r3_Sq.cjs';
|
|
5
5
|
export { AggregatedMetric, AlertConfig, AlertEvent, CircuitBreaker, CircuitBreakerConfig, CircuitBreakerOpenError, CircuitBreakerStats, CircuitState, DashboardData, MetricDataPoint, MetricType, OTLPExporter, OTLPExporterConfig, ObservabilityConfig, ObservabilityInstance, TraceSpan, createCircuitBreaker, createOTLPExporter } from '@directive-run/core/plugins';
|
|
6
6
|
import { ModuleSchema, Plugin, SystemInspection } from '@directive-run/core';
|
|
7
7
|
import { E as Embedding, a as EmbedderFn } from './semantic-cache-nBpQqILc.cjs';
|
|
@@ -1158,7 +1158,7 @@ declare function spawnPool(when: (facts: Record<string, unknown>) => boolean, co
|
|
|
1158
1158
|
* reviewer: { agent: reviewerAgent },
|
|
1159
1159
|
* },
|
|
1160
1160
|
* guardrails: {
|
|
1161
|
-
* input: [
|
|
1161
|
+
* input: [createEnhancedPIIGuardrail()],
|
|
1162
1162
|
* output: [checkToxicity],
|
|
1163
1163
|
* },
|
|
1164
1164
|
* hooks: {
|
|
@@ -1631,9 +1631,21 @@ type RedactionStyle =
|
|
|
1631
1631
|
"placeholder"
|
|
1632
1632
|
/** Replace with type-specific placeholder like [EMAIL] */
|
|
1633
1633
|
| "typed"
|
|
1634
|
-
/**
|
|
1634
|
+
/**
|
|
1635
|
+
* Replace with a fixed-width `****` mask plus the last 4 characters
|
|
1636
|
+
* (e.g. `****6789`). Does not preserve or reveal the original length.
|
|
1637
|
+
*/
|
|
1635
1638
|
| "masked"
|
|
1636
|
-
/**
|
|
1639
|
+
/**
|
|
1640
|
+
* Replace with a deterministic FNV-1a hash.
|
|
1641
|
+
*
|
|
1642
|
+
* **WARNING — this is PSEUDONYMIZATION, not anonymization.** FNV-1a is a
|
|
1643
|
+
* fast, non-cryptographic 32-bit hash. For low-entropy structured PII (SSNs,
|
|
1644
|
+
* card numbers, phone numbers) the output is trivially RE-IDENTIFIABLE via
|
|
1645
|
+
* brute force or a precomputed rainbow table. It MUST NOT be relied on for
|
|
1646
|
+
* GDPR / HIPAA de-identification. Use it only for referential integrity
|
|
1647
|
+
* (correlating the same value across audit logs).
|
|
1648
|
+
*/
|
|
1637
1649
|
| "hashed";
|
|
1638
1650
|
/** Redact detected PII from text */
|
|
1639
1651
|
declare function redactPII(text: string, items: DetectedPII[], style?: RedactionStyle): string;
|
|
@@ -1715,6 +1727,38 @@ declare function detectPII(text: string, options?: {
|
|
|
1715
1727
|
/** Timeout for custom detectors in milliseconds (default: 5000) */
|
|
1716
1728
|
timeout?: number;
|
|
1717
1729
|
}): Promise<PIIDetectionResult>;
|
|
1730
|
+
/**
|
|
1731
|
+
* Detect PII in text and return a result whose `redactedText` is populated.
|
|
1732
|
+
*
|
|
1733
|
+
* This composes {@link detectPII} and {@link redactPII} so callers do not have
|
|
1734
|
+
* to manually wire the two together (and do not have to mutate the detection
|
|
1735
|
+
* result). When no PII is detected, `redactedText` is left `undefined` — it is
|
|
1736
|
+
* deliberately NOT defaulted to the raw input.
|
|
1737
|
+
*
|
|
1738
|
+
* @example
|
|
1739
|
+
* ```typescript
|
|
1740
|
+
* const result = await detectAndRedactPII('My SSN is 123-45-6789', {
|
|
1741
|
+
* types: ['ssn'],
|
|
1742
|
+
* style: 'typed',
|
|
1743
|
+
* });
|
|
1744
|
+
* console.log(result.detected); // true
|
|
1745
|
+
* // ssn is a sensitive-category type, so `typed` emits a generic [REDACTED]
|
|
1746
|
+
* console.log(result.redactedText); // 'My SSN is [REDACTED]'
|
|
1747
|
+
*
|
|
1748
|
+
* const clean = await detectAndRedactPII('nothing here', { types: ['ssn'] });
|
|
1749
|
+
* console.log(clean.detected); // false
|
|
1750
|
+
* console.log(clean.redactedText); // undefined
|
|
1751
|
+
* ```
|
|
1752
|
+
*/
|
|
1753
|
+
declare function detectAndRedactPII(text: string, options?: {
|
|
1754
|
+
types?: PIIType[];
|
|
1755
|
+
detector?: "regex" | PIIDetector;
|
|
1756
|
+
minConfidence?: number;
|
|
1757
|
+
/** Timeout for custom detectors in milliseconds (default: 5000) */
|
|
1758
|
+
timeout?: number;
|
|
1759
|
+
/** Redaction style applied when PII is detected (default: 'typed') */
|
|
1760
|
+
style?: RedactionStyle;
|
|
1761
|
+
}): Promise<PIIDetectionResult>;
|
|
1718
1762
|
|
|
1719
1763
|
/**
|
|
1720
1764
|
* Audit Plugin - Immutable Audit Trail with Hash Chain
|
|
@@ -4933,4 +4977,4 @@ interface OtelPlugin {
|
|
|
4933
4977
|
*/
|
|
4934
4978
|
declare function createOtelPlugin(config: OtelPluginConfig): OtelPlugin;
|
|
4935
4979
|
|
|
4936
|
-
export { type ANNIndex, type ANNSearchResult, AdapterHooks, AgentHealthMetrics, type AgentInfo, AgentLike, type AgentMessage, type AgentMessageType, type AgentNetwork, type AgentNetworkConfig, AgentRegistry, AgentRunner, AgentSelectionStrategy, AgentState, AllProvidersFailedError, ApprovalState, type AuditEventType, type AuditInstance, type AuditPluginConfig, type BatchQueue, type BatchQueueConfig, type BidirectionalStream, type BudgetConfig, type BudgetExceededDetails, BudgetExceededError, type BudgetRunner, type BudgetWindow, CheckpointDiff, CheckpointProgress, CheckpointStore, type ComplianceConfig, type ComplianceInstance, type ComplianceStorage, type ConnectDevToolsOptions, type ConstraintRouterConfig, type ConstraintRouterRunner, type CreateRunnerOptions, DEFAULT_INJECTION_PATTERNS, DagExecutionContext, DagNode, DagPattern, type DebateConfig, DebatePattern, DebateResult, DebugEvent, DebugTimeline, type DelegationMessage, type DelegationResultMessage, type DevToolsClient, type DevToolsClientMessage, type DevToolsCompatibleOrchestrator, type DevToolsServer, type DevToolsServerConfig, type DevToolsServerMessage, type DevToolsSnapshot, type DevToolsTransport, EmbedderFn, Embedding, type EnhancedPIIGuardrailOptions, type EvalAgentSummary, type EvalAssertOptions, type EvalCase, type EvalCaseResult, type EvalContext, type EvalCostOptions, type EvalCriterion, type EvalCriterionFn, type EvalJudgeOptions, type EvalLatencyOptions, type EvalMatchOptions, type EvalOutputLengthOptions, type EvalResults, type EvalSafetyOptions, type EvalScore, type EvalSemanticOptions, type EvalStructureOptions, type EvalSuite, type EvalSuiteConfig, ExecutionPattern, type FallbackConfig, type GoalAgentDeclaration, type GoalDependencyEdge, type GoalDependencyGraph, type GoalExecutionPlan, type GoalExplanation, type GoalExplanationStep, GoalMetrics, GoalNode, GoalPattern, type GoalPlanStep, GoalResult, type GoalValidationResult, GuardrailFn, HealthMonitor, type InformMessage, InputGuardrailData, type JSONFileStoreOptions, type MCPAdapter, type MCPAdapterConfig, type MCPApprovalRequest, type MCPCallToolRequirement, type MCPGetPromptRequirement, type MCPReadResourceRequirement, type MCPRequirement, type MCPResource, type MCPServerConfig, type MCPSyncResourcesRequirement, type MCPTool, type MCPToolConstraint, type MCPToolResult, type MermaidDirection, type MermaidNodeShapes, type MermaidOptions, Message, type MessageBus, type MessageBusConfig, type MessageFilter, type MessageHandler, type ModelRule, type ModelSelectionConfig, MultiAgentOrchestrator, MultiAgentOrchestratorOptions, OrchestratorConstraint, type OtelPlugin, type OtelPluginConfig, type OtelSpan, OtelStatusCode, type OtelTracer, OutputGuardrailData, ParallelPattern, type ParsedResponse, PatternCheckpointConfig, PatternCheckpointState, type PromptInjectionGuardrailOptions, type ProviderStats, type QueryMessage, type RAGChunk, type RAGEnrichOptions, type RAGEnricher, type RAGEnricherConfig, type RAGStorage, RacePattern, type RateLimitGuardrail, ReflectIterationRecord, ReflectPattern, ReflectionEvaluation, RelaxationTier, type RequestMessage, type ResponseMessage, type RetryConfig, RetryExhaustedError, type RoutingConstraint, type RoutingFacts, type RoutingProvider, RunAgentRequirement, RunOptions, RunResult, type RunnerMiddleware, type SSEEvent, type SSETransport, type SSETransportConfig, STRICT_INJECTION_PATTERNS, SchemaValidator, Semaphore, SequentialPattern, type SerializedDagNode, type SerializedGoalNode, type SerializedPattern, type SpanData, type SpawnOnConditionOptions, type SpawnPoolConfig, type StreamChannel, type StreamChannelConfig, type StreamChannelState, type Subscription, SupervisorPattern, type TokenPricing, ToolCallGuardrailData, type TypedAgentMessage, type UpdateMessage, type VPTreeIndexConfig, type WsTransportConfig, aggregateTokens, allReadyStrategy, byAgentName, byInputLength, byPattern, capabilityRoute, collectOutputs, composePatterns, concatResults, connectDevTools, convertToolsForLLM, costEfficientStrategy, createAgentAuditHandlers, createAgentNetwork, createAuditTrail, createBatchQueue, createBidirectionalStream, createBruteForceIndex, createCompliance, createConstraintRouter, createContentFilterGuardrail, createDelegator, createDevToolsServer, createEnhancedPIIGuardrail, createEvalSuite, createInMemoryComplianceStorage, createJSONFileStore, createLengthGuardrail, createMCPAdapter, createMessageBus, createModerationGuardrail, createMultiAgentOrchestrator, createOtelPlugin, createOutputPIIGuardrail, createOutputSchemaGuardrail, createOutputTypeGuardrail, createPIIGuardrail, createPromptInjectionGuardrail, createPubSub, createRAGEnricher, createRateLimitGuardrail, createResponder, createRunner, createSSETransport, createStreamChannel, createToolGuardrail, createUntrustedContentGuardrail, createVPTreeIndex, createWsTransport, dag, debate, derivedConstraint, detectPII, detectPromptInjection, diffCheckpoints, estimateCost, evalAssert, evalCoherence, evalCost, evalFaithfulness, evalJudge, evalLatency, evalMatch, evalOutputLength, evalRelevance, evalSafety, evalStructure, explainGoal, findAgentsByCapability, forkFromCheckpoint, formatSystemMeta, getCheckpointProgress, getDependencyGraph, getPatternStep, goal, hasPendingApprovals, highestImpactStrategy, isAgentRunning, markUntrustedContent, mcpCallTool, mcpGetPrompt, mcpReadResource, mcpSyncResources, mergeStreams, parallel, parseHttpStatus, parseRetryAfter, patternFromJSON, patternToJSON, patternToMermaid, pickBestResult, pipe, pipeThrough, planGoal, race, redactPII, reflect, runAgentRequirement, runDebate, sanitizeInjection, selectAgent, sequential, spawnOnCondition, spawnPool, supervisor, toAIContext, validateBaseURL, validateGoal, withBudget, withFallback, withModelSelection, withRetry };
|
|
4980
|
+
export { type ANNIndex, type ANNSearchResult, AdapterHooks, AgentHealthMetrics, type AgentInfo, AgentLike, type AgentMessage, type AgentMessageType, type AgentNetwork, type AgentNetworkConfig, AgentRegistry, AgentRunner, AgentSelectionStrategy, AgentState, AllProvidersFailedError, ApprovalState, type AuditEventType, type AuditInstance, type AuditPluginConfig, type BatchQueue, type BatchQueueConfig, type BidirectionalStream, type BudgetConfig, type BudgetExceededDetails, BudgetExceededError, type BudgetRunner, type BudgetWindow, CheckpointDiff, CheckpointProgress, CheckpointStore, type ComplianceConfig, type ComplianceInstance, type ComplianceStorage, type ConnectDevToolsOptions, type ConstraintRouterConfig, type ConstraintRouterRunner, type CreateRunnerOptions, DEFAULT_INJECTION_PATTERNS, DagExecutionContext, DagNode, DagPattern, type DebateConfig, DebatePattern, DebateResult, DebugEvent, DebugTimeline, type DelegationMessage, type DelegationResultMessage, type DetectedPII, type DevToolsClient, type DevToolsClientMessage, type DevToolsCompatibleOrchestrator, type DevToolsServer, type DevToolsServerConfig, type DevToolsServerMessage, type DevToolsSnapshot, type DevToolsTransport, EmbedderFn, Embedding, type EnhancedPIIGuardrailOptions, type EvalAgentSummary, type EvalAssertOptions, type EvalCase, type EvalCaseResult, type EvalContext, type EvalCostOptions, type EvalCriterion, type EvalCriterionFn, type EvalJudgeOptions, type EvalLatencyOptions, type EvalMatchOptions, type EvalOutputLengthOptions, type EvalResults, type EvalSafetyOptions, type EvalScore, type EvalSemanticOptions, type EvalStructureOptions, type EvalSuite, type EvalSuiteConfig, ExecutionPattern, type FallbackConfig, type GoalAgentDeclaration, type GoalDependencyEdge, type GoalDependencyGraph, type GoalExecutionPlan, type GoalExplanation, type GoalExplanationStep, GoalMetrics, GoalNode, GoalPattern, type GoalPlanStep, GoalResult, type GoalValidationResult, GuardrailFn, HealthMonitor, type InformMessage, type InjectionDetectionResult, InputGuardrailData, type JSONFileStoreOptions, type MCPAdapter, type MCPAdapterConfig, type MCPApprovalRequest, type MCPCallToolRequirement, type MCPGetPromptRequirement, type MCPReadResourceRequirement, type MCPRequirement, type MCPResource, type MCPServerConfig, type MCPSyncResourcesRequirement, type MCPTool, type MCPToolConstraint, type MCPToolResult, type MermaidDirection, type MermaidNodeShapes, type MermaidOptions, Message, type MessageBus, type MessageBusConfig, type MessageFilter, type MessageHandler, type ModelRule, type ModelSelectionConfig, MultiAgentOrchestrator, MultiAgentOrchestratorOptions, OrchestratorConstraint, type OtelPlugin, type OtelPluginConfig, type OtelSpan, OtelStatusCode, type OtelTracer, OutputGuardrailData, type PIIDetectionResult, type PIIDetector, type PIIType, ParallelPattern, type ParsedResponse, PatternCheckpointConfig, PatternCheckpointState, type PromptInjectionGuardrailOptions, type ProviderStats, type QueryMessage, type RAGChunk, type RAGEnrichOptions, type RAGEnricher, type RAGEnricherConfig, type RAGStorage, RacePattern, type RateLimitGuardrail, type RedactionStyle, ReflectIterationRecord, ReflectPattern, ReflectionEvaluation, RelaxationTier, type RequestMessage, type ResponseMessage, type RetryConfig, RetryExhaustedError, type RoutingConstraint, type RoutingFacts, type RoutingProvider, RunAgentRequirement, RunOptions, RunResult, type RunnerMiddleware, type SSEEvent, type SSETransport, type SSETransportConfig, STRICT_INJECTION_PATTERNS, SchemaValidator, Semaphore, SequentialPattern, type SerializedDagNode, type SerializedGoalNode, type SerializedPattern, type SpanData, type SpawnOnConditionOptions, type SpawnPoolConfig, type StreamChannel, type StreamChannelConfig, type StreamChannelState, type Subscription, SupervisorPattern, type TokenPricing, ToolCallGuardrailData, type TypedAgentMessage, type UpdateMessage, type VPTreeIndexConfig, type WsTransportConfig, aggregateTokens, allReadyStrategy, byAgentName, byInputLength, byPattern, capabilityRoute, collectOutputs, composePatterns, concatResults, connectDevTools, convertToolsForLLM, costEfficientStrategy, createAgentAuditHandlers, createAgentNetwork, createAuditTrail, createBatchQueue, createBidirectionalStream, createBruteForceIndex, createCompliance, createConstraintRouter, createContentFilterGuardrail, createDelegator, createDevToolsServer, createEnhancedPIIGuardrail, createEvalSuite, createInMemoryComplianceStorage, createJSONFileStore, createLengthGuardrail, createMCPAdapter, createMessageBus, createModerationGuardrail, createMultiAgentOrchestrator, createOtelPlugin, createOutputPIIGuardrail, createOutputSchemaGuardrail, createOutputTypeGuardrail, createPIIGuardrail, createPromptInjectionGuardrail, createPubSub, createRAGEnricher, createRateLimitGuardrail, createResponder, createRunner, createSSETransport, createStreamChannel, createToolGuardrail, createUntrustedContentGuardrail, createVPTreeIndex, createWsTransport, dag, debate, derivedConstraint, detectAndRedactPII, detectPII, detectPromptInjection, diffCheckpoints, estimateCost, evalAssert, evalCoherence, evalCost, evalFaithfulness, evalJudge, evalLatency, evalMatch, evalOutputLength, evalRelevance, evalSafety, evalStructure, explainGoal, findAgentsByCapability, forkFromCheckpoint, formatSystemMeta, getCheckpointProgress, getDependencyGraph, getPatternStep, goal, hasPendingApprovals, highestImpactStrategy, isAgentRunning, markUntrustedContent, mcpCallTool, mcpGetPrompt, mcpReadResource, mcpSyncResources, mergeStreams, parallel, parseHttpStatus, parseRetryAfter, patternFromJSON, patternToJSON, patternToMermaid, pickBestResult, pipe, pipeThrough, planGoal, race, redactPII, reflect, runAgentRequirement, runDebate, sanitizeInjection, selectAgent, sequential, spawnOnCondition, spawnPool, supervisor, toAIContext, validateBaseURL, validateGoal, withBudget, withFallback, withModelSelection, withRetry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { G as GuardrailFn, I as InputGuardrailData, O as OutputGuardrailData, S as SchemaValidator, T as ToolCallGuardrailData, A as AgentLike, M as Message, a as AdapterHooks, b as AgentRunner, c as ApprovalState, d as AgentState, P as PatternCheckpointState, C as CheckpointDiff, e as CheckpointStore, f as CheckpointProgress, g as AgentSelectionStrategy, D as DagNode, h as DagExecutionContext, i as DagPattern, j as GoalNode, R as RelaxationTier, k as GoalMetrics, l as PatternCheckpointConfig, m as GoalPattern, n as RunResult, o as OrchestratorConstraint, p as RunOptions, q as DebugEvent, B as BreakpointState, r as GoalResult } from './types-CRmwFnVk.js';
|
|
2
2
|
export { s as AgentCircuitBreakerConfig, t as AgentCompleteEvent, u as AgentErrorEvent, v as AgentHealthState, w as AgentRetryConfig, x as AgentRetryEvent, y as AgentStartEvent, z as ApprovalRequest, E as ApprovalRequestEvent, F as ApprovalResponseEvent, H as BreakpointConfig, J as BreakpointContext, K as BreakpointHitEvent, L as BreakpointModifications, N as BreakpointRequest, Q as BreakpointResumedEvent, U as BreakpointState, V as BreakpointType, W as Checkpoint, X as CheckpointContext, Y as CheckpointLocalState, Z as CheckpointRestoreEvent, _ as CheckpointSaveEvent, $ as ConstraintEvaluateEvent, a0 as CrossAgentDerivationFn, a1 as CrossAgentSnapshot, a2 as DagCheckpointState, a3 as DagNodeStatus, a4 as DagNodeUpdateEvent, a5 as DebateCheckpointState, a6 as DebateRoundEvent, a7 as DebugEventBase, a8 as DebugEventType, a9 as DerivationUpdateEvent, aa as GoalCheckpointConfig, ab as GoalCheckpointState, ac as GoalStepMetrics, ad as GuardrailCheckEvent, ae as GuardrailContext, af as GuardrailError, ag as GuardrailErrorCode, ah as GuardrailResult, ai as GuardrailRetryConfig, aj as GuardrailsConfig, ak as HandoffCompleteEvent, al as HandoffStartEvent, am as HealthMonitorConfig, an as InMemoryCheckpointStore, ao as InMemoryCheckpointStoreOptions, ap as MAX_BREAKPOINT_HISTORY, aq as MultiAgentBreakpointType, ar as MultiAgentCheckpointLocalState, as as MultiAgentLifecycleHooks, at as MultiAgentSelfHealingConfig, au as NamedGuardrail, av as OrchestratorDebugConfig, aw as OrchestratorLifecycleHooks, ax as OrchestratorResolver, ay as OrchestratorResolverContext, az as OrchestratorState, aA as PatternCheckpointBase, aB as PatternCompleteEvent, aC as PatternStartEvent, aD as RaceCancelledEvent, aE as RaceStartEvent, aF as RaceWinnerEvent, aG as ReflectCheckpointState, aH as ReflectionIterationEvent, aI as RejectedRequest, aJ as RelaxationContext, aK as RelaxationRecord, aL as RelaxationStrategy, aM as RerouteDebugEvent, aN as RerouteEvent, aO as ResolverCompleteEvent, aP as ResolverErrorEvent, aQ as ResolverStartEvent, aR as SchemaValidationResult, aS as Scratchpad, aT as ScratchpadUpdateEvent, aU as SelfHealingConfig, aV as SequentialCheckpointState, aW as SingleAgentCheckpointLocalState, aX as StreamingCallbackRunner, aY as SupervisorCheckpointState, aZ as TaskCompleteEvent, a_ as TaskErrorEvent, a$ as TaskProgressEvent, b0 as TaskStartEvent, b1 as TokenUsage, b2 as ToolCall, b3 as createBreakpointId, b4 as createCheckpointId, b5 as createInitialBreakpointState, b6 as isGuardrailError, b7 as matchBreakpoint, b8 as validateCheckpoint } from './types-CRmwFnVk.js';
|
|
3
|
-
import { M as MultiAgentOrchestratorOptions, a as MultiAgentOrchestrator, P as ParallelPattern, R as RacePattern, b as ReflectionEvaluation, c as ReflectIterationRecord, d as ReflectPattern, S as SequentialPattern, e as SupervisorPattern, E as ExecutionPattern, D as DebatePattern, A as AgentRegistry, f as RunAgentRequirement, g as DebateResult, h as AgentHealthMetrics, i as DebugTimeline, H as HealthMonitor } from './orchestrator-types-
|
|
4
|
-
export { j as AgentMemory, k as AgentMemoryConfig, l as AgentOrchestrator, m as AgentRegistration, B as BackpressureStrategy, n as DebugTimelineListener, o as DebugTimelineOptions, p as DoneChunk, q as ErrorChunk, G as GuardrailTriggeredChunk, r as HandoffRequest, s as HandoffResult, t as HealthCircuitState, u as MemoryManageResult, v as MemoryState, w as MemoryStrategy, x as MemoryStrategyConfig, y as MemoryStrategyResult, z as MergedTaggedStreamResult, C as MessageChunk, F as MessageSummarizer, I as MultiAgentRunCallOptions, J as MultiAgentState, K as MultiplexedStreamChunk, L as MultiplexedStreamResult, O as OrchestratorOptions, N as OrchestratorStreamChunk, Q as OrchestratorStreamResult, T as ProgressChunk, U as RaceResult, V as RaceSuccessEntry, W as ReflectionConfig, X as ReflectionContext, Y as ReflectionEvaluator, Z as ReflectionExhaustedError, _ as RunCallOptions, $ as SafeParseResult, a0 as SafeParseable, a1 as StreamChunk, a2 as StreamRunOptions, a3 as StreamRunner, a4 as StreamingGuardrail, a5 as StreamingGuardrailResult, a6 as StreamingRunResult, a7 as StructuredOutputConfig, a8 as StructuredOutputError, a9 as TaskContext, aa as TaskRegistration, ab as TokenChunk, ac as ToolEndChunk, ad as ToolStartChunk, ae as adaptOutputGuardrail, af as collectTokens, ag as combineStreamingGuardrails, ah as createAgentMemory, ai as createAgentOrchestrator, aj as createDebugTimeline, ak as createDebugTimelinePlugin, al as createHealthMonitor, am as createHybridStrategy, an as createKeyPointsSummarizer, ao as createLLMSummarizer, ap as createLengthStreamingGuardrail, aq as createPatternStreamingGuardrail, ar as createSlidingWindowStrategy, as as createStreamingRunner, at as createTokenBasedStrategy, au as createToxicityStreamingGuardrail, av as createTruncationSummarizer, aw as extractJsonFromOutput, ax as filterStream, ay as mapStream, az as mergeTaggedStreams, aA as tapStream, aB as withReflection, aC as withStructuredOutput } from './orchestrator-types-
|
|
3
|
+
import { M as MultiAgentOrchestratorOptions, a as MultiAgentOrchestrator, P as ParallelPattern, R as RacePattern, b as ReflectionEvaluation, c as ReflectIterationRecord, d as ReflectPattern, S as SequentialPattern, e as SupervisorPattern, E as ExecutionPattern, D as DebatePattern, A as AgentRegistry, f as RunAgentRequirement, g as DebateResult, h as AgentHealthMetrics, i as DebugTimeline, H as HealthMonitor } from './orchestrator-types-CTfIKk0W.js';
|
|
4
|
+
export { j as AgentMemory, k as AgentMemoryConfig, l as AgentOrchestrator, m as AgentRegistration, B as BackpressureStrategy, n as DebugTimelineListener, o as DebugTimelineOptions, p as DoneChunk, q as ErrorChunk, G as GuardrailTriggeredChunk, r as HandoffRequest, s as HandoffResult, t as HealthCircuitState, u as MemoryManageResult, v as MemoryState, w as MemoryStrategy, x as MemoryStrategyConfig, y as MemoryStrategyResult, z as MergedTaggedStreamResult, C as MessageChunk, F as MessageSummarizer, I as MultiAgentRunCallOptions, J as MultiAgentState, K as MultiplexedStreamChunk, L as MultiplexedStreamResult, O as OrchestratorOptions, N as OrchestratorStreamChunk, Q as OrchestratorStreamResult, T as ProgressChunk, U as RaceResult, V as RaceSuccessEntry, W as ReflectionConfig, X as ReflectionContext, Y as ReflectionEvaluator, Z as ReflectionExhaustedError, _ as RunCallOptions, $ as SafeParseResult, a0 as SafeParseable, a1 as StreamChunk, a2 as StreamRunOptions, a3 as StreamRunner, a4 as StreamingGuardrail, a5 as StreamingGuardrailResult, a6 as StreamingRunResult, a7 as StructuredOutputConfig, a8 as StructuredOutputError, a9 as TaskContext, aa as TaskRegistration, ab as TokenChunk, ac as ToolEndChunk, ad as ToolStartChunk, ae as adaptOutputGuardrail, af as collectTokens, ag as combineStreamingGuardrails, ah as createAgentMemory, ai as createAgentOrchestrator, aj as createDebugTimeline, ak as createDebugTimelinePlugin, al as createHealthMonitor, am as createHybridStrategy, an as createKeyPointsSummarizer, ao as createLLMSummarizer, ap as createLengthStreamingGuardrail, aq as createPatternStreamingGuardrail, ar as createSlidingWindowStrategy, as as createStreamingRunner, at as createTokenBasedStrategy, au as createToxicityStreamingGuardrail, av as createTruncationSummarizer, aw as extractJsonFromOutput, ax as filterStream, ay as mapStream, az as mergeTaggedStreams, aA as tapStream, aB as withReflection, aC as withStructuredOutput } from './orchestrator-types-CTfIKk0W.js';
|
|
5
5
|
export { AggregatedMetric, AlertConfig, AlertEvent, CircuitBreaker, CircuitBreakerConfig, CircuitBreakerOpenError, CircuitBreakerStats, CircuitState, DashboardData, MetricDataPoint, MetricType, OTLPExporter, OTLPExporterConfig, ObservabilityConfig, ObservabilityInstance, TraceSpan, createCircuitBreaker, createOTLPExporter } from '@directive-run/core/plugins';
|
|
6
6
|
import { ModuleSchema, Plugin, SystemInspection } from '@directive-run/core';
|
|
7
7
|
import { E as Embedding, a as EmbedderFn } from './semantic-cache-nBpQqILc.js';
|
|
@@ -1158,7 +1158,7 @@ declare function spawnPool(when: (facts: Record<string, unknown>) => boolean, co
|
|
|
1158
1158
|
* reviewer: { agent: reviewerAgent },
|
|
1159
1159
|
* },
|
|
1160
1160
|
* guardrails: {
|
|
1161
|
-
* input: [
|
|
1161
|
+
* input: [createEnhancedPIIGuardrail()],
|
|
1162
1162
|
* output: [checkToxicity],
|
|
1163
1163
|
* },
|
|
1164
1164
|
* hooks: {
|
|
@@ -1631,9 +1631,21 @@ type RedactionStyle =
|
|
|
1631
1631
|
"placeholder"
|
|
1632
1632
|
/** Replace with type-specific placeholder like [EMAIL] */
|
|
1633
1633
|
| "typed"
|
|
1634
|
-
/**
|
|
1634
|
+
/**
|
|
1635
|
+
* Replace with a fixed-width `****` mask plus the last 4 characters
|
|
1636
|
+
* (e.g. `****6789`). Does not preserve or reveal the original length.
|
|
1637
|
+
*/
|
|
1635
1638
|
| "masked"
|
|
1636
|
-
/**
|
|
1639
|
+
/**
|
|
1640
|
+
* Replace with a deterministic FNV-1a hash.
|
|
1641
|
+
*
|
|
1642
|
+
* **WARNING — this is PSEUDONYMIZATION, not anonymization.** FNV-1a is a
|
|
1643
|
+
* fast, non-cryptographic 32-bit hash. For low-entropy structured PII (SSNs,
|
|
1644
|
+
* card numbers, phone numbers) the output is trivially RE-IDENTIFIABLE via
|
|
1645
|
+
* brute force or a precomputed rainbow table. It MUST NOT be relied on for
|
|
1646
|
+
* GDPR / HIPAA de-identification. Use it only for referential integrity
|
|
1647
|
+
* (correlating the same value across audit logs).
|
|
1648
|
+
*/
|
|
1637
1649
|
| "hashed";
|
|
1638
1650
|
/** Redact detected PII from text */
|
|
1639
1651
|
declare function redactPII(text: string, items: DetectedPII[], style?: RedactionStyle): string;
|
|
@@ -1715,6 +1727,38 @@ declare function detectPII(text: string, options?: {
|
|
|
1715
1727
|
/** Timeout for custom detectors in milliseconds (default: 5000) */
|
|
1716
1728
|
timeout?: number;
|
|
1717
1729
|
}): Promise<PIIDetectionResult>;
|
|
1730
|
+
/**
|
|
1731
|
+
* Detect PII in text and return a result whose `redactedText` is populated.
|
|
1732
|
+
*
|
|
1733
|
+
* This composes {@link detectPII} and {@link redactPII} so callers do not have
|
|
1734
|
+
* to manually wire the two together (and do not have to mutate the detection
|
|
1735
|
+
* result). When no PII is detected, `redactedText` is left `undefined` — it is
|
|
1736
|
+
* deliberately NOT defaulted to the raw input.
|
|
1737
|
+
*
|
|
1738
|
+
* @example
|
|
1739
|
+
* ```typescript
|
|
1740
|
+
* const result = await detectAndRedactPII('My SSN is 123-45-6789', {
|
|
1741
|
+
* types: ['ssn'],
|
|
1742
|
+
* style: 'typed',
|
|
1743
|
+
* });
|
|
1744
|
+
* console.log(result.detected); // true
|
|
1745
|
+
* // ssn is a sensitive-category type, so `typed` emits a generic [REDACTED]
|
|
1746
|
+
* console.log(result.redactedText); // 'My SSN is [REDACTED]'
|
|
1747
|
+
*
|
|
1748
|
+
* const clean = await detectAndRedactPII('nothing here', { types: ['ssn'] });
|
|
1749
|
+
* console.log(clean.detected); // false
|
|
1750
|
+
* console.log(clean.redactedText); // undefined
|
|
1751
|
+
* ```
|
|
1752
|
+
*/
|
|
1753
|
+
declare function detectAndRedactPII(text: string, options?: {
|
|
1754
|
+
types?: PIIType[];
|
|
1755
|
+
detector?: "regex" | PIIDetector;
|
|
1756
|
+
minConfidence?: number;
|
|
1757
|
+
/** Timeout for custom detectors in milliseconds (default: 5000) */
|
|
1758
|
+
timeout?: number;
|
|
1759
|
+
/** Redaction style applied when PII is detected (default: 'typed') */
|
|
1760
|
+
style?: RedactionStyle;
|
|
1761
|
+
}): Promise<PIIDetectionResult>;
|
|
1718
1762
|
|
|
1719
1763
|
/**
|
|
1720
1764
|
* Audit Plugin - Immutable Audit Trail with Hash Chain
|
|
@@ -4933,4 +4977,4 @@ interface OtelPlugin {
|
|
|
4933
4977
|
*/
|
|
4934
4978
|
declare function createOtelPlugin(config: OtelPluginConfig): OtelPlugin;
|
|
4935
4979
|
|
|
4936
|
-
export { type ANNIndex, type ANNSearchResult, AdapterHooks, AgentHealthMetrics, type AgentInfo, AgentLike, type AgentMessage, type AgentMessageType, type AgentNetwork, type AgentNetworkConfig, AgentRegistry, AgentRunner, AgentSelectionStrategy, AgentState, AllProvidersFailedError, ApprovalState, type AuditEventType, type AuditInstance, type AuditPluginConfig, type BatchQueue, type BatchQueueConfig, type BidirectionalStream, type BudgetConfig, type BudgetExceededDetails, BudgetExceededError, type BudgetRunner, type BudgetWindow, CheckpointDiff, CheckpointProgress, CheckpointStore, type ComplianceConfig, type ComplianceInstance, type ComplianceStorage, type ConnectDevToolsOptions, type ConstraintRouterConfig, type ConstraintRouterRunner, type CreateRunnerOptions, DEFAULT_INJECTION_PATTERNS, DagExecutionContext, DagNode, DagPattern, type DebateConfig, DebatePattern, DebateResult, DebugEvent, DebugTimeline, type DelegationMessage, type DelegationResultMessage, type DevToolsClient, type DevToolsClientMessage, type DevToolsCompatibleOrchestrator, type DevToolsServer, type DevToolsServerConfig, type DevToolsServerMessage, type DevToolsSnapshot, type DevToolsTransport, EmbedderFn, Embedding, type EnhancedPIIGuardrailOptions, type EvalAgentSummary, type EvalAssertOptions, type EvalCase, type EvalCaseResult, type EvalContext, type EvalCostOptions, type EvalCriterion, type EvalCriterionFn, type EvalJudgeOptions, type EvalLatencyOptions, type EvalMatchOptions, type EvalOutputLengthOptions, type EvalResults, type EvalSafetyOptions, type EvalScore, type EvalSemanticOptions, type EvalStructureOptions, type EvalSuite, type EvalSuiteConfig, ExecutionPattern, type FallbackConfig, type GoalAgentDeclaration, type GoalDependencyEdge, type GoalDependencyGraph, type GoalExecutionPlan, type GoalExplanation, type GoalExplanationStep, GoalMetrics, GoalNode, GoalPattern, type GoalPlanStep, GoalResult, type GoalValidationResult, GuardrailFn, HealthMonitor, type InformMessage, InputGuardrailData, type JSONFileStoreOptions, type MCPAdapter, type MCPAdapterConfig, type MCPApprovalRequest, type MCPCallToolRequirement, type MCPGetPromptRequirement, type MCPReadResourceRequirement, type MCPRequirement, type MCPResource, type MCPServerConfig, type MCPSyncResourcesRequirement, type MCPTool, type MCPToolConstraint, type MCPToolResult, type MermaidDirection, type MermaidNodeShapes, type MermaidOptions, Message, type MessageBus, type MessageBusConfig, type MessageFilter, type MessageHandler, type ModelRule, type ModelSelectionConfig, MultiAgentOrchestrator, MultiAgentOrchestratorOptions, OrchestratorConstraint, type OtelPlugin, type OtelPluginConfig, type OtelSpan, OtelStatusCode, type OtelTracer, OutputGuardrailData, ParallelPattern, type ParsedResponse, PatternCheckpointConfig, PatternCheckpointState, type PromptInjectionGuardrailOptions, type ProviderStats, type QueryMessage, type RAGChunk, type RAGEnrichOptions, type RAGEnricher, type RAGEnricherConfig, type RAGStorage, RacePattern, type RateLimitGuardrail, ReflectIterationRecord, ReflectPattern, ReflectionEvaluation, RelaxationTier, type RequestMessage, type ResponseMessage, type RetryConfig, RetryExhaustedError, type RoutingConstraint, type RoutingFacts, type RoutingProvider, RunAgentRequirement, RunOptions, RunResult, type RunnerMiddleware, type SSEEvent, type SSETransport, type SSETransportConfig, STRICT_INJECTION_PATTERNS, SchemaValidator, Semaphore, SequentialPattern, type SerializedDagNode, type SerializedGoalNode, type SerializedPattern, type SpanData, type SpawnOnConditionOptions, type SpawnPoolConfig, type StreamChannel, type StreamChannelConfig, type StreamChannelState, type Subscription, SupervisorPattern, type TokenPricing, ToolCallGuardrailData, type TypedAgentMessage, type UpdateMessage, type VPTreeIndexConfig, type WsTransportConfig, aggregateTokens, allReadyStrategy, byAgentName, byInputLength, byPattern, capabilityRoute, collectOutputs, composePatterns, concatResults, connectDevTools, convertToolsForLLM, costEfficientStrategy, createAgentAuditHandlers, createAgentNetwork, createAuditTrail, createBatchQueue, createBidirectionalStream, createBruteForceIndex, createCompliance, createConstraintRouter, createContentFilterGuardrail, createDelegator, createDevToolsServer, createEnhancedPIIGuardrail, createEvalSuite, createInMemoryComplianceStorage, createJSONFileStore, createLengthGuardrail, createMCPAdapter, createMessageBus, createModerationGuardrail, createMultiAgentOrchestrator, createOtelPlugin, createOutputPIIGuardrail, createOutputSchemaGuardrail, createOutputTypeGuardrail, createPIIGuardrail, createPromptInjectionGuardrail, createPubSub, createRAGEnricher, createRateLimitGuardrail, createResponder, createRunner, createSSETransport, createStreamChannel, createToolGuardrail, createUntrustedContentGuardrail, createVPTreeIndex, createWsTransport, dag, debate, derivedConstraint, detectPII, detectPromptInjection, diffCheckpoints, estimateCost, evalAssert, evalCoherence, evalCost, evalFaithfulness, evalJudge, evalLatency, evalMatch, evalOutputLength, evalRelevance, evalSafety, evalStructure, explainGoal, findAgentsByCapability, forkFromCheckpoint, formatSystemMeta, getCheckpointProgress, getDependencyGraph, getPatternStep, goal, hasPendingApprovals, highestImpactStrategy, isAgentRunning, markUntrustedContent, mcpCallTool, mcpGetPrompt, mcpReadResource, mcpSyncResources, mergeStreams, parallel, parseHttpStatus, parseRetryAfter, patternFromJSON, patternToJSON, patternToMermaid, pickBestResult, pipe, pipeThrough, planGoal, race, redactPII, reflect, runAgentRequirement, runDebate, sanitizeInjection, selectAgent, sequential, spawnOnCondition, spawnPool, supervisor, toAIContext, validateBaseURL, validateGoal, withBudget, withFallback, withModelSelection, withRetry };
|
|
4980
|
+
export { type ANNIndex, type ANNSearchResult, AdapterHooks, AgentHealthMetrics, type AgentInfo, AgentLike, type AgentMessage, type AgentMessageType, type AgentNetwork, type AgentNetworkConfig, AgentRegistry, AgentRunner, AgentSelectionStrategy, AgentState, AllProvidersFailedError, ApprovalState, type AuditEventType, type AuditInstance, type AuditPluginConfig, type BatchQueue, type BatchQueueConfig, type BidirectionalStream, type BudgetConfig, type BudgetExceededDetails, BudgetExceededError, type BudgetRunner, type BudgetWindow, CheckpointDiff, CheckpointProgress, CheckpointStore, type ComplianceConfig, type ComplianceInstance, type ComplianceStorage, type ConnectDevToolsOptions, type ConstraintRouterConfig, type ConstraintRouterRunner, type CreateRunnerOptions, DEFAULT_INJECTION_PATTERNS, DagExecutionContext, DagNode, DagPattern, type DebateConfig, DebatePattern, DebateResult, DebugEvent, DebugTimeline, type DelegationMessage, type DelegationResultMessage, type DetectedPII, type DevToolsClient, type DevToolsClientMessage, type DevToolsCompatibleOrchestrator, type DevToolsServer, type DevToolsServerConfig, type DevToolsServerMessage, type DevToolsSnapshot, type DevToolsTransport, EmbedderFn, Embedding, type EnhancedPIIGuardrailOptions, type EvalAgentSummary, type EvalAssertOptions, type EvalCase, type EvalCaseResult, type EvalContext, type EvalCostOptions, type EvalCriterion, type EvalCriterionFn, type EvalJudgeOptions, type EvalLatencyOptions, type EvalMatchOptions, type EvalOutputLengthOptions, type EvalResults, type EvalSafetyOptions, type EvalScore, type EvalSemanticOptions, type EvalStructureOptions, type EvalSuite, type EvalSuiteConfig, ExecutionPattern, type FallbackConfig, type GoalAgentDeclaration, type GoalDependencyEdge, type GoalDependencyGraph, type GoalExecutionPlan, type GoalExplanation, type GoalExplanationStep, GoalMetrics, GoalNode, GoalPattern, type GoalPlanStep, GoalResult, type GoalValidationResult, GuardrailFn, HealthMonitor, type InformMessage, type InjectionDetectionResult, InputGuardrailData, type JSONFileStoreOptions, type MCPAdapter, type MCPAdapterConfig, type MCPApprovalRequest, type MCPCallToolRequirement, type MCPGetPromptRequirement, type MCPReadResourceRequirement, type MCPRequirement, type MCPResource, type MCPServerConfig, type MCPSyncResourcesRequirement, type MCPTool, type MCPToolConstraint, type MCPToolResult, type MermaidDirection, type MermaidNodeShapes, type MermaidOptions, Message, type MessageBus, type MessageBusConfig, type MessageFilter, type MessageHandler, type ModelRule, type ModelSelectionConfig, MultiAgentOrchestrator, MultiAgentOrchestratorOptions, OrchestratorConstraint, type OtelPlugin, type OtelPluginConfig, type OtelSpan, OtelStatusCode, type OtelTracer, OutputGuardrailData, type PIIDetectionResult, type PIIDetector, type PIIType, ParallelPattern, type ParsedResponse, PatternCheckpointConfig, PatternCheckpointState, type PromptInjectionGuardrailOptions, type ProviderStats, type QueryMessage, type RAGChunk, type RAGEnrichOptions, type RAGEnricher, type RAGEnricherConfig, type RAGStorage, RacePattern, type RateLimitGuardrail, type RedactionStyle, ReflectIterationRecord, ReflectPattern, ReflectionEvaluation, RelaxationTier, type RequestMessage, type ResponseMessage, type RetryConfig, RetryExhaustedError, type RoutingConstraint, type RoutingFacts, type RoutingProvider, RunAgentRequirement, RunOptions, RunResult, type RunnerMiddleware, type SSEEvent, type SSETransport, type SSETransportConfig, STRICT_INJECTION_PATTERNS, SchemaValidator, Semaphore, SequentialPattern, type SerializedDagNode, type SerializedGoalNode, type SerializedPattern, type SpanData, type SpawnOnConditionOptions, type SpawnPoolConfig, type StreamChannel, type StreamChannelConfig, type StreamChannelState, type Subscription, SupervisorPattern, type TokenPricing, ToolCallGuardrailData, type TypedAgentMessage, type UpdateMessage, type VPTreeIndexConfig, type WsTransportConfig, aggregateTokens, allReadyStrategy, byAgentName, byInputLength, byPattern, capabilityRoute, collectOutputs, composePatterns, concatResults, connectDevTools, convertToolsForLLM, costEfficientStrategy, createAgentAuditHandlers, createAgentNetwork, createAuditTrail, createBatchQueue, createBidirectionalStream, createBruteForceIndex, createCompliance, createConstraintRouter, createContentFilterGuardrail, createDelegator, createDevToolsServer, createEnhancedPIIGuardrail, createEvalSuite, createInMemoryComplianceStorage, createJSONFileStore, createLengthGuardrail, createMCPAdapter, createMessageBus, createModerationGuardrail, createMultiAgentOrchestrator, createOtelPlugin, createOutputPIIGuardrail, createOutputSchemaGuardrail, createOutputTypeGuardrail, createPIIGuardrail, createPromptInjectionGuardrail, createPubSub, createRAGEnricher, createRateLimitGuardrail, createResponder, createRunner, createSSETransport, createStreamChannel, createToolGuardrail, createUntrustedContentGuardrail, createVPTreeIndex, createWsTransport, dag, debate, derivedConstraint, detectAndRedactPII, detectPII, detectPromptInjection, diffCheckpoints, estimateCost, evalAssert, evalCoherence, evalCost, evalFaithfulness, evalJudge, evalLatency, evalMatch, evalOutputLength, evalRelevance, evalSafety, evalStructure, explainGoal, findAgentsByCapability, forkFromCheckpoint, formatSystemMeta, getCheckpointProgress, getDependencyGraph, getPatternStep, goal, hasPendingApprovals, highestImpactStrategy, isAgentRunning, markUntrustedContent, mcpCallTool, mcpGetPrompt, mcpReadResource, mcpSyncResources, mergeStreams, parallel, parseHttpStatus, parseRetryAfter, patternFromJSON, patternToJSON, patternToMermaid, pickBestResult, pipe, pipeThrough, planGoal, race, redactPII, reflect, runAgentRequirement, runDebate, sanitizeInjection, selectAgent, sequential, spawnOnCondition, spawnPool, supervisor, toAIContext, validateBaseURL, validateGoal, withBudget, withFallback, withModelSelection, withRetry };
|