@exellix/ai-tasks 7.8.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/.env.example +3 -0
- package/.metadata/instructions-builders/create-expected-output-instructions.md +195 -0
- package/.metadata/readme.md +48 -0
- package/.metadata/shared/audit.md +29 -0
- package/.metadata/skills/professional-answer +32 -0
- package/.metadata/skills/professional-answer.compressed.md +11 -0
- package/.metadata/skills/professional-answer.instructions +33 -0
- package/.metadata/skills/professional-answer.instructions.md +33 -0
- package/.metadata/skills/professional-answer.l2.md +28 -0
- package/.metadata/skills/professional-answer.md +32 -0
- package/.metadata/skills/professional-answer.prompt +1 -0
- package/.metadata/skills/professional-answer.prompt.md +1 -0
- package/.metadata/skills/professional-decision.md +26 -0
- package/BREAKING-CHANGES.md +43 -0
- package/CHANGELOG.md +147 -0
- package/README.md +2497 -0
- package/RUNTASK_REQUEST.md +369 -0
- package/dist/activix/activixClient.d.ts +6 -0
- package/dist/activix/activixClient.d.ts.map +1 -0
- package/dist/activix/activixClient.js +131 -0
- package/dist/activix/activixClient.js.map +1 -0
- package/dist/activix/getTaskActivities.d.ts +10 -0
- package/dist/activix/getTaskActivities.d.ts.map +1 -0
- package/dist/activix/getTaskActivities.js +17 -0
- package/dist/activix/getTaskActivities.js.map +1 -0
- package/dist/activix/phaseTracking.d.ts +17 -0
- package/dist/activix/phaseTracking.d.ts.map +1 -0
- package/dist/activix/phaseTracking.js +85 -0
- package/dist/activix/phaseTracking.js.map +1 -0
- package/dist/aiScoping/index.d.ts +6 -0
- package/dist/aiScoping/index.d.ts.map +1 -0
- package/dist/aiScoping/index.js +4 -0
- package/dist/aiScoping/index.js.map +1 -0
- package/dist/aiScoping/runAiScoping.d.ts +36 -0
- package/dist/aiScoping/runAiScoping.d.ts.map +1 -0
- package/dist/aiScoping/runAiScoping.js +100 -0
- package/dist/aiScoping/runAiScoping.js.map +1 -0
- package/dist/aiScoping/runScopingCall.d.ts +23 -0
- package/dist/aiScoping/runScopingCall.d.ts.map +1 -0
- package/dist/aiScoping/runScopingCall.js +50 -0
- package/dist/aiScoping/runScopingCall.js.map +1 -0
- package/dist/aiScoping/validateAiScoping.d.ts +7 -0
- package/dist/aiScoping/validateAiScoping.d.ts.map +1 -0
- package/dist/aiScoping/validateAiScoping.js +33 -0
- package/dist/aiScoping/validateAiScoping.js.map +1 -0
- package/dist/aiSkillsUpstreamExports.d.ts +13 -0
- package/dist/aiSkillsUpstreamExports.d.ts.map +1 -0
- package/dist/aiSkillsUpstreamExports.js +12 -0
- package/dist/aiSkillsUpstreamExports.js.map +1 -0
- package/dist/analysis/analyzeRunTaskRequest.d.ts +29 -0
- package/dist/analysis/analyzeRunTaskRequest.d.ts.map +1 -0
- package/dist/analysis/analyzeRunTaskRequest.js +85 -0
- package/dist/analysis/analyzeRunTaskRequest.js.map +1 -0
- package/dist/analysis/index.d.ts +3 -0
- package/dist/analysis/index.d.ts.map +1 -0
- package/dist/analysis/index.js +2 -0
- package/dist/analysis/index.js.map +1 -0
- package/dist/builders/task-request-builder.d.ts +310 -0
- package/dist/builders/task-request-builder.d.ts.map +1 -0
- package/dist/builders/task-request-builder.js +581 -0
- package/dist/builders/task-request-builder.js.map +1 -0
- package/dist/compile/compileTaskConfiguration.d.ts +15 -0
- package/dist/compile/compileTaskConfiguration.d.ts.map +1 -0
- package/dist/compile/compileTaskConfiguration.js +184 -0
- package/dist/compile/compileTaskConfiguration.js.map +1 -0
- package/dist/compile/index.d.ts +2 -0
- package/dist/compile/index.d.ts.map +1 -0
- package/dist/compile/index.js +2 -0
- package/dist/compile/index.js.map +1 -0
- package/dist/core/task-sdk.d.ts +36 -0
- package/dist/core/task-sdk.d.ts.map +1 -0
- package/dist/core/task-sdk.js +2432 -0
- package/dist/core/task-sdk.js.map +1 -0
- package/dist/errors/smartInputValidationError.d.ts +39 -0
- package/dist/errors/smartInputValidationError.d.ts.map +1 -0
- package/dist/errors/smartInputValidationError.js +97 -0
- package/dist/errors/smartInputValidationError.js.map +1 -0
- package/dist/errors/taskConfigurationCompileError.d.ts +16 -0
- package/dist/errors/taskConfigurationCompileError.d.ts.map +1 -0
- package/dist/errors/taskConfigurationCompileError.js +20 -0
- package/dist/errors/taskConfigurationCompileError.js.map +1 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.d.ts +17 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.d.ts.map +1 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.js +63 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.js.map +1 -0
- package/dist/execution-strategies/constants.d.ts +14 -0
- package/dist/execution-strategies/constants.d.ts.map +1 -0
- package/dist/execution-strategies/constants.js +13 -0
- package/dist/execution-strategies/constants.js.map +1 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.d.ts +9 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.d.ts.map +1 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.js +37 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.js.map +1 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.d.ts +94 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.d.ts.map +1 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.js +306 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.js.map +1 -0
- package/dist/execution-strategies/resolveExecutionStrategies.d.ts +14 -0
- package/dist/execution-strategies/resolveExecutionStrategies.d.ts.map +1 -0
- package/dist/execution-strategies/resolveExecutionStrategies.js +108 -0
- package/dist/execution-strategies/resolveExecutionStrategies.js.map +1 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.d.ts +37 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.d.ts.map +1 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.js +72 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.js.map +1 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/resolveLlmCallForXynthesis.d.ts +52 -0
- package/dist/internal/resolveLlmCallForXynthesis.d.ts.map +1 -0
- package/dist/internal/resolveLlmCallForXynthesis.js +81 -0
- package/dist/internal/resolveLlmCallForXynthesis.js.map +1 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.d.ts +19 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.d.ts.map +1 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.js +52 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.js.map +1 -0
- package/dist/internal/runPostStepLlmCall.d.ts +52 -0
- package/dist/internal/runPostStepLlmCall.d.ts.map +1 -0
- package/dist/internal/runPostStepLlmCall.js +170 -0
- package/dist/internal/runPostStepLlmCall.js.map +1 -0
- package/dist/localTasks/collectEvidence.d.ts +3 -0
- package/dist/localTasks/collectEvidence.d.ts.map +1 -0
- package/dist/localTasks/collectEvidence.js +364 -0
- package/dist/localTasks/collectEvidence.js.map +1 -0
- package/dist/localTasks/decideWebScope.d.ts +3 -0
- package/dist/localTasks/decideWebScope.d.ts.map +1 -0
- package/dist/localTasks/decideWebScope.js +56 -0
- package/dist/localTasks/decideWebScope.js.map +1 -0
- package/dist/localTasks/index.d.ts +5 -0
- package/dist/localTasks/index.d.ts.map +1 -0
- package/dist/localTasks/index.js +19 -0
- package/dist/localTasks/index.js.map +1 -0
- package/dist/localTasks/narrixAssetPlayground.d.ts +13 -0
- package/dist/localTasks/narrixAssetPlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixAssetPlayground.js +161 -0
- package/dist/localTasks/narrixAssetPlayground.js.map +1 -0
- package/dist/localTasks/narrixSubnetPlayground.d.ts +14 -0
- package/dist/localTasks/narrixSubnetPlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixSubnetPlayground.js +168 -0
- package/dist/localTasks/narrixSubnetPlayground.js.map +1 -0
- package/dist/localTasks/narrixVulnGroupPlayground.d.ts +13 -0
- package/dist/localTasks/narrixVulnGroupPlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixVulnGroupPlayground.js +161 -0
- package/dist/localTasks/narrixVulnGroupPlayground.js.map +1 -0
- package/dist/localTasks/narrixVulnInstancePlayground.d.ts +13 -0
- package/dist/localTasks/narrixVulnInstancePlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixVulnInstancePlayground.js +165 -0
- package/dist/localTasks/narrixVulnInstancePlayground.js.map +1 -0
- package/dist/localTasks/nodeCallExport.d.ts +6 -0
- package/dist/localTasks/nodeCallExport.d.ts.map +1 -0
- package/dist/localTasks/nodeCallExport.js +99 -0
- package/dist/localTasks/nodeCallExport.js.map +1 -0
- package/dist/localTasks/nodeCallExportBatch.d.ts +3 -0
- package/dist/localTasks/nodeCallExportBatch.d.ts.map +1 -0
- package/dist/localTasks/nodeCallExportBatch.js +52 -0
- package/dist/localTasks/nodeCallExportBatch.js.map +1 -0
- package/dist/localTasks/normalizeNarrixResult.d.ts +3 -0
- package/dist/localTasks/normalizeNarrixResult.d.ts.map +1 -0
- package/dist/localTasks/normalizeNarrixResult.js +106 -0
- package/dist/localTasks/normalizeNarrixResult.js.map +1 -0
- package/dist/localTasks/registry.d.ts +4 -0
- package/dist/localTasks/registry.d.ts.map +1 -0
- package/dist/localTasks/registry.js +8 -0
- package/dist/localTasks/registry.js.map +1 -0
- package/dist/localTasks/types.d.ts +28 -0
- package/dist/localTasks/types.d.ts.map +1 -0
- package/dist/localTasks/types.js +2 -0
- package/dist/localTasks/types.js.map +1 -0
- package/dist/localTasks/validateInput.d.ts +3 -0
- package/dist/localTasks/validateInput.d.ts.map +1 -0
- package/dist/localTasks/validateInput.js +66 -0
- package/dist/localTasks/validateInput.js.map +1 -0
- package/dist/methods/convenience-methods.d.ts +45 -0
- package/dist/methods/convenience-methods.d.ts.map +1 -0
- package/dist/methods/convenience-methods.js +39 -0
- package/dist/methods/convenience-methods.js.map +1 -0
- package/dist/narrix/applyNarrixScope.d.ts +10 -0
- package/dist/narrix/applyNarrixScope.d.ts.map +1 -0
- package/dist/narrix/applyNarrixScope.js +69 -0
- package/dist/narrix/applyNarrixScope.js.map +1 -0
- package/dist/narrix/buildNarrixAttachment.d.ts +9 -0
- package/dist/narrix/buildNarrixAttachment.d.ts.map +1 -0
- package/dist/narrix/buildNarrixAttachment.js +29 -0
- package/dist/narrix/buildNarrixAttachment.js.map +1 -0
- package/dist/narrix/buildWebScopeScopeInput.d.ts +39 -0
- package/dist/narrix/buildWebScopeScopeInput.d.ts.map +1 -0
- package/dist/narrix/buildWebScopeScopeInput.js +193 -0
- package/dist/narrix/buildWebScopeScopeInput.js.map +1 -0
- package/dist/narrix/flags.d.ts +4 -0
- package/dist/narrix/flags.d.ts.map +1 -0
- package/dist/narrix/flags.js +4 -0
- package/dist/narrix/flags.js.map +1 -0
- package/dist/narrix/index.d.ts +11 -0
- package/dist/narrix/index.d.ts.map +1 -0
- package/dist/narrix/index.js +14 -0
- package/dist/narrix/index.js.map +1 -0
- package/dist/narrix/narrixClient.d.ts +9 -0
- package/dist/narrix/narrixClient.d.ts.map +1 -0
- package/dist/narrix/narrixClient.js +46 -0
- package/dist/narrix/narrixClient.js.map +1 -0
- package/dist/narrix/narrixContextMarkdown.d.ts +15 -0
- package/dist/narrix/narrixContextMarkdown.d.ts.map +1 -0
- package/dist/narrix/narrixContextMarkdown.js +98 -0
- package/dist/narrix/narrixContextMarkdown.js.map +1 -0
- package/dist/narrix/narrixRunnerModule.d.ts +11 -0
- package/dist/narrix/narrixRunnerModule.d.ts.map +1 -0
- package/dist/narrix/narrixRunnerModule.js +17 -0
- package/dist/narrix/narrixRunnerModule.js.map +1 -0
- package/dist/narrix/runNarrixForChat.d.ts +3 -0
- package/dist/narrix/runNarrixForChat.d.ts.map +1 -0
- package/dist/narrix/runNarrixForChat.js +51 -0
- package/dist/narrix/runNarrixForChat.js.map +1 -0
- package/dist/narrix/runNarrixForDocs.d.ts +3 -0
- package/dist/narrix/runNarrixForDocs.d.ts.map +1 -0
- package/dist/narrix/runNarrixForDocs.js +50 -0
- package/dist/narrix/runNarrixForDocs.js.map +1 -0
- package/dist/narrix/runNarrixForRecord.d.ts +3 -0
- package/dist/narrix/runNarrixForRecord.d.ts.map +1 -0
- package/dist/narrix/runNarrixForRecord.js +47 -0
- package/dist/narrix/runNarrixForRecord.js.map +1 -0
- package/dist/narrix/runNarrixForText.d.ts +3 -0
- package/dist/narrix/runNarrixForText.d.ts.map +1 -0
- package/dist/narrix/runNarrixForText.js +49 -0
- package/dist/narrix/runNarrixForText.js.map +1 -0
- package/dist/narrix/runnerDispatch.d.ts +12 -0
- package/dist/narrix/runnerDispatch.d.ts.map +1 -0
- package/dist/narrix/runnerDispatch.js +19 -0
- package/dist/narrix/runnerDispatch.js.map +1 -0
- package/dist/narrix/seedBundleRouting.d.ts +15 -0
- package/dist/narrix/seedBundleRouting.d.ts.map +1 -0
- package/dist/narrix/seedBundleRouting.js +46 -0
- package/dist/narrix/seedBundleRouting.js.map +1 -0
- package/dist/narrix/task.d.ts +4 -0
- package/dist/narrix/task.d.ts.map +1 -0
- package/dist/narrix/task.js +143 -0
- package/dist/narrix/task.js.map +1 -0
- package/dist/narrix/types.d.ts +104 -0
- package/dist/narrix/types.d.ts.map +1 -0
- package/dist/narrix/types.js +3 -0
- package/dist/narrix/types.js.map +1 -0
- package/dist/narrix/webContextMarkdown.d.ts +54 -0
- package/dist/narrix/webContextMarkdown.d.ts.map +1 -0
- package/dist/narrix/webContextMarkdown.js +206 -0
- package/dist/narrix/webContextMarkdown.js.map +1 -0
- package/dist/narrix/webScoper.d.ts +43 -0
- package/dist/narrix/webScoper.d.ts.map +1 -0
- package/dist/narrix/webScoper.js +144 -0
- package/dist/narrix/webScoper.js.map +1 -0
- package/dist/observability/debugTrace.d.ts +31 -0
- package/dist/observability/debugTrace.d.ts.map +1 -0
- package/dist/observability/debugTrace.js +117 -0
- package/dist/observability/debugTrace.js.map +1 -0
- package/dist/observability/extractAiTasksObservability.d.ts +7 -0
- package/dist/observability/extractAiTasksObservability.d.ts.map +1 -0
- package/dist/observability/extractAiTasksObservability.js +98 -0
- package/dist/observability/extractAiTasksObservability.js.map +1 -0
- package/dist/observability/graphExecutionRunLogContract.d.ts +19 -0
- package/dist/observability/graphExecutionRunLogContract.d.ts.map +1 -0
- package/dist/observability/graphExecutionRunLogContract.js +11 -0
- package/dist/observability/graphExecutionRunLogContract.js.map +1 -0
- package/dist/packaged-tasks-client.d.ts +66 -0
- package/dist/packaged-tasks-client.d.ts.map +1 -0
- package/dist/packaged-tasks-client.js +100 -0
- package/dist/packaged-tasks-client.js.map +1 -0
- package/dist/planWebScopeQuestions/index.d.ts +78 -0
- package/dist/planWebScopeQuestions/index.d.ts.map +1 -0
- package/dist/planWebScopeQuestions/index.js +282 -0
- package/dist/planWebScopeQuestions/index.js.map +1 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.d.ts +18 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.d.ts.map +1 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.js +42 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.js.map +1 -0
- package/dist/post-steps/audit/loadAuditTemplates.d.ts +72 -0
- package/dist/post-steps/audit/loadAuditTemplates.d.ts.map +1 -0
- package/dist/post-steps/audit/loadAuditTemplates.js +62 -0
- package/dist/post-steps/audit/loadAuditTemplates.js.map +1 -0
- package/dist/post-steps/audit/parseAuditOutput.d.ts +11 -0
- package/dist/post-steps/audit/parseAuditOutput.d.ts.map +1 -0
- package/dist/post-steps/audit/parseAuditOutput.js +50 -0
- package/dist/post-steps/audit/parseAuditOutput.js.map +1 -0
- package/dist/post-steps/audit/runAudit.d.ts +22 -0
- package/dist/post-steps/audit/runAudit.d.ts.map +1 -0
- package/dist/post-steps/audit/runAudit.js +406 -0
- package/dist/post-steps/audit/runAudit.js.map +1 -0
- package/dist/post-steps/audit/runAuditCall.d.ts +23 -0
- package/dist/post-steps/audit/runAuditCall.d.ts.map +1 -0
- package/dist/post-steps/audit/runAuditCall.js +32 -0
- package/dist/post-steps/audit/runAuditCall.js.map +1 -0
- package/dist/post-steps/polish/loadPolishTemplates.d.ts +35 -0
- package/dist/post-steps/polish/loadPolishTemplates.d.ts.map +1 -0
- package/dist/post-steps/polish/loadPolishTemplates.js +38 -0
- package/dist/post-steps/polish/loadPolishTemplates.js.map +1 -0
- package/dist/post-steps/polish/parsePolishOutput.d.ts +6 -0
- package/dist/post-steps/polish/parsePolishOutput.d.ts.map +1 -0
- package/dist/post-steps/polish/parsePolishOutput.js +47 -0
- package/dist/post-steps/polish/parsePolishOutput.js.map +1 -0
- package/dist/post-steps/polish/runPolish.d.ts +24 -0
- package/dist/post-steps/polish/runPolish.d.ts.map +1 -0
- package/dist/post-steps/polish/runPolish.js +147 -0
- package/dist/post-steps/polish/runPolish.js.map +1 -0
- package/dist/post-steps/polish/runPolishCall.d.ts +22 -0
- package/dist/post-steps/polish/runPolishCall.d.ts.map +1 -0
- package/dist/post-steps/polish/runPolishCall.js +32 -0
- package/dist/post-steps/polish/runPolishCall.js.map +1 -0
- package/dist/post-steps/resolvePostStepConfig.d.ts +58 -0
- package/dist/post-steps/resolvePostStepConfig.d.ts.map +1 -0
- package/dist/post-steps/resolvePostStepConfig.js +105 -0
- package/dist/post-steps/resolvePostStepConfig.js.map +1 -0
- package/dist/rendrixUpstreamExports.d.ts +7 -0
- package/dist/rendrixUpstreamExports.d.ts.map +1 -0
- package/dist/rendrixUpstreamExports.js +6 -0
- package/dist/rendrixUpstreamExports.js.map +1 -0
- package/dist/skillCatalogExports.d.ts +8 -0
- package/dist/skillCatalogExports.d.ts.map +1 -0
- package/dist/skillCatalogExports.js +8 -0
- package/dist/skillCatalogExports.js.map +1 -0
- package/dist/strategies/direct-execution-strategy.d.ts +31 -0
- package/dist/strategies/direct-execution-strategy.d.ts.map +1 -0
- package/dist/strategies/direct-execution-strategy.js +107 -0
- package/dist/strategies/direct-execution-strategy.js.map +1 -0
- package/dist/strategies/execution-strategy.interface.d.ts +31 -0
- package/dist/strategies/execution-strategy.interface.d.ts.map +1 -0
- package/dist/strategies/execution-strategy.interface.js +2 -0
- package/dist/strategies/execution-strategy.interface.js.map +1 -0
- package/dist/strategies/index.d.ts +9 -0
- package/dist/strategies/index.d.ts.map +1 -0
- package/dist/strategies/index.js +8 -0
- package/dist/strategies/index.js.map +1 -0
- package/dist/strategies/strategy-factory.d.ts +45 -0
- package/dist/strategies/strategy-factory.d.ts.map +1 -0
- package/dist/strategies/strategy-factory.js +59 -0
- package/dist/strategies/strategy-factory.js.map +1 -0
- package/dist/synthesis/index.d.ts +9 -0
- package/dist/synthesis/index.d.ts.map +1 -0
- package/dist/synthesis/index.js +8 -0
- package/dist/synthesis/index.js.map +1 -0
- package/dist/synthesis/resolveSourceMaterial.d.ts +35 -0
- package/dist/synthesis/resolveSourceMaterial.d.ts.map +1 -0
- package/dist/synthesis/resolveSourceMaterial.js +152 -0
- package/dist/synthesis/resolveSourceMaterial.js.map +1 -0
- package/dist/synthesis/runStructuredSynthesisRobust.d.ts +42 -0
- package/dist/synthesis/runStructuredSynthesisRobust.d.ts.map +1 -0
- package/dist/synthesis/runStructuredSynthesisRobust.js +303 -0
- package/dist/synthesis/runStructuredSynthesisRobust.js.map +1 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts +19 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts.map +1 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js +242 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js.map +1 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts +171 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts.map +1 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.js +117 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.js.map +1 -0
- package/dist/task-strategies/canonicalNarrixModes.d.ts +31 -0
- package/dist/task-strategies/canonicalNarrixModes.d.ts.map +1 -0
- package/dist/task-strategies/canonicalNarrixModes.js +35 -0
- package/dist/task-strategies/canonicalNarrixModes.js.map +1 -0
- package/dist/task-strategies/canonicalTaskStrategies.d.ts +104 -0
- package/dist/task-strategies/canonicalTaskStrategies.d.ts.map +1 -0
- package/dist/task-strategies/canonicalTaskStrategies.js +77 -0
- package/dist/task-strategies/canonicalTaskStrategies.js.map +1 -0
- package/dist/task-strategies/cataloxCatalogViews.d.ts +55 -0
- package/dist/task-strategies/cataloxCatalogViews.d.ts.map +1 -0
- package/dist/task-strategies/cataloxCatalogViews.js +65 -0
- package/dist/task-strategies/cataloxCatalogViews.js.map +1 -0
- package/dist/task-strategies/constants.d.ts +49 -0
- package/dist/task-strategies/constants.d.ts.map +1 -0
- package/dist/task-strategies/constants.js +49 -0
- package/dist/task-strategies/constants.js.map +1 -0
- package/dist/task-strategies/index.d.ts +22 -0
- package/dist/task-strategies/index.d.ts.map +1 -0
- package/dist/task-strategies/index.js +13 -0
- package/dist/task-strategies/index.js.map +1 -0
- package/dist/task-strategies/listAiTaskStrategies.d.ts +43 -0
- package/dist/task-strategies/listAiTaskStrategies.d.ts.map +1 -0
- package/dist/task-strategies/listAiTaskStrategies.js +74 -0
- package/dist/task-strategies/listAiTaskStrategies.js.map +1 -0
- package/dist/task-strategies/normalize.d.ts +7 -0
- package/dist/task-strategies/normalize.d.ts.map +1 -0
- package/dist/task-strategies/normalize.js +44 -0
- package/dist/task-strategies/normalize.js.map +1 -0
- package/dist/task-strategies/types.d.ts +37 -0
- package/dist/task-strategies/types.d.ts.map +1 -0
- package/dist/task-strategies/types.js +2 -0
- package/dist/task-strategies/types.js.map +1 -0
- package/dist/types/decision-contracts.d.ts +31 -0
- package/dist/types/decision-contracts.d.ts.map +1 -0
- package/dist/types/decision-contracts.js +23 -0
- package/dist/types/decision-contracts.js.map +1 -0
- package/dist/types/evidence-types.d.ts +108 -0
- package/dist/types/evidence-types.d.ts.map +1 -0
- package/dist/types/evidence-types.js +9 -0
- package/dist/types/evidence-types.js.map +1 -0
- package/dist/types/executionType.d.ts +9 -0
- package/dist/types/executionType.d.ts.map +1 -0
- package/dist/types/executionType.js +8 -0
- package/dist/types/executionType.js.map +1 -0
- package/dist/types/index.d.ts +28 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +12 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/llmCall.d.ts +121 -0
- package/dist/types/llmCall.d.ts.map +1 -0
- package/dist/types/llmCall.js +39 -0
- package/dist/types/llmCall.js.map +1 -0
- package/dist/types/task-configuration.d.ts +60 -0
- package/dist/types/task-configuration.d.ts.map +1 -0
- package/dist/types/task-configuration.js +3 -0
- package/dist/types/task-configuration.js.map +1 -0
- package/dist/types/task-types.d.ts +887 -0
- package/dist/types/task-types.d.ts.map +1 -0
- package/dist/types/task-types.js +21 -0
- package/dist/types/task-types.js.map +1 -0
- package/dist/utilities/runUtility.d.ts +3 -0
- package/dist/utilities/runUtility.d.ts.map +1 -0
- package/dist/utilities/runUtility.js +204 -0
- package/dist/utilities/runUtility.js.map +1 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.d.ts +7 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.d.ts.map +1 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.js +17 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.js.map +1 -0
- package/dist/utils/assertValidSmartInputConfig.d.ts +5 -0
- package/dist/utils/assertValidSmartInputConfig.d.ts.map +1 -0
- package/dist/utils/assertValidSmartInputConfig.js +71 -0
- package/dist/utils/assertValidSmartInputConfig.js.map +1 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.d.ts +13 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.d.ts.map +1 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.js +65 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.js.map +1 -0
- package/dist/utils/extractSmartInputRenderResult.d.ts +7 -0
- package/dist/utils/extractSmartInputRenderResult.d.ts.map +1 -0
- package/dist/utils/extractSmartInputRenderResult.js +30 -0
- package/dist/utils/extractSmartInputRenderResult.js.map +1 -0
- package/dist/utils/jsonPaths.d.ts +6 -0
- package/dist/utils/jsonPaths.d.ts.map +1 -0
- package/dist/utils/jsonPaths.js +32 -0
- package/dist/utils/jsonPaths.js.map +1 -0
- package/dist/utils/normalizeSmartInputConfig.d.ts +5 -0
- package/dist/utils/normalizeSmartInputConfig.d.ts.map +1 -0
- package/dist/utils/normalizeSmartInputConfig.js +30 -0
- package/dist/utils/normalizeSmartInputConfig.js.map +1 -0
- package/dist/utils/outputValidation.d.ts +19 -0
- package/dist/utils/outputValidation.d.ts.map +1 -0
- package/dist/utils/outputValidation.js +75 -0
- package/dist/utils/outputValidation.js.map +1 -0
- package/dist/utils/runTaskRequestShape.d.ts +16 -0
- package/dist/utils/runTaskRequestShape.d.ts.map +1 -0
- package/dist/utils/runTaskRequestShape.js +80 -0
- package/dist/utils/runTaskRequestShape.js.map +1 -0
- package/dist/utils/skillTemplateVariables.d.ts +20 -0
- package/dist/utils/skillTemplateVariables.d.ts.map +1 -0
- package/dist/utils/skillTemplateVariables.js +63 -0
- package/dist/utils/skillTemplateVariables.js.map +1 -0
- package/dist/utils/xynthesizedSmartInputPaths.d.ts +16 -0
- package/dist/utils/xynthesizedSmartInputPaths.d.ts.map +1 -0
- package/dist/utils/xynthesizedSmartInputPaths.js +56 -0
- package/dist/utils/xynthesizedSmartInputPaths.js.map +1 -0
- package/dist/utils/xynthesizedWrite.d.ts +10 -0
- package/dist/utils/xynthesizedWrite.d.ts.map +1 -0
- package/dist/utils/xynthesizedWrite.js +61 -0
- package/dist/utils/xynthesizedWrite.js.map +1 -0
- package/dist/validation/analyzeExpectedRunTaskInput.d.ts +41 -0
- package/dist/validation/analyzeExpectedRunTaskInput.d.ts.map +1 -0
- package/dist/validation/analyzeExpectedRunTaskInput.js +133 -0
- package/dist/validation/analyzeExpectedRunTaskInput.js.map +1 -0
- package/dist/validation/collectSmartInputValidationIssues.d.ts +6 -0
- package/dist/validation/collectSmartInputValidationIssues.d.ts.map +1 -0
- package/dist/validation/collectSmartInputValidationIssues.js +38 -0
- package/dist/validation/collectSmartInputValidationIssues.js.map +1 -0
- package/dist/validation/helpers.d.ts +15 -0
- package/dist/validation/helpers.d.ts.map +1 -0
- package/dist/validation/helpers.js +184 -0
- package/dist/validation/helpers.js.map +1 -0
- package/dist/validation/index.d.ts +9 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +6 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/types.d.ts +51 -0
- package/dist/validation/types.d.ts.map +1 -0
- package/dist/validation/types.js +5 -0
- package/dist/validation/types.js.map +1 -0
- package/dist/validation/validateRunTaskConfig.d.ts +8 -0
- package/dist/validation/validateRunTaskConfig.d.ts.map +1 -0
- package/dist/validation/validateRunTaskConfig.js +158 -0
- package/dist/validation/validateRunTaskConfig.js.map +1 -0
- package/dist/validation/validateRunTaskInvoke.d.ts +30 -0
- package/dist/validation/validateRunTaskInvoke.d.ts.map +1 -0
- package/dist/validation/validateRunTaskInvoke.js +108 -0
- package/dist/validation/validateRunTaskInvoke.js.map +1 -0
- package/documenations/activix-feature-request-identity.md +123 -0
- package/documenations/activix.md +175 -0
- package/documenations/bug-report-xynthesis-and-synthesis-call.md +217 -0
- package/documenations/core-runtime-tokens-and-strategies.md +123 -0
- package/documenations/downstream-environment.md +48 -0
- package/documenations/downstream-test-runtime-teardown-cleanup.md +73 -0
- package/documenations/examples/xynthesis-run-task-request.example.json +170 -0
- package/documenations/feature-request-ai-skills-raw-template-access.md +82 -0
- package/documenations/feature-request-athenix-core-directive.md +145 -0
- package/documenations/feature-request-athenix-token-extraction.md +124 -0
- package/documenations/funcx-catalog-hosting-checklist.md +107 -0
- package/documenations/funcx-scoping-integration-gaps.md +120 -0
- package/documenations/funcx-upstream-github-issues-draft.md +153 -0
- package/documenations/identity-metadata-contract.md +165 -0
- package/documenations/intermediate-steps.md +33 -0
- package/documenations/record-and-template-variables.md +32 -0
- package/documenations/run-task-execution-flow.md +153 -0
- package/documenations/run-task-single-run-checklist.md +109 -0
- package/documenations/schemas/README.md +40 -0
- package/documenations/schemas/openapi-3.1-components.yaml +24 -0
- package/documenations/schemas/v1/output-schema.json +55 -0
- package/documenations/schemas/v1/output-validation-result.json +41 -0
- package/documenations/schemas/v1/run-task-request.json +219 -0
- package/documenations/schemas/v1/synthesized-artifacts.json +133 -0
- package/documenations/synthesis-invocation-notes.md +26 -0
- package/documenations/synthesized-context-guide.md +84 -0
- package/documenations/task-core-and-core-aware-synthesis.md +58 -0
- package/documenations/upstream-feature-requests/ai-skills-llm-observability.md +129 -0
- package/documenations/upstream-feature-requests/xynthesis-llm-observability.md +125 -0
- package/documenations/upstream-feedback-request-shape-clarification.md +101 -0
- package/documenations/web-context-precedence.md +33 -0
- package/documenations/web-scoping-in-ai-tasks.md +503 -0
- package/documenations/xynthesis-activix-telemetry.md +28 -0
- package/documenations/xynthesis-upstream-fixes-checklist.md +71 -0
- package/package.json +92 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import type { RunTaskRequest, ModelConfig, AIScopingInstruction, ExecutionStep, SynthesisConfig, SynthesisMode, AuditConfig, PolishConfig, TemplateRenderOptions, GatewayTemplateTokens, LlmCallConfig, ExecutionStrategyInvocation, SmartInputRenderOptions, RunTaskSmartInput, XynthesizedMemory } from "../types/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Builder for constructing task requests.
|
|
4
|
+
*
|
|
5
|
+
* Provides a fluent API for building task requests with proper defaults
|
|
6
|
+
* and validation. This makes it easier to construct complex requests
|
|
7
|
+
* and ensures consistency across the SDK.
|
|
8
|
+
*/
|
|
9
|
+
export declare class TaskRequestBuilder {
|
|
10
|
+
private request;
|
|
11
|
+
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Set the skill key to execute.
|
|
14
|
+
*
|
|
15
|
+
* @param skillKey The skill key (e.g., "skills/professional-answer")
|
|
16
|
+
* @returns The builder instance for chaining
|
|
17
|
+
*/
|
|
18
|
+
withSkillKey(skillKey: string): this;
|
|
19
|
+
/**
|
|
20
|
+
* Required `@exellix/ai-skills` correlation ids (agent, job type, task type). Must be set before `build()`.
|
|
21
|
+
*/
|
|
22
|
+
withAiSkillsCorrelation(agentId: string, jobTypeId: string, taskTypeId: string): this;
|
|
23
|
+
/**
|
|
24
|
+
* Set the input data.
|
|
25
|
+
*
|
|
26
|
+
* @param input The input data (object or string)
|
|
27
|
+
* @returns The builder instance for chaining
|
|
28
|
+
*/
|
|
29
|
+
withInput(input: Record<string, any> | string): this;
|
|
30
|
+
/**
|
|
31
|
+
* Set AI scoping instructions (optional). When present, internal AI calls scope memory content into input.aiScoped before the main task runs.
|
|
32
|
+
*
|
|
33
|
+
* @param instructions Array of { source, instructions, targetToken }
|
|
34
|
+
* @returns The builder instance for chaining
|
|
35
|
+
*/
|
|
36
|
+
withAiScoping(instructions: AIScopingInstruction[]): this;
|
|
37
|
+
/**
|
|
38
|
+
* Set the execution pipeline (pre → main → post steps).
|
|
39
|
+
*
|
|
40
|
+
* @param steps Array of { phase, type, config? }
|
|
41
|
+
* @returns The builder instance for chaining
|
|
42
|
+
*/
|
|
43
|
+
withExecutionPipeline(steps: ExecutionStep[]): this;
|
|
44
|
+
/**
|
|
45
|
+
* MAIN wrappers (`RunTaskRequest.executionStrategies`): required at runtime; defaults to `[]` in `build()` when unset.
|
|
46
|
+
*/
|
|
47
|
+
withExecutionStrategies(executionStrategies: ExecutionStrategyInvocation[]): this;
|
|
48
|
+
/**
|
|
49
|
+
* Add a synthesized-context PRE step before the main task. A weak model synthesizes context from narrix/memory;
|
|
50
|
+
* the main task then runs with that as context. Sets includeContextInPrompt to true.
|
|
51
|
+
* If no pipeline is set yet, defaults to [main: direct] and inserts this pre step.
|
|
52
|
+
*
|
|
53
|
+
* @param modelOrConfig Optional model name (e.g. "gpt-5-nano") or full SynthesisConfig
|
|
54
|
+
* @returns The builder instance for chaining
|
|
55
|
+
*/
|
|
56
|
+
withSynthesizedContextPreStep(modelOrConfig?: string | SynthesisConfig): this;
|
|
57
|
+
/**
|
|
58
|
+
* Set synthesis mode on existing synthesized-context PRE step configs.
|
|
59
|
+
*/
|
|
60
|
+
withSynthesisMode(synthesisMode: SynthesisMode): this;
|
|
61
|
+
/**
|
|
62
|
+
* Add an audit POST step. Quality-gate loop with re-runs and optional synthesis.
|
|
63
|
+
* Ensures executionPipeline exists with a MAIN "direct" step, then appends the audit step.
|
|
64
|
+
*
|
|
65
|
+
* @param config AuditConfig (gateway.must, gateway.should, threshold, maxCycles, etc.)
|
|
66
|
+
* @returns The builder instance for chaining
|
|
67
|
+
*/
|
|
68
|
+
withAuditPostStep(config: AuditConfig): this;
|
|
69
|
+
/**
|
|
70
|
+
* Add a polish POST step. Refinement pass against a prioritized checklist.
|
|
71
|
+
* Ensures executionPipeline exists with a MAIN "direct" step, then appends the polish step.
|
|
72
|
+
*
|
|
73
|
+
* @param config PolishConfig (checklist, maxPasses, etc.)
|
|
74
|
+
* @returns The builder instance for chaining
|
|
75
|
+
*/
|
|
76
|
+
withPolishPostStep(config: PolishConfig): this;
|
|
77
|
+
/**
|
|
78
|
+
* Set contextual variables.
|
|
79
|
+
*
|
|
80
|
+
* @param variables The variables object
|
|
81
|
+
* @returns The builder instance for chaining
|
|
82
|
+
*/
|
|
83
|
+
withVariables(variables: Record<string, any>): this;
|
|
84
|
+
/**
|
|
85
|
+
* Set job- or graph-level fields merged into template variables (lowest precedence vs `withVariables` and `input`-derived bindings).
|
|
86
|
+
*/
|
|
87
|
+
withJobContext(jobContext: Record<string, unknown>): this;
|
|
88
|
+
/**
|
|
89
|
+
* Set context data.
|
|
90
|
+
*
|
|
91
|
+
* @param context The context (object or string)
|
|
92
|
+
* @returns The builder instance for chaining
|
|
93
|
+
*/
|
|
94
|
+
withContext(context: Record<string, any> | string): this;
|
|
95
|
+
/**
|
|
96
|
+
* Set knowledge data.
|
|
97
|
+
*
|
|
98
|
+
* @param knowledge The knowledge object
|
|
99
|
+
* @returns The builder instance for chaining
|
|
100
|
+
*/
|
|
101
|
+
withKnowledge(knowledge: Record<string, any>): this;
|
|
102
|
+
/**
|
|
103
|
+
* Set job memory.
|
|
104
|
+
*
|
|
105
|
+
* @param jobMemory The job memory
|
|
106
|
+
* @returns The builder instance for chaining
|
|
107
|
+
*/
|
|
108
|
+
withJobMemory(jobMemory: any): this;
|
|
109
|
+
/**
|
|
110
|
+
* Set task memory.
|
|
111
|
+
*
|
|
112
|
+
* @param taskMemory The task memory
|
|
113
|
+
* @returns The builder instance for chaining
|
|
114
|
+
*/
|
|
115
|
+
withTaskMemory(taskMemory: any): this;
|
|
116
|
+
/**
|
|
117
|
+
* Set execution memory.
|
|
118
|
+
*
|
|
119
|
+
* @param executionMemory The execution memory (history of execution context)
|
|
120
|
+
* @returns The builder instance for chaining
|
|
121
|
+
*/
|
|
122
|
+
withExecutionMemory(executionMemory: any): this;
|
|
123
|
+
/**
|
|
124
|
+
* Set job ID.
|
|
125
|
+
*
|
|
126
|
+
* @param jobId The job ID
|
|
127
|
+
* @returns The builder instance for chaining
|
|
128
|
+
*/
|
|
129
|
+
withJobId(jobId: string): this;
|
|
130
|
+
/**
|
|
131
|
+
* Set agent ID.
|
|
132
|
+
*
|
|
133
|
+
* @param agentId The agent ID
|
|
134
|
+
* @returns The builder instance for chaining
|
|
135
|
+
*/
|
|
136
|
+
withAgentId(agentId: string): this;
|
|
137
|
+
/** `@exellix/ai-skills` job type id (required with agentId / taskTypeId for `build()`). */
|
|
138
|
+
withJobTypeId(jobTypeId: string): this;
|
|
139
|
+
/** `@exellix/ai-skills` task type id (required with agentId / jobTypeId for `build()`). */
|
|
140
|
+
withTaskTypeId(taskTypeId: string): this;
|
|
141
|
+
/**
|
|
142
|
+
* Set timeout in milliseconds.
|
|
143
|
+
*
|
|
144
|
+
* @param timeoutMs The timeout in milliseconds
|
|
145
|
+
* @returns The builder instance for chaining
|
|
146
|
+
*/
|
|
147
|
+
withTimeout(timeoutMs: number): this;
|
|
148
|
+
/**
|
|
149
|
+
* Set additional skill-related IDs.
|
|
150
|
+
*
|
|
151
|
+
* @param coreSkillId The core skill ID (renamed from skillId to avoid confusion with runSkill's skillId)
|
|
152
|
+
* @param masterSkillId The master skill ID
|
|
153
|
+
* @param masterSkillActivityId The master skill activity ID
|
|
154
|
+
* @returns The builder instance for chaining
|
|
155
|
+
*/
|
|
156
|
+
withSkillIds(coreSkillId?: string, masterSkillId?: string, masterSkillActivityId?: string): this;
|
|
157
|
+
/**
|
|
158
|
+
* Set graph execution context for better activity tracking.
|
|
159
|
+
*
|
|
160
|
+
* These fields enable smarter activity tracking and identity for nodes
|
|
161
|
+
* executing within graph workflows. When provided, they are automatically
|
|
162
|
+
* mapped to activity identity fields in the gateway.
|
|
163
|
+
*
|
|
164
|
+
* @param graphId Graph identifier for activity tracking
|
|
165
|
+
* @param nodeId Node identifier for activity tracking
|
|
166
|
+
* @param prevNodeId Previous node identifier for activity tracking
|
|
167
|
+
* @returns The builder instance for chaining
|
|
168
|
+
*/
|
|
169
|
+
withGraphContext(graphId?: string, nodeId?: string, prevNodeId?: string): this;
|
|
170
|
+
/**
|
|
171
|
+
* Set graph identifier for activity tracking.
|
|
172
|
+
*
|
|
173
|
+
* @param graphId The graph identifier
|
|
174
|
+
* @returns The builder instance for chaining
|
|
175
|
+
*/
|
|
176
|
+
withGraphId(graphId: string): this;
|
|
177
|
+
/**
|
|
178
|
+
* Set node identifier for activity tracking.
|
|
179
|
+
*
|
|
180
|
+
* @param nodeId The node identifier
|
|
181
|
+
* @returns The builder instance for chaining
|
|
182
|
+
*/
|
|
183
|
+
withNodeId(nodeId: string): this;
|
|
184
|
+
/**
|
|
185
|
+
* Set previous node identifier for activity tracking.
|
|
186
|
+
*
|
|
187
|
+
* Used to track the previous node in a graph execution flow.
|
|
188
|
+
* Automatically mapped to identity.prevNodeId in activity tracking.
|
|
189
|
+
*
|
|
190
|
+
* @param prevNodeId The previous node identifier
|
|
191
|
+
* @returns The builder instance for chaining
|
|
192
|
+
*/
|
|
193
|
+
withPrevNodeId(prevNodeId: string): this;
|
|
194
|
+
/**
|
|
195
|
+
* Set model configuration for this task execution.
|
|
196
|
+
*
|
|
197
|
+
* Controls which model is used and how it generates responses.
|
|
198
|
+
* This configuration overrides default model settings from client initialization
|
|
199
|
+
* and is passed through to the gateway for model selection and parameter control.
|
|
200
|
+
*
|
|
201
|
+
* @param modelConfig Model configuration (model, temperature, maxTokens, etc.)
|
|
202
|
+
* @returns The builder instance for chaining
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* ```typescript
|
|
206
|
+
* builder.withModelConfig({
|
|
207
|
+
* model: "gpt-4-turbo",
|
|
208
|
+
* temperature: 0.7,
|
|
209
|
+
* maxTokens: 2000
|
|
210
|
+
* })
|
|
211
|
+
* ```
|
|
212
|
+
*/
|
|
213
|
+
withModelConfig(modelConfig: ModelConfig): this;
|
|
214
|
+
/**
|
|
215
|
+
* Set the **main-skill** LLM call configuration (`RunTaskRequest.llmCall`).
|
|
216
|
+
*
|
|
217
|
+
* `LlmCallConfig` is the canonical, per-stage knob set used everywhere LLMs are invoked
|
|
218
|
+
* (PRE synthesis, AI scoping, MAIN skill, POST audit/polish, utilities). It supports:
|
|
219
|
+
*
|
|
220
|
+
* - `model` — provider/model id (overrides `modelConfig.model`).
|
|
221
|
+
* - `maxTokensCap` — **hard ceiling** for completion tokens; passed to `xynthesis.resolveMaxTokens`
|
|
222
|
+
* so the dynamic budget never exceeds this value. Use this instead of a bare
|
|
223
|
+
* `maxTokens` when you want to keep auto-sizing on but bound it.
|
|
224
|
+
* - `maxTokens` — alias for `maxTokensCap` (kept for ergonomic parity with `ModelConfig`).
|
|
225
|
+
* - `temperature` — sampling temperature.
|
|
226
|
+
* - `topP` — nucleus-sampling cutoff.
|
|
227
|
+
* - `outputExpectation` — caller-supplied size/density hint forwarded to `resolveMaxTokens`
|
|
228
|
+
* (overrides per-action `ACTION_OUTPUT_DEFAULTS` from xynthesis routing JSON).
|
|
229
|
+
* - `maxOutputLength` — character cap applied after the LLM returns (post-truncation, not a token cap).
|
|
230
|
+
* - `timeoutMs` — per-call timeout for the underlying invoke.
|
|
231
|
+
*
|
|
232
|
+
* `LlmCallConfig` is composable with the deprecated `modelConfig` and per-step `model`/`timeoutMs`/
|
|
233
|
+
* `maxOutputLength` fields — when both are set, `llmCall.*` wins.
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```typescript
|
|
237
|
+
* builder.withLlmCall({
|
|
238
|
+
* model: "gpt-5-mini",
|
|
239
|
+
* maxTokensCap: 4096,
|
|
240
|
+
* temperature: 0.4,
|
|
241
|
+
* outputExpectation: { size: { kind: "absolute", maxWords: 600 }, density: "default" },
|
|
242
|
+
* })
|
|
243
|
+
* ```
|
|
244
|
+
*/
|
|
245
|
+
withLlmCall(llmCall: LlmCallConfig): this;
|
|
246
|
+
/**
|
|
247
|
+
* Set AI-scoping execution options (request-level fallback for every per-instruction scoping call).
|
|
248
|
+
*
|
|
249
|
+
* - `llmCall` — default {@link LlmCallConfig} for scoping LLM calls. Per-instruction `instruction.llmCall`
|
|
250
|
+
* overrides this.
|
|
251
|
+
* - `concurrency` — max parallel scoping calls (default 5; env `AI_SCOPING_CONCURRENCY`).
|
|
252
|
+
* - `timeoutMsPerItem` — per-instruction timeout in ms (default 30_000; env `AI_SCOPING_TIMEOUT_MS`).
|
|
253
|
+
*
|
|
254
|
+
* Per-item failures are captured (not silently dropped) on the response under
|
|
255
|
+
* `result.metadata.aiScopingFailures`. In trace mode the per-item observations are also surfaced
|
|
256
|
+
* under `result.metadata.aiScopingLlmCalls`.
|
|
257
|
+
*/
|
|
258
|
+
withAiScopingOptions(opts: {
|
|
259
|
+
llmCall?: LlmCallConfig;
|
|
260
|
+
concurrency?: number;
|
|
261
|
+
timeoutMsPerItem?: number;
|
|
262
|
+
}): this;
|
|
263
|
+
/**
|
|
264
|
+
* Replace the `llmCall` config on the synthesized-context PRE step (must be added first via
|
|
265
|
+
* {@link withSynthesizedContextPreStep}).
|
|
266
|
+
*/
|
|
267
|
+
withSynthesisLlmCall(llmCall: LlmCallConfig): this;
|
|
268
|
+
/**
|
|
269
|
+
* Replace the `llmCall` config on the audit POST step (must be added first via
|
|
270
|
+
* {@link withAuditPostStep}). When `role` is omitted, sets the top-level audit `llmCall` (used by both
|
|
271
|
+
* the audit evaluator and the synthesis-merge call). Use `role: "audit"` or `role: "synthesis"` to
|
|
272
|
+
* target a specific sub-call.
|
|
273
|
+
*/
|
|
274
|
+
withAuditLlmCall(llmCall: LlmCallConfig, role?: "audit" | "synthesis"): this;
|
|
275
|
+
/**
|
|
276
|
+
* Replace the `llmCall` config on the polish POST step (must be added first via
|
|
277
|
+
* {@link withPolishPostStep}).
|
|
278
|
+
*/
|
|
279
|
+
withPolishLlmCall(llmCall: LlmCallConfig): this;
|
|
280
|
+
/**
|
|
281
|
+
* Per-task overrides for gateway / athenix-parser template rendering (merged on client defaults for this invoke).
|
|
282
|
+
* See `@exellix/ai-skills` gateway template v4 docs (`subPathSearch`, optional tokens, etc.).
|
|
283
|
+
*/
|
|
284
|
+
withTemplateRenderOptions(templateRenderOptions: TemplateRenderOptions): this;
|
|
285
|
+
/**
|
|
286
|
+
* Highest-priority template token overlay for this invoke (gateway `templateTokens`).
|
|
287
|
+
*/
|
|
288
|
+
withTemplateTokens(templateTokens: GatewayTemplateTokens): this;
|
|
289
|
+
/** Graph/job-level xynthesized memory (job, task, and execution scopes). */
|
|
290
|
+
withXynthesized(xynthesized: XynthesizedMemory): this;
|
|
291
|
+
/** Passthrough smart-input config for upstream / Rendrix (legacy string paths or native `{ title, path }[]`). */
|
|
292
|
+
withSmartInput(config: RunTaskSmartInput): this;
|
|
293
|
+
/** Sets {@link RunTaskRequest.smartInput} with Rendrix-native path entries (`title` defaults to each path string). */
|
|
294
|
+
withSmartInputPaths(paths: string[]): this;
|
|
295
|
+
/** Gateway/Rendrix rendering options for the smart-input macro (merged like `RunSkillRequest.smartInputRenderOptions`). */
|
|
296
|
+
withSmartInputRenderOptions(opts: SmartInputRenderOptions): this;
|
|
297
|
+
/** Merge one key into `xynthesized.job`. */
|
|
298
|
+
withXynthesizedJob(key: string, value: unknown): this;
|
|
299
|
+
/** Merge one key into `xynthesized.task`. */
|
|
300
|
+
withXynthesizedTask(key: string, value: unknown): this;
|
|
301
|
+
/** Merge one key into `xynthesized.execution`. */
|
|
302
|
+
withXynthesizedExecution(key: string, value: unknown): this;
|
|
303
|
+
/**
|
|
304
|
+
* Build the final task request.
|
|
305
|
+
*
|
|
306
|
+
* @returns The complete task request
|
|
307
|
+
*/
|
|
308
|
+
build(): RunTaskRequest;
|
|
309
|
+
}
|
|
310
|
+
//# sourceMappingURL=task-request-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-request-builder.d.ts","sourceRoot":"","sources":["../../src/builders/task-request-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,aAAa,EACb,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,2BAA2B,EAC3B,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,mBAAmB,CAAC;AAG3B;;;;;;GAMG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAA0B;;IAMzC;;;;;OAKG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKpC;;OAEG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAOrF;;;;;OAKG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI;IAKpD;;;;;OAKG;IACH,aAAa,CAAC,YA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