agentfootprint 10.1.1 → 10.3.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/CAPABILITIES.md +2 -0
- package/dist/adapters/llm/AnthropicProvider.js +28 -3
- package/dist/adapters/llm/AnthropicProvider.js.map +1 -1
- package/dist/adapters/llm/BrowserAnthropicProvider.js +11 -2
- package/dist/adapters/llm/BrowserAnthropicProvider.js.map +1 -1
- package/dist/adapters/llm/MockProvider.js +11 -1
- package/dist/adapters/llm/MockProvider.js.map +1 -1
- package/dist/adapters/llm/anthropicMessageProjection.js +26 -1
- package/dist/adapters/llm/anthropicMessageProjection.js.map +1 -1
- package/dist/adapters/llm/anthropicMessagesWire.js +61 -37
- package/dist/adapters/llm/anthropicMessagesWire.js.map +1 -1
- package/dist/adapters/llm/anthropicModels.js +48 -14
- package/dist/adapters/llm/anthropicModels.js.map +1 -1
- package/dist/adapters/llm/anthropicReplayLayout.js +1 -0
- package/dist/adapters/llm/anthropicReplayLayout.js.map +1 -1
- package/dist/adapters/llm/anthropicToolArguments.js +122 -0
- package/dist/adapters/llm/anthropicToolArguments.js.map +1 -0
- package/dist/adapters/llm/wireManifest.js +8 -2
- package/dist/adapters/llm/wireManifest.js.map +1 -1
- package/dist/adapters/nativeOutputSchema.js +80 -0
- package/dist/adapters/nativeOutputSchema.js.map +1 -0
- package/dist/adapters/requestRefusal.js +2 -0
- package/dist/adapters/requestRefusal.js.map +1 -1
- package/dist/adapters/types.js.map +1 -1
- package/dist/answer-validation/validate.js +7 -107
- package/dist/answer-validation/validate.js.map +1 -1
- package/dist/core/Agent.js +79 -22
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/agent/AgentBuilder.js +23 -0
- package/dist/core/agent/AgentBuilder.js.map +1 -1
- package/dist/core/agent/arguments/resolve.js +4 -0
- package/dist/core/agent/arguments/resolve.js.map +1 -1
- package/dist/core/agent/arguments/subflow.js +1 -0
- package/dist/core/agent/arguments/subflow.js.map +1 -1
- package/dist/core/agent/buildDynamicAgentChart.js +5 -0
- package/dist/core/agent/buildDynamicAgentChart.js.map +1 -1
- package/dist/core/agent/findings/reserved.js +50 -1
- package/dist/core/agent/findings/reserved.js.map +1 -1
- package/dist/core/agent/findings/types.js.map +1 -1
- package/dist/core/agent/findings/verificationCheck.js +99 -0
- package/dist/core/agent/findings/verificationCheck.js.map +1 -0
- package/dist/core/agent/findings/verificationCheckpoint.js +110 -0
- package/dist/core/agent/findings/verificationCheckpoint.js.map +1 -0
- package/dist/core/agent/findings/verificationConfig.js +119 -0
- package/dist/core/agent/findings/verificationConfig.js.map +1 -0
- package/dist/core/agent/findings/verificationRow.js +181 -0
- package/dist/core/agent/findings/verificationRow.js.map +1 -0
- package/dist/core/agent/findings/verificationState.js +152 -0
- package/dist/core/agent/findings/verificationState.js.map +1 -0
- package/dist/core/agent/findings/verificationTypes.js +23 -0
- package/dist/core/agent/findings/verificationTypes.js.map +1 -0
- package/dist/core/agent/nativeOutputFormat.js +389 -0
- package/dist/core/agent/nativeOutputFormat.js.map +1 -0
- package/dist/core/agent/outputEnforcement.js +40 -1
- package/dist/core/agent/outputEnforcement.js.map +1 -1
- package/dist/core/agent/stages/answerValidation.js +14 -4
- package/dist/core/agent/stages/answerValidation.js.map +1 -1
- package/dist/core/agent/stages/callLLM.js +24 -0
- package/dist/core/agent/stages/callLLM.js.map +1 -1
- package/dist/core/agent/stages/outputRetry.js +1 -0
- package/dist/core/agent/stages/outputRetry.js.map +1 -1
- package/dist/core/agent/stages/route.js +33 -10
- package/dist/core/agent/stages/route.js.map +1 -1
- package/dist/core/agent/stages/toolCalls.js +20 -3
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/core/agent/toolArgsValidation.js +12 -1
- package/dist/core/agent/toolArgsValidation.js.map +1 -1
- package/dist/core/outputSchema.js.map +1 -1
- package/dist/core/runCheckpoint.js +45 -4
- package/dist/core/runCheckpoint.js.map +1 -1
- package/dist/esm/adapters/llm/AnthropicProvider.d.ts +3 -0
- package/dist/esm/adapters/llm/AnthropicProvider.js +29 -4
- package/dist/esm/adapters/llm/AnthropicProvider.js.map +1 -1
- package/dist/esm/adapters/llm/BrowserAnthropicProvider.d.ts +3 -0
- package/dist/esm/adapters/llm/BrowserAnthropicProvider.js +12 -3
- package/dist/esm/adapters/llm/BrowserAnthropicProvider.js.map +1 -1
- package/dist/esm/adapters/llm/MockProvider.d.ts +7 -0
- package/dist/esm/adapters/llm/MockProvider.js +11 -1
- package/dist/esm/adapters/llm/MockProvider.js.map +1 -1
- package/dist/esm/adapters/llm/anthropicMessageProjection.js +26 -1
- package/dist/esm/adapters/llm/anthropicMessageProjection.js.map +1 -1
- package/dist/esm/adapters/llm/anthropicMessagesWire.d.ts +17 -3
- package/dist/esm/adapters/llm/anthropicMessagesWire.js +61 -37
- package/dist/esm/adapters/llm/anthropicMessagesWire.js.map +1 -1
- package/dist/esm/adapters/llm/anthropicModels.d.ts +36 -3
- package/dist/esm/adapters/llm/anthropicModels.js +46 -13
- package/dist/esm/adapters/llm/anthropicModels.js.map +1 -1
- package/dist/esm/adapters/llm/anthropicReplayLayout.js +1 -0
- package/dist/esm/adapters/llm/anthropicReplayLayout.js.map +1 -1
- package/dist/esm/adapters/llm/anthropicToolArguments.d.ts +31 -0
- package/dist/esm/adapters/llm/anthropicToolArguments.js +118 -0
- package/dist/esm/adapters/llm/anthropicToolArguments.js.map +1 -0
- package/dist/esm/adapters/llm/wireManifest.d.ts +9 -1
- package/dist/esm/adapters/llm/wireManifest.js +8 -2
- package/dist/esm/adapters/llm/wireManifest.js.map +1 -1
- package/dist/esm/adapters/nativeOutputSchema.d.ts +66 -0
- package/dist/esm/adapters/nativeOutputSchema.js +75 -0
- package/dist/esm/adapters/nativeOutputSchema.js.map +1 -0
- package/dist/esm/adapters/requestRefusal.js +2 -0
- package/dist/esm/adapters/requestRefusal.js.map +1 -1
- package/dist/esm/adapters/types.d.ts +57 -0
- package/dist/esm/adapters/types.js.map +1 -1
- package/dist/esm/answer-validation/validate.js +1 -101
- package/dist/esm/answer-validation/validate.js.map +1 -1
- package/dist/esm/core/Agent.d.ts +16 -0
- package/dist/esm/core/Agent.js +79 -22
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/agent/AgentBuilder.js +23 -0
- package/dist/esm/core/agent/AgentBuilder.js.map +1 -1
- package/dist/esm/core/agent/arguments/resolve.d.ts +1 -0
- package/dist/esm/core/agent/arguments/resolve.js +4 -0
- package/dist/esm/core/agent/arguments/resolve.js.map +1 -1
- package/dist/esm/core/agent/arguments/subflow.js +1 -0
- package/dist/esm/core/agent/arguments/subflow.js.map +1 -1
- package/dist/esm/core/agent/buildDynamicAgentChart.js +5 -0
- package/dist/esm/core/agent/buildDynamicAgentChart.js.map +1 -1
- package/dist/esm/core/agent/findings/reserved.d.ts +16 -0
- package/dist/esm/core/agent/findings/reserved.js +48 -0
- package/dist/esm/core/agent/findings/reserved.js.map +1 -1
- package/dist/esm/core/agent/findings/types.d.ts +2 -1
- package/dist/esm/core/agent/findings/types.js.map +1 -1
- package/dist/esm/core/agent/findings/verificationCheck.d.ts +24 -0
- package/dist/esm/core/agent/findings/verificationCheck.js +95 -0
- package/dist/esm/core/agent/findings/verificationCheck.js.map +1 -0
- package/dist/esm/core/agent/findings/verificationCheckpoint.d.ts +10 -0
- package/dist/esm/core/agent/findings/verificationCheckpoint.js +104 -0
- package/dist/esm/core/agent/findings/verificationCheckpoint.js.map +1 -0
- package/dist/esm/core/agent/findings/verificationConfig.d.ts +30 -0
- package/dist/esm/core/agent/findings/verificationConfig.js +115 -0
- package/dist/esm/core/agent/findings/verificationConfig.js.map +1 -0
- package/dist/esm/core/agent/findings/verificationRow.d.ts +16 -0
- package/dist/esm/core/agent/findings/verificationRow.js +174 -0
- package/dist/esm/core/agent/findings/verificationRow.js.map +1 -0
- package/dist/esm/core/agent/findings/verificationState.d.ts +39 -0
- package/dist/esm/core/agent/findings/verificationState.js +143 -0
- package/dist/esm/core/agent/findings/verificationState.js.map +1 -0
- package/dist/esm/core/agent/findings/verificationTypes.d.ts +55 -0
- package/dist/esm/core/agent/findings/verificationTypes.js +20 -0
- package/dist/esm/core/agent/findings/verificationTypes.js.map +1 -0
- package/dist/esm/core/agent/nativeOutputFormat.d.ts +85 -0
- package/dist/esm/core/agent/nativeOutputFormat.js +384 -0
- package/dist/esm/core/agent/nativeOutputFormat.js.map +1 -0
- package/dist/esm/core/agent/outputEnforcement.d.ts +33 -1
- package/dist/esm/core/agent/outputEnforcement.js +38 -0
- package/dist/esm/core/agent/outputEnforcement.js.map +1 -1
- package/dist/esm/core/agent/stages/answerValidation.d.ts +1 -1
- package/dist/esm/core/agent/stages/answerValidation.js +14 -4
- package/dist/esm/core/agent/stages/answerValidation.js.map +1 -1
- package/dist/esm/core/agent/stages/callLLM.d.ts +9 -1
- package/dist/esm/core/agent/stages/callLLM.js +24 -0
- package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
- package/dist/esm/core/agent/stages/outputRetry.js +1 -0
- package/dist/esm/core/agent/stages/outputRetry.js.map +1 -1
- package/dist/esm/core/agent/stages/route.js +34 -11
- package/dist/esm/core/agent/stages/route.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls.js +21 -4
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/agent/toolArgsValidation.d.ts +2 -0
- package/dist/esm/core/agent/toolArgsValidation.js +10 -0
- package/dist/esm/core/agent/toolArgsValidation.js.map +1 -1
- package/dist/esm/core/agent/types.d.ts +20 -3
- package/dist/esm/core/outputSchema.d.ts +30 -3
- package/dist/esm/core/outputSchema.js.map +1 -1
- package/dist/esm/core/runCheckpoint.d.ts +11 -1
- package/dist/esm/core/runCheckpoint.js +45 -4
- package/dist/esm/core/runCheckpoint.js.map +1 -1
- package/dist/esm/integrity/claim-binding/admit.d.ts +12 -0
- package/dist/esm/integrity/claim-binding/admit.js +204 -0
- package/dist/esm/integrity/claim-binding/admit.js.map +1 -0
- package/dist/esm/integrity/claim-binding/bindEvidence.d.ts +8 -0
- package/dist/esm/integrity/claim-binding/bindEvidence.js +144 -0
- package/dist/esm/integrity/claim-binding/bindEvidence.js.map +1 -0
- package/dist/esm/integrity/claim-binding/capture.d.ts +25 -0
- package/dist/esm/integrity/claim-binding/capture.js +143 -0
- package/dist/esm/integrity/claim-binding/capture.js.map +1 -0
- package/dist/esm/integrity/claim-binding/scope.d.ts +23 -0
- package/dist/esm/integrity/claim-binding/scope.js +149 -0
- package/dist/esm/integrity/claim-binding/scope.js.map +1 -0
- package/dist/esm/integrity/claim-binding/types.d.ts +99 -0
- package/dist/esm/integrity/claim-binding/types.js +23 -0
- package/dist/esm/integrity/claim-binding/types.js.map +1 -0
- package/dist/esm/integrity/unsupported-claim/check.js +33 -55
- package/dist/esm/integrity/unsupported-claim/check.js.map +1 -1
- package/dist/esm/integrity/unsupported-claim/evaluate.d.ts +18 -0
- package/dist/esm/integrity/unsupported-claim/evaluate.js +34 -0
- package/dist/esm/integrity/unsupported-claim/evaluate.js.map +1 -0
- package/dist/esm/lib/boundedJson.d.ts +3 -0
- package/dist/esm/lib/boundedJson.js +104 -0
- package/dist/esm/lib/boundedJson.js.map +1 -0
- package/dist/esm/lib/time-travel/receipt.d.ts +11 -0
- package/dist/esm/lib/time-travel/receipt.js +12 -2
- package/dist/esm/lib/time-travel/receipt.js.map +1 -1
- package/dist/esm/memory/identity/encode.d.ts +7 -0
- package/dist/esm/memory/identity/encode.js +14 -0
- package/dist/esm/memory/identity/encode.js.map +1 -1
- package/dist/esm/providers.d.ts +1 -0
- package/dist/esm/providers.js +1 -0
- package/dist/esm/providers.js.map +1 -1
- package/dist/esm/redaction/conversation.js +3 -0
- package/dist/esm/redaction/conversation.js.map +1 -1
- package/dist/esm/redaction/knownStrings.js +5 -0
- package/dist/esm/redaction/knownStrings.js.map +1 -1
- package/dist/esm/resilience/withCircuitBreaker.js +7 -0
- package/dist/esm/resilience/withCircuitBreaker.js.map +1 -1
- package/dist/esm/resilience/withFallback.js +10 -0
- package/dist/esm/resilience/withFallback.js.map +1 -1
- package/dist/esm/resilience/withRetry.js +8 -0
- package/dist/esm/resilience/withRetry.js.map +1 -1
- package/dist/integrity/claim-binding/admit.js +211 -0
- package/dist/integrity/claim-binding/admit.js.map +1 -0
- package/dist/integrity/claim-binding/bindEvidence.js +148 -0
- package/dist/integrity/claim-binding/bindEvidence.js.map +1 -0
- package/dist/integrity/claim-binding/capture.js +152 -0
- package/dist/integrity/claim-binding/capture.js.map +1 -0
- package/dist/integrity/claim-binding/scope.js +159 -0
- package/dist/integrity/claim-binding/scope.js.map +1 -0
- package/dist/integrity/claim-binding/types.js +26 -0
- package/dist/integrity/claim-binding/types.js.map +1 -0
- package/dist/integrity/unsupported-claim/check.js +32 -54
- package/dist/integrity/unsupported-claim/check.js.map +1 -1
- package/dist/integrity/unsupported-claim/evaluate.js +38 -0
- package/dist/integrity/unsupported-claim/evaluate.js.map +1 -0
- package/dist/lib/boundedJson.js +109 -0
- package/dist/lib/boundedJson.js.map +1 -0
- package/dist/lib/time-travel/receipt.js +12 -2
- package/dist/lib/time-travel/receipt.js.map +1 -1
- package/dist/memory/identity/encode.js +16 -1
- package/dist/memory/identity/encode.js.map +1 -1
- package/dist/providers.js +4 -1
- package/dist/providers.js.map +1 -1
- package/dist/redaction/conversation.js +3 -0
- package/dist/redaction/conversation.js.map +1 -1
- package/dist/redaction/knownStrings.js +5 -0
- package/dist/redaction/knownStrings.js.map +1 -1
- package/dist/resilience/withCircuitBreaker.js +7 -0
- package/dist/resilience/withCircuitBreaker.js.map +1 -1
- package/dist/resilience/withFallback.js +10 -0
- package/dist/resilience/withFallback.js.map +1 -1
- package/dist/resilience/withRetry.js +8 -0
- package/dist/resilience/withRetry.js.map +1 -1
- package/dist/types/adapters/llm/AnthropicProvider.d.ts +3 -0
- package/dist/types/adapters/llm/AnthropicProvider.d.ts.map +1 -1
- package/dist/types/adapters/llm/BrowserAnthropicProvider.d.ts +3 -0
- package/dist/types/adapters/llm/BrowserAnthropicProvider.d.ts.map +1 -1
- package/dist/types/adapters/llm/MockProvider.d.ts +7 -0
- package/dist/types/adapters/llm/MockProvider.d.ts.map +1 -1
- package/dist/types/adapters/llm/anthropicMessageProjection.d.ts.map +1 -1
- package/dist/types/adapters/llm/anthropicMessagesWire.d.ts +17 -3
- package/dist/types/adapters/llm/anthropicMessagesWire.d.ts.map +1 -1
- package/dist/types/adapters/llm/anthropicModels.d.ts +36 -3
- package/dist/types/adapters/llm/anthropicModels.d.ts.map +1 -1
- package/dist/types/adapters/llm/anthropicReplayLayout.d.ts.map +1 -1
- package/dist/types/adapters/llm/anthropicToolArguments.d.ts +32 -0
- package/dist/types/adapters/llm/anthropicToolArguments.d.ts.map +1 -0
- package/dist/types/adapters/llm/wireManifest.d.ts +9 -1
- package/dist/types/adapters/llm/wireManifest.d.ts.map +1 -1
- package/dist/types/adapters/nativeOutputSchema.d.ts +67 -0
- package/dist/types/adapters/nativeOutputSchema.d.ts.map +1 -0
- package/dist/types/adapters/requestRefusal.d.ts.map +1 -1
- package/dist/types/adapters/types.d.ts +57 -0
- package/dist/types/adapters/types.d.ts.map +1 -1
- package/dist/types/answer-validation/validate.d.ts.map +1 -1
- package/dist/types/core/Agent.d.ts +16 -0
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/agent/AgentBuilder.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/resolve.d.ts +1 -0
- package/dist/types/core/agent/arguments/resolve.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/subflow.d.ts.map +1 -1
- package/dist/types/core/agent/buildDynamicAgentChart.d.ts.map +1 -1
- package/dist/types/core/agent/findings/reserved.d.ts +16 -0
- package/dist/types/core/agent/findings/reserved.d.ts.map +1 -1
- package/dist/types/core/agent/findings/types.d.ts +2 -1
- package/dist/types/core/agent/findings/types.d.ts.map +1 -1
- package/dist/types/core/agent/findings/verificationCheck.d.ts +25 -0
- package/dist/types/core/agent/findings/verificationCheck.d.ts.map +1 -0
- package/dist/types/core/agent/findings/verificationCheckpoint.d.ts +11 -0
- package/dist/types/core/agent/findings/verificationCheckpoint.d.ts.map +1 -0
- package/dist/types/core/agent/findings/verificationConfig.d.ts +31 -0
- package/dist/types/core/agent/findings/verificationConfig.d.ts.map +1 -0
- package/dist/types/core/agent/findings/verificationRow.d.ts +17 -0
- package/dist/types/core/agent/findings/verificationRow.d.ts.map +1 -0
- package/dist/types/core/agent/findings/verificationState.d.ts +40 -0
- package/dist/types/core/agent/findings/verificationState.d.ts.map +1 -0
- package/dist/types/core/agent/findings/verificationTypes.d.ts +56 -0
- package/dist/types/core/agent/findings/verificationTypes.d.ts.map +1 -0
- package/dist/types/core/agent/nativeOutputFormat.d.ts +86 -0
- package/dist/types/core/agent/nativeOutputFormat.d.ts.map +1 -0
- package/dist/types/core/agent/outputEnforcement.d.ts +33 -1
- package/dist/types/core/agent/outputEnforcement.d.ts.map +1 -1
- package/dist/types/core/agent/stages/answerValidation.d.ts +1 -1
- package/dist/types/core/agent/stages/answerValidation.d.ts.map +1 -1
- package/dist/types/core/agent/stages/callLLM.d.ts +9 -1
- package/dist/types/core/agent/stages/callLLM.d.ts.map +1 -1
- package/dist/types/core/agent/stages/outputRetry.d.ts.map +1 -1
- package/dist/types/core/agent/stages/route.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/agent/toolArgsValidation.d.ts +2 -0
- package/dist/types/core/agent/toolArgsValidation.d.ts.map +1 -1
- package/dist/types/core/agent/types.d.ts +20 -3
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/core/outputSchema.d.ts +30 -3
- package/dist/types/core/outputSchema.d.ts.map +1 -1
- package/dist/types/core/runCheckpoint.d.ts +11 -1
- package/dist/types/core/runCheckpoint.d.ts.map +1 -1
- package/dist/types/integrity/claim-binding/admit.d.ts +13 -0
- package/dist/types/integrity/claim-binding/admit.d.ts.map +1 -0
- package/dist/types/integrity/claim-binding/bindEvidence.d.ts +9 -0
- package/dist/types/integrity/claim-binding/bindEvidence.d.ts.map +1 -0
- package/dist/types/integrity/claim-binding/capture.d.ts +26 -0
- package/dist/types/integrity/claim-binding/capture.d.ts.map +1 -0
- package/dist/types/integrity/claim-binding/scope.d.ts +24 -0
- package/dist/types/integrity/claim-binding/scope.d.ts.map +1 -0
- package/dist/types/integrity/claim-binding/types.d.ts +100 -0
- package/dist/types/integrity/claim-binding/types.d.ts.map +1 -0
- package/dist/types/integrity/unsupported-claim/check.d.ts.map +1 -1
- package/dist/types/integrity/unsupported-claim/evaluate.d.ts +19 -0
- package/dist/types/integrity/unsupported-claim/evaluate.d.ts.map +1 -0
- package/dist/types/lib/boundedJson.d.ts +4 -0
- package/dist/types/lib/boundedJson.d.ts.map +1 -0
- package/dist/types/lib/time-travel/receipt.d.ts +11 -0
- package/dist/types/lib/time-travel/receipt.d.ts.map +1 -1
- package/dist/types/memory/identity/encode.d.ts +7 -0
- package/dist/types/memory/identity/encode.d.ts.map +1 -1
- package/dist/types/providers.d.ts +1 -0
- package/dist/types/providers.d.ts.map +1 -1
- package/dist/types/redaction/conversation.d.ts.map +1 -1
- package/dist/types/redaction/knownStrings.d.ts.map +1 -1
- package/dist/types/resilience/withCircuitBreaker.d.ts.map +1 -1
- package/dist/types/resilience/withFallback.d.ts.map +1 -1
- package/dist/types/resilience/withRetry.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { CapturedDispatch, ClaimBindingRule, ReturnedEvidence, ScopeDeclaration } from '../../../integrity/claim-binding/types.js';
|
|
2
|
+
export interface EvidenceAuthorizationInput {
|
|
3
|
+
/** Exact executed identity and selected scope, never all tool arguments. */
|
|
4
|
+
readonly dispatch: CapturedDispatch;
|
|
5
|
+
/** Full return-time semantic metadata, not the stripped model projection. */
|
|
6
|
+
readonly returned: ReturnedEvidence;
|
|
7
|
+
/** Actual payload after governance, placement and caps, before extra notes. */
|
|
8
|
+
readonly served: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface EvidenceAuthorization {
|
|
11
|
+
/** Grants retention of ALL original facts, provenance, coverage extras and period. */
|
|
12
|
+
readonly resultVisible: boolean;
|
|
13
|
+
/** Separately grants retention of EVERY selected executed scope dimension. */
|
|
14
|
+
readonly scopeVisible: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FindingsVerificationOptions {
|
|
17
|
+
readonly rules: readonly ClaimBindingRule[];
|
|
18
|
+
/**
|
|
19
|
+
* Synchronous author policy; may close over app-owned authorization. Inputs
|
|
20
|
+
* are detached/frozen. Projection equality does not supply this permission.
|
|
21
|
+
* Missing, partial, malformed or throwing decisions withhold both channels.
|
|
22
|
+
*/
|
|
23
|
+
readonly authorizeEvidence: (input: EvidenceAuthorizationInput) => EvidenceAuthorization;
|
|
24
|
+
}
|
|
25
|
+
export interface CompiledVerificationConfig extends FindingsVerificationOptions {
|
|
26
|
+
/** One admitted scope per tool; conflicting declarations fail at compilation. */
|
|
27
|
+
readonly scopeForTool: (toolName: string) => ScopeDeclaration | undefined;
|
|
28
|
+
}
|
|
29
|
+
/** Strict configuration admission runs once, not at every verification. */
|
|
30
|
+
export declare function compileVerificationConfig(raw: unknown): CompiledVerificationConfig;
|
|
31
|
+
//# sourceMappingURL=verificationConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verificationConfig.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/verificationConfig.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,2CAA2C,CAAC;AAKnD,MAAM,WAAW,0BAA0B;IACzC,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC,sFAAsF;IACtF,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,8EAA8E;IAC9E,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC5C;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,qBAAqB,CAAC;CAC1F;AAED,MAAM,WAAW,0BAA2B,SAAQ,2BAA2B;IAC7E,iFAAiF;IACjF,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,gBAAgB,GAAG,SAAS,CAAC;CAC3E;AA4ED,2EAA2E;AAC3E,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,0BAA0B,CAsClF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ResultIdentity } from '../../../integrity/claim-binding/types.js';
|
|
2
|
+
import { type ClaimVerificationRow } from './verificationTypes.js';
|
|
3
|
+
/** Reuse receipt bounds; declared values have the compact binding-request cap. */
|
|
4
|
+
export declare const VERIFICATION_LIMITS: Readonly<{
|
|
5
|
+
rowBytes: number;
|
|
6
|
+
valueBytes: 8192;
|
|
7
|
+
identityText: number;
|
|
8
|
+
}>;
|
|
9
|
+
/** A runtime-reserved claim occurrence cannot collide with a result occurrence. */
|
|
10
|
+
export declare function claimIdentityOf(raw: ResultIdentity): string;
|
|
11
|
+
/** Canonical claim tuple reader, shared with checkpoint lineage/counter checks. */
|
|
12
|
+
export declare function readClaimIdentity(value: unknown): ResultIdentity;
|
|
13
|
+
/** Validate the recorded protocol without evaluating whether its value agrees. */
|
|
14
|
+
export declare function readClaimVerificationRow(raw: unknown): ClaimVerificationRow;
|
|
15
|
+
/** Non-throwing checkpoint union guard; admission uses the same strict reader. */
|
|
16
|
+
export declare function isClaimVerificationRow(raw: unknown): raw is ClaimVerificationRow;
|
|
17
|
+
//# sourceMappingURL=verificationRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verificationRow.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/verificationRow.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAKhF,OAAO,EAAmC,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEpG,kFAAkF;AAClF,eAAO,MAAM,mBAAmB;;;;EAI9B,CAAC;AAEH,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAa3D;AAED,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAchE;AAiED,kFAAkF;AAClF,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,oBAAoB,CAiE3E;AAED,kFAAkF;AAClF,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,oBAAoB,CAOhF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { EvidenceSnapshot, ResultEvidence, ResultIdentity } from '../../../integrity/claim-binding/types.js';
|
|
2
|
+
export interface ClaimVerificationState {
|
|
3
|
+
readonly version: 1;
|
|
4
|
+
readonly evidence: EvidenceSnapshot;
|
|
5
|
+
readonly nextResultOrdinal: number;
|
|
6
|
+
readonly nextClaimOrdinal: number;
|
|
7
|
+
/** Sticky refusal: older receipts remain; later evidence is not substituted. */
|
|
8
|
+
readonly limited?: true;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Read only after the checkpoint's owner/namespace authority is established.
|
|
12
|
+
* The caller MUST derive largestClaimOrdinal from its validated claim rows;
|
|
13
|
+
* this carrier does not contain those rows and cannot infer their maximum.
|
|
14
|
+
* Stage commits clone changed state. At entry, admit the tracked raw value
|
|
15
|
+
* and publish this detached carrier before the batch; subsequent raw reads
|
|
16
|
+
* can reuse its immutable evidence. A live scope proxy is not that identity.
|
|
17
|
+
*/
|
|
18
|
+
export declare function readVerificationState(raw: unknown, largestClaimOrdinal: number): ClaimVerificationState;
|
|
19
|
+
/** Called only when opted in. No randomness is consumed at module load. */
|
|
20
|
+
export declare function createVerificationState(runId: string, namespaceSource?: () => string): ClaimVerificationState;
|
|
21
|
+
/** A resume keeps its namespace/counters, including when a process reuses runId. */
|
|
22
|
+
export declare function continueVerificationState(state: ClaimVerificationState, runId: string): ClaimVerificationState;
|
|
23
|
+
/** Publish the returned state before awaiting execution, even if it later fails. */
|
|
24
|
+
export declare function reserveResultIdentity(state: ClaimVerificationState, runId: string): {
|
|
25
|
+
readonly state: ClaimVerificationState;
|
|
26
|
+
readonly identity: ResultIdentity;
|
|
27
|
+
readonly id: string;
|
|
28
|
+
};
|
|
29
|
+
/** One occurrence, not a text key. The caller publishes state before evaluation. */
|
|
30
|
+
export declare function reserveClaimIdentity(state: ClaimVerificationState, runId: string): {
|
|
31
|
+
readonly state: ClaimVerificationState;
|
|
32
|
+
readonly ordinal: number;
|
|
33
|
+
readonly id: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Retain only a finalized, previously reserved receipt. Capacity refusal is
|
|
37
|
+
* sticky and never replaces an earlier result; the writer reports the limit.
|
|
38
|
+
*/
|
|
39
|
+
export declare function retainVerificationEvidence(state: ClaimVerificationState, receipt: ResultEvidence): ClaimVerificationState;
|
|
40
|
+
//# sourceMappingURL=verificationState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verificationState.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/verificationState.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACf,MAAM,2CAA2C,CAAC;AAInD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,O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.js';
|
|
2
|
+
import type { ClaimPairEvaluation } from '../../../integrity/unsupported-claim/evaluate.js';
|
|
3
|
+
import type { DeclaredOn, Standing } from './types.js';
|
|
4
|
+
export declare const VERIFICATION_UNVERIFIED_REASONS: readonly ["invalid-claim", "unknown-rule", "invalid-rule", "missing-result", "ambiguous-result", "foreign-result", "incomplete-result", "withheld-evidence", "unassociated-result", "invalid-evidence", "missing-scope", "scope-mismatch", "scope-version-mismatch", "missing-fact", "ambiguous-fact", "unasserted-value", "coverage-undeclared", "coverage-partial", "coverage-unknown", "coverage-stale", "missing-check", "malformed-check", "ineligible-noise", "assertion-mismatch", "retention-limit", "evidence-unavailable", "claim-nonparticipating", "doubt-against-value", "both-doubt"];
|
|
5
|
+
export type ClaimVerificationUnverifiedReason = (typeof VERIFICATION_UNVERIFIED_REASONS)[number];
|
|
6
|
+
export type ClaimVerificationReason = ClaimVerificationUnverifiedReason | ClaimPairEvaluation;
|
|
7
|
+
/** The model may cite a rule, never provide scope or resolved evidence. */
|
|
8
|
+
export interface FindingClaimRequest {
|
|
9
|
+
readonly value: unknown;
|
|
10
|
+
readonly check?: {
|
|
11
|
+
readonly rule: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/** A legacy full assertion adds identity, not authority to choose evidence. */
|
|
15
|
+
export interface FullFindingClaimRequest extends FindingClaimRequest {
|
|
16
|
+
readonly subject: {
|
|
17
|
+
readonly kind: string;
|
|
18
|
+
readonly id: string;
|
|
19
|
+
};
|
|
20
|
+
readonly predicate: string;
|
|
21
|
+
}
|
|
22
|
+
export type ClaimVerificationAssociation = Omit<Extract<ClaimBinding, {
|
|
23
|
+
kind: 'bound';
|
|
24
|
+
}>, 'kind'>;
|
|
25
|
+
interface ClaimVerificationBase {
|
|
26
|
+
readonly kind: 'claim-verification';
|
|
27
|
+
/** Runtime-reserved declaration occurrence, not a provider tool id. */
|
|
28
|
+
readonly claimId: string;
|
|
29
|
+
readonly declaredOn: DeclaredOn;
|
|
30
|
+
readonly standing: Standing;
|
|
31
|
+
readonly iteration: number;
|
|
32
|
+
readonly turn?: number;
|
|
33
|
+
readonly checker: {
|
|
34
|
+
readonly id: 'claim-pair';
|
|
35
|
+
readonly version: 1;
|
|
36
|
+
};
|
|
37
|
+
readonly declaredResult?: string;
|
|
38
|
+
readonly declaredRule?: string;
|
|
39
|
+
/** The literal bounded JSON declaration, never replaced by a resolved value. */
|
|
40
|
+
readonly declaredValue: unknown;
|
|
41
|
+
}
|
|
42
|
+
export type ClaimVerificationRow = ClaimVerificationBase & ({
|
|
43
|
+
readonly outcome: 'supported';
|
|
44
|
+
readonly reason: 'no-conflict' | 'numeric-leniency';
|
|
45
|
+
readonly resolved: ClaimVerificationAssociation;
|
|
46
|
+
} | {
|
|
47
|
+
readonly outcome: 'contradicted';
|
|
48
|
+
readonly reason: 'conflict';
|
|
49
|
+
readonly resolved: ClaimVerificationAssociation;
|
|
50
|
+
} | {
|
|
51
|
+
readonly outcome: 'unverified';
|
|
52
|
+
readonly reason: ClaimVerificationUnverifiedReason;
|
|
53
|
+
readonly resolved?: never;
|
|
54
|
+
});
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=verificationTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verificationTypes.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/verificationTypes.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD,eAAO,MAAM,+BAA+B,qkBAWjC,CAAC;AAEZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AACjG,MAAM,MAAM,uBAAuB,GAAG,iCAAiC,GAAG,mBAA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CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,kBAAkB,CAAC;IACpD,QAAQ,CAAC,QAAQ,EAAE,4BAA4B,CAAC;CACjD,GACD;IACE,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,4BAA4B,CAAC;CACjD,GACD;IACE,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,iCAAiC,CAAC;IACnD,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;CAC3B,CACJ,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* nativeOutputFormat — the ONE builder of the JSON Schema that
|
|
3
|
+
* `.outputSchema(parser, { strategy: 'native' })` sends as the provider's
|
|
4
|
+
* structured-output format (Anthropic's `output_config.format`).
|
|
5
|
+
*
|
|
6
|
+
* Pattern: pure transform over plain JSON, run once at build
|
|
7
|
+
* (`AgentBuilder · resolveOutputEnforcement`); no scope, no I/O.
|
|
8
|
+
* Role: core/ agent leaf. Its input is the SAME schema the `'tool-forced'`
|
|
9
|
+
* strategy puts on its synthetic tool (`outputEnforcement.ts ·
|
|
10
|
+
* resolveJsonSchema`: the `jsonSchema` option, else the parser's own
|
|
11
|
+
* `toJsonSchema()`), and the SAME parser judges every answer after —
|
|
12
|
+
* so the wire copy may be looser than the contract, never different
|
|
13
|
+
* from it.
|
|
14
|
+
*
|
|
15
|
+
* THE RULES, from Anthropic's structured-outputs page ("JSON Schema
|
|
16
|
+
* limitations", fetched 2026-10-14 —
|
|
17
|
+
* https://platform.claude.com/docs/en/build-with-claude/structured-outputs),
|
|
18
|
+
* and the shape of the SDK's own transform (`@anthropic-ai/sdk` ·
|
|
19
|
+
* `transformJSONSchema`, which moves what the API does not take into the
|
|
20
|
+
* description):
|
|
21
|
+
* - KEPT: `type`, `properties`, `required`, `items`, `anyOf`, `allOf`,
|
|
22
|
+
* local `$ref` with `$defs` / `definitions`, `enum` and `const` of
|
|
23
|
+
* scalars, `default`, `description`, `title`, the ten supported string
|
|
24
|
+
* `format`s, `minItems` of 0 or 1, and a `pattern` with no backreference,
|
|
25
|
+
* lookaround or word boundary. `oneOf` is sent as `anyOf`.
|
|
26
|
+
* - CLOSED: every object gets `additionalProperties: false` — the only value
|
|
27
|
+
* the API takes.
|
|
28
|
+
* - MOVED INTO THE DESCRIPTION, on the wire copy only: every constraint the
|
|
29
|
+
* API does not take (`minimum`, `maximum`, `multipleOf`, `minLength`,
|
|
30
|
+
* `maxLength`, `minItems` above 1 — sent as 1 —, `maxItems`, an
|
|
31
|
+
* unsupported `format` or `pattern`, …). The model still reads them; the
|
|
32
|
+
* parser still enforces them.
|
|
33
|
+
* - REFUSED BY NAME (`NativeOutputSchemaError`): what the API cannot express
|
|
34
|
+
* — a recursive schema, an external or dangling `$ref` (checked on the
|
|
35
|
+
* source AND on the wire copy, whose renamed paths a reference could
|
|
36
|
+
* miss), an `enum` or `const` holding an object or array, `allOf` beside
|
|
37
|
+
* a `$ref`, a node with no type (an open `unknown` value), and an object
|
|
38
|
+
* with open keys (`additionalProperties` given a schema, `true` or `{}`
|
|
39
|
+
* on an object naming no properties, a bare `{ type: 'object' }`, or
|
|
40
|
+
* `patternProperties`: closing it would make every map empty while the
|
|
41
|
+
* parser accepted it).
|
|
42
|
+
* - DROPPED: the meta keys `$schema`, `$id`, `$comment`, `$anchor`.
|
|
43
|
+
*
|
|
44
|
+
* THE RESERVED `_findings` KEY. With `.findings()` armed, the instruction tells
|
|
45
|
+
* the model it may carry its standings on a JSON answer as a top-level
|
|
46
|
+
* `_findings.previous`. Under `additionalProperties: false` a key the schema
|
|
47
|
+
* does not name cannot be written at all, so the answer standings would stop
|
|
48
|
+
* without a sound. Armed, the root gains the optional `_findings` property
|
|
49
|
+
* the served contract allows (`findings/reserved.ts · findingsAnswerSchema`) —
|
|
50
|
+
* unless the author's schema names its own `_findings`, which wins; a root
|
|
51
|
+
* that is not an object cannot carry it and is refused. Unarmed, the schema
|
|
52
|
+
* is the author's alone.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* nativeOutputFormat(
|
|
56
|
+
* { type: 'object', properties: { n: { type: 'integer', minimum: 1 } }, required: ['n'] },
|
|
57
|
+
* { findings: false },
|
|
58
|
+
* );
|
|
59
|
+
* // { type: 'json_schema', schema: { type: 'object',
|
|
60
|
+
* // properties: { n: { type: 'integer', description: '{minimum: 1}' } },
|
|
61
|
+
* // required: ['n'], additionalProperties: false } }
|
|
62
|
+
*/
|
|
63
|
+
type Json = Readonly<Record<string, unknown>>;
|
|
64
|
+
/** What `LLMRequest.outputFormat` carries. */
|
|
65
|
+
export interface NativeOutputFormat {
|
|
66
|
+
readonly type: 'json_schema';
|
|
67
|
+
readonly schema: Json;
|
|
68
|
+
}
|
|
69
|
+
/** A schema the provider's structured output cannot express, named. */
|
|
70
|
+
export declare class NativeOutputSchemaError extends Error {
|
|
71
|
+
/** JSON-pointer-like path of the node refused (`'#'` is the root). */
|
|
72
|
+
readonly path: string;
|
|
73
|
+
constructor(path: string, reason: string);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The structured-output format for `jsonSchema`, made API-compatible as the
|
|
77
|
+
* file header lists, with the reserved `_findings` property when the findings
|
|
78
|
+
* ledger is armed. Deep-frozen; the input is never edited.
|
|
79
|
+
*
|
|
80
|
+
* @throws NativeOutputSchemaError naming the node the API cannot express.
|
|
81
|
+
*/
|
|
82
|
+
export declare function nativeOutputFormat(jsonSchema: Json, arms: {
|
|
83
|
+
readonly findings: boolean;
|
|
84
|
+
}): NativeOutputFormat;
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=nativeOutputFormat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeOutputFormat.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/nativeOutputFormat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAKH,KAAK,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAE9C,8CAA8C;AAC9C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;CACvB;AAED,uEAAuE;AACvE,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAUzC;AA0SD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,IAAI,EAChB,IAAI,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GACnC,kBAAkB,CA0BpB"}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* after it — there is no trailing sentence for injected text to pre-empt.
|
|
34
34
|
* Identical reasoning, identical shape, to the compaction frame.
|
|
35
35
|
*/
|
|
36
|
-
import type { LLMMessage, LLMResponse, LLMToolSchema } from '../../adapters/types.js';
|
|
36
|
+
import type { LLMMessage, LLMRequest, LLMResponse, LLMToolSchema } from '../../adapters/types.js';
|
|
37
37
|
import { type OutputSchemaParser } from '../outputSchema.js';
|
|
38
38
|
/**
|
|
39
39
|
* One row per final-answer attempt an enforcing agent made, in order.
|
|
@@ -76,7 +76,21 @@ export interface OutputAttempt {
|
|
|
76
76
|
* converge.
|
|
77
77
|
*/
|
|
78
78
|
readonly brokenBy?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Set when the attempt failed because the provider STOPPED, not because the
|
|
81
|
+
* text failed the parser: a `strategy: 'native'` answer that ended with a
|
|
82
|
+
* {@link NativeStopReason}, where the structured-output format does not
|
|
83
|
+
* hold. Such an answer fails even when it parses; a `'refusal'` is never
|
|
84
|
+
* re-asked (the row is `'exhausted'` at once).
|
|
85
|
+
*/
|
|
86
|
+
readonly stopReason?: NativeStopReason;
|
|
79
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* The stops under which a structured-output format does not hold: a refusal,
|
|
90
|
+
* and the two truncations — the answer's own cap (`'max_tokens'`) and the
|
|
91
|
+
* context window (`'model_context_window_exceeded'`).
|
|
92
|
+
*/
|
|
93
|
+
export type NativeStopReason = 'refusal' | 'max_tokens' | 'model_context_window_exceeded';
|
|
80
94
|
/** The scope surface this file needs. Structurally a `TypedScope<AgentState>`. */
|
|
81
95
|
export interface OutputLedgerScope {
|
|
82
96
|
outputAttempts?: readonly OutputAttempt[];
|
|
@@ -97,7 +111,22 @@ export interface OutputFailure {
|
|
|
97
111
|
* friends attach the real error there); fall back to the wrapper's. */
|
|
98
112
|
readonly error: string;
|
|
99
113
|
readonly path?: string;
|
|
114
|
+
/** The provider's stop that failed the attempt — see `OutputAttempt.stopReason`. */
|
|
115
|
+
readonly stopReason?: NativeStopReason;
|
|
100
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Fail a `strategy: 'native'` answer by its stop reason, before the parser.
|
|
119
|
+
*
|
|
120
|
+
* Anthropic's structured-outputs page: on `stop_reason: "refusal"` "the output
|
|
121
|
+
* may not match your schema because the refusal message takes precedence",
|
|
122
|
+
* and on `"max_tokens"` "the output may be incomplete and not match your
|
|
123
|
+
* schema". So the format was not in force for this text, and an answer that
|
|
124
|
+
* happens to parse is still not one the format produced — delivering it as
|
|
125
|
+
* constrained would be a silent pass. Returns `undefined` under any other
|
|
126
|
+
* strategy or stop. The words are the library's own, naming the stop; the
|
|
127
|
+
* failure then takes the ordinary path (retry, or exhausted and unmet).
|
|
128
|
+
*/
|
|
129
|
+
export declare function nativeStopFailure(enforcement: Pick<ResolvedOutputEnforcement, 'outputFormat'>, stopReason: string | undefined): OutputFailure | undefined;
|
|
101
130
|
/**
|
|
102
131
|
* Flatten whatever the parser threw into {@link OutputFailure}.
|
|
103
132
|
*
|
|
@@ -178,6 +207,9 @@ export interface ResolvedOutputEnforcement {
|
|
|
178
207
|
readonly retries: number;
|
|
179
208
|
/** The synthetic tool, pre-built. Present only under `'tool-forced'`. */
|
|
180
209
|
readonly schemaTool?: LLMToolSchema;
|
|
210
|
+
/** The structured-output format, pre-built by `nativeOutputFormat`.
|
|
211
|
+
* Present only under `'native'`. */
|
|
212
|
+
readonly outputFormat?: NonNullable<LLMRequest['outputFormat']>;
|
|
181
213
|
/** True when `.outputFallback()` is configured. The decider carries it so
|
|
182
214
|
* the unmet-contract signal can say that a tier exists which `run()` does
|
|
183
215
|
* not reach — the fallback itself lives at the caller's boundary. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputEnforcement.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/outputEnforcement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"outputEnforcement.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/outputEnforcement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAElG,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAMhF;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IA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C;IAC7C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC;IACpC;yCACqC;IACrC,QAAQ,CAAC,YAAY,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;IAChE;;0EAEsE;IACtE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,gFAAgF;IAChF,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;CAC7C;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,CAAC,OAAO,CAAC,GAClC,aAAa,GAAG,SAAS,CAO3B"}
|
|
@@ -12,5 +12,5 @@ import type { RouteBranch } from './route.js';
|
|
|
12
12
|
* as its result, and a composition mounting the chart took `'final'` for the
|
|
13
13
|
* agent's answer. Routed on, the chart ends with no answer and the verdict in
|
|
14
14
|
* its state (`core/terminalVerdict.ts`). */
|
|
15
|
-
export declare function withAnswerValidation(decide: (scope: TypedScope<AgentState>) => RouteBranch | Promise<RouteBranch>, config: ResolvedAnswerValidation, parser: OutputSchemaParser<unknown> | undefined, store: ArtifactStore | undefined, hasOutstandingConsent: () => boolean): (scope: TypedScope<AgentState>) => Promise<RouteBranch>;
|
|
15
|
+
export declare function withAnswerValidation(decide: (scope: TypedScope<AgentState>) => RouteBranch | Promise<RouteBranch>, config: ResolvedAnswerValidation, parser: OutputSchemaParser<unknown> | undefined, store: ArtifactStore | undefined, hasOutstandingConsent: () => boolean, nativeOutput?: boolean): (scope: TypedScope<AgentState>) => Promise<RouteBranch>;
|
|
16
16
|
//# sourceMappingURL=answerValidation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"answerValidation.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/answerValidation.ts"],"names":[],"mappings":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C,EAC7E,MAAM,EAAE,wBAAwB,EAChC,MAAM,EAAE,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS,EAC/C,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,qBAAqB,EAAE,MAAM,OAAO,EACpC,YAAY,UAAQ,GACnB,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,KAAK,OAAO,CAAC,WAAW,CAAC,CA6DzD"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* built but before the chart actually runs.
|
|
20
20
|
*/
|
|
21
21
|
import type { TypedScope } from 'footprintjs';
|
|
22
|
-
import type { LLMCallHooks, LLMProvider, LLMToolSchema, PricingTable } from '../../../adapters/types.js';
|
|
22
|
+
import type { LLMCallHooks, LLMProvider, LLMRequest, LLMToolSchema, PricingTable } from '../../../adapters/types.js';
|
|
23
23
|
import type { CacheStrategy } from '../../../cache/types.js';
|
|
24
24
|
import { type ExternalGround } from '../../../integrity/unsupported-argument/check.js';
|
|
25
25
|
import type { ReceiptDigests } from '../../../lib/time-travel/receiptDigests.js';
|
|
@@ -243,6 +243,14 @@ export interface CallLLMStageDeps {
|
|
|
243
243
|
* agent's surface.
|
|
244
244
|
*/
|
|
245
245
|
readonly schemaTool?: LLMToolSchema;
|
|
246
|
+
/**
|
|
247
|
+
* The structured-output format the `'native'` output strategy sends
|
|
248
|
+
* (`nativeOutputFormat.ts`). Present ONLY under that strategy: the request
|
|
249
|
+
* carries it as `outputFormat`, this stage refuses a provider manifest that
|
|
250
|
+
* says it did not cross, and it records `llmLatestStopReason` for the Route
|
|
251
|
+
* decider. Absent, not one line of that runs.
|
|
252
|
+
*/
|
|
253
|
+
readonly outputFormat?: NonNullable<LLMRequest['outputFormat']>;
|
|
246
254
|
/** v2.14+ — request-side thinking budget. When set, every LLMRequest
|
|
247
255
|
* carries `thinking: { budget }` so the provider activates extended
|
|
248
256
|
* thinking. Undefined = no activation (default). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callLLM.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/callLLM.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAEV,YAAY,EACZ,WAAW,
|
|
1
|
+
{"version":3,"file":"callLLM.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/callLLM.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAEV,YAAY,EACZ,WAAW,EACX,UAAU,EAEV,aAAa,EACb,YAAY,EACb,MAAM,4BAA4B,CAAC;AASpC,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI1E,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,kDAAkD,CAAC;AAM1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAOpE,OAAO,EAAgB,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAMnF,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAC;AAY9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAuC9C,MAAM,WAAW,gBAAgB;IAC/B,yEAAyE;IACzE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAC7D,kCAAkC;IAClC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,2DAA2D;IA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;;;;OAMG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAC7C;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAC3C;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;CAC1C;AA0CD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,gBAAgB,GACrB,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CA+6BlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputRetry.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/outputRetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,EAIL,KAAK,yBAAyB,EAC/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,yBAAyB,GACrC,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"outputRetry.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/outputRetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,EAIL,KAAK,yBAAyB,EAC/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,yBAAyB,GACrC,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,KAAK,IAAI,CA4EzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAchE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAchE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAIL,KAAK,yBAAyB,EAC/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,6CAA6C,CAAC;AAKrD,OAAO,KAAK,EAAmB,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAIlF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAOnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAMlF,MAAM,MAAM,WAAW,GAC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
|
/** When to enforce: 'enforce' rejects before dispatch (default), 'warn'
|
|
67
67
|
* emits the event but executes anyway, 'off' skips validation entirely. */
|
|
68
68
|
export type ToolArgValidationMode = 'enforce' | 'warn' | 'off';
|
|
69
|
+
/** Finite, value-free transport failure through the existing argument refusal owner. */
|
|
70
|
+
export declare function streamedToolArgIssues(failure: NonNullable<import('../../adapters/types.js').LLMResponse['toolCalls'][number]['argumentsFailure']>): readonly ToolArgIssue[];
|
|
69
71
|
/** One schema violation. `got` is a TYPE NAME (optionally with a measured
|
|
70
72
|
* length), never a value. */
|
|
71
73
|
export interface ToolArgIssue {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolArgsValidation.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/toolArgsValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAEH;4EAC4E;AAC5E,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC;AAE/D;8BAC8B;AAC9B,MAAM,WAAW,YAAY;IAC3B,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;CAC1C;AAiRD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,QAAQ,CAAC,MAAM,CA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AAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;CAC1C;AAiRD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,GACzD,uBAAuB,CAKzB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,EACd,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,GAC5D,uBAAuB,CAKzB;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,MAAM,CAgB7F"}
|
|
@@ -1478,6 +1478,7 @@ export interface AgentState {
|
|
|
1478
1478
|
readonly id: string;
|
|
1479
1479
|
readonly name: string;
|
|
1480
1480
|
readonly args: Readonly<Record<string, unknown>>;
|
|
1481
|
+
readonly argumentsFailure?: import('../../adapters/types.js').LLMResponse['toolCalls'][number]['argumentsFailure'];
|
|
1481
1482
|
readonly providerMeta?: Readonly<Record<string, unknown>>;
|
|
1482
1483
|
}[];
|
|
1483
1484
|
pausedToolCallId: string;
|
|
@@ -1540,6 +1541,9 @@ export interface AgentState {
|
|
|
1540
1541
|
/**
|
|
1541
1542
|
* How the delivered answer's SHAPE was secured (9.100.0) — written by the
|
|
1542
1543
|
* Route decider on the turn it picks `final`, absent before:
|
|
1544
|
+
* - `'native'` — the provider decoded the answer under the output
|
|
1545
|
+
* schema's structured-output format (`output_config.format`), and the
|
|
1546
|
+
* parser then judged it (`.outputSchema(s, { strategy: 'native' })`);
|
|
1543
1547
|
* - `'tool-forced'` — the provider was forced BY NAME to answer through
|
|
1544
1548
|
* the output schema's synthetic tool, so the shape held on the wire
|
|
1545
1549
|
* (`.outputSchema(s, { strategy: 'tool-forced' })`);
|
|
@@ -1547,10 +1551,9 @@ export interface AgentState {
|
|
|
1547
1551
|
* parsed it afterwards (`'instruct'`, the default);
|
|
1548
1552
|
* - `'none'` — no output schema: free text, no shape claimed.
|
|
1549
1553
|
* A guarantee is a fact about how the answer was obtained, distinct from
|
|
1550
|
-
* `answerValidation` (host checks over its content).
|
|
1551
|
-
* constrains its own decoding would add a stronger word when one ships.
|
|
1554
|
+
* `answerValidation` (host checks over its content).
|
|
1552
1555
|
*/
|
|
1553
|
-
answerGuarantee?: 'tool-forced' | 'checked' | 'none';
|
|
1556
|
+
answerGuarantee?: 'native' | 'tool-forced' | 'checked' | 'none';
|
|
1554
1557
|
/** Host-authored checks over the exact terminal answer; absent when disabled. */
|
|
1555
1558
|
answerValidation?: import('../../answer-validation/index.js').AnswerValidationReport;
|
|
1556
1559
|
/** Refusal carrier: prevents final capture, history, memory and token delivery. */
|
|
@@ -1567,6 +1570,8 @@ export interface AgentState {
|
|
|
1567
1570
|
readonly stage: 'json-parse' | 'schema-validate';
|
|
1568
1571
|
readonly error: string;
|
|
1569
1572
|
readonly path?: string;
|
|
1573
|
+
/** `'native'` only: the stop that failed the attempt. */
|
|
1574
|
+
readonly stopReason?: import('./outputEnforcement.js').NativeStopReason;
|
|
1570
1575
|
};
|
|
1571
1576
|
/**
|
|
1572
1577
|
* The answer this run hands back does NOT satisfy the output contract (8.18.0).
|
|
@@ -1599,6 +1604,10 @@ export interface AgentState {
|
|
|
1599
1604
|
/** Set when an `act({ output })` middleware's own rewrite broke an answer
|
|
1600
1605
|
* that HAD satisfied the schema — the name of that middleware. */
|
|
1601
1606
|
readonly brokenBy?: string;
|
|
1607
|
+
/** `strategy: 'native'` only: the provider's stop that failed the last
|
|
1608
|
+
* attempt (`'refusal'`, `'max_tokens'`, `'model_context_window_exceeded'`).
|
|
1609
|
+
* `runTyped()` throws on such an answer even where its text parses. */
|
|
1610
|
+
readonly stopReason?: import('./outputEnforcement.js').NativeStopReason;
|
|
1602
1611
|
};
|
|
1603
1612
|
/** In-flight hand-off from the Route decider (which finds the values and
|
|
1604
1613
|
* picks the branch) to the recheck stage (which writes the correction).
|
|
@@ -2240,6 +2249,14 @@ export interface AgentState {
|
|
|
2240
2249
|
* it; cleared if a later reply supplies none. Travels with the assistant
|
|
2241
2250
|
* turn, including a terminal reply with no thinking blocks. */
|
|
2242
2251
|
llmLatestReplay?: readonly [NonNullable<LLMMessage['replay']>];
|
|
2252
|
+
/**
|
|
2253
|
+
* The latest response's stop reason — written ONLY by an agent with
|
|
2254
|
+
* `.outputSchema(s, { strategy: 'native' })`, on every call, and read by
|
|
2255
|
+
* the Route decider: a refusal or truncation stop does not hold the
|
|
2256
|
+
* structured-output format, so that answer fails its attempt by name
|
|
2257
|
+
* (`outputEnforcement.ts · nativeStopFailure`). Absent on every other agent.
|
|
2258
|
+
*/
|
|
2259
|
+
llmLatestStopReason?: string;
|
|
2243
2260
|
/** Set when the rules-based reliability loop takes the fail-fast path.
|
|
2244
2261
|
* `Agent.run()` reads these from the post-run snapshot and throws a
|
|
2245
2262
|
* typed `ReliabilityFailFastError`. Mirrors `policyHalt*` — because the
|