@cognipeer/agent-sdk 0.10.3 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +516 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +106 -3
- package/dist/index.d.ts +106 -3
- package/dist/index.mjs +512 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZodError, ZodSchema, z } from 'zod';
|
|
1
|
+
import { ZodError, ZodSchema, z, ZodTypeAny } from 'zod';
|
|
2
2
|
import { JSONSchema7 } from 'json-schema';
|
|
3
3
|
|
|
4
4
|
/** Describes what a model/provider natively supports. */
|
|
@@ -3874,6 +3874,37 @@ type OpenAIProviderConfig = {
|
|
|
3874
3874
|
* where it matters most: a self-hosted model is named by whoever served it.
|
|
3875
3875
|
*/
|
|
3876
3876
|
responsesApi?: "auto" | "never" | "always";
|
|
3877
|
+
/**
|
|
3878
|
+
* Models that go to the Responses API, named explicitly. Opt-in; unset by
|
|
3879
|
+
* default, and nothing here is inferred from a model name.
|
|
3880
|
+
*
|
|
3881
|
+
* A string matches the request's model (or `defaultModel`) exactly; a RegExp
|
|
3882
|
+
* is tested against it. A match routes the request to Responses whether or
|
|
3883
|
+
* not it carries `reasoning` — the case this exists for is a model that
|
|
3884
|
+
* reasons by default and rejects function tools on Chat Completions, where
|
|
3885
|
+
* sending no reasoning field does not help. `responsesApi: "never"` still
|
|
3886
|
+
* wins; under `"always"` the routing is unchanged.
|
|
3887
|
+
*
|
|
3888
|
+
* Requests for a matched model also get, on the Responses body only:
|
|
3889
|
+
* - Chat Completions spellings arriving through `extra`, which /responses
|
|
3890
|
+
* rejects with a 400, re-spelled with their values unchanged:
|
|
3891
|
+
* `reasoning_effort` → `reasoning.effort` (a request `reasoning` effort
|
|
3892
|
+
* still wins), `max_tokens` / `max_completion_tokens` →
|
|
3893
|
+
* `max_output_tokens`, `response_format` → `text.format`, and
|
|
3894
|
+
* `stream_options.include_usage` dropped.
|
|
3895
|
+
* - real SSE streaming, when `responsesStreaming` is also true.
|
|
3896
|
+
*
|
|
3897
|
+
* Honoured by `OpenAIProvider` itself only; `AzureProvider` and
|
|
3898
|
+
* `OpenAICompatibleProvider` ignore it.
|
|
3899
|
+
*/
|
|
3900
|
+
responsesApiModels?: Array<string | RegExp>;
|
|
3901
|
+
/**
|
|
3902
|
+
* Stream Responses API output as it arrives (text and tool-call argument
|
|
3903
|
+
* deltas) for models in `responsesApiModels`. Default false, which keeps the
|
|
3904
|
+
* existing behaviour: one non-streaming Responses call, emitted as a single
|
|
3905
|
+
* chunk. Has no effect on any other request.
|
|
3906
|
+
*/
|
|
3907
|
+
responsesStreaming?: boolean;
|
|
3877
3908
|
};
|
|
3878
3909
|
type AnthropicProviderConfig = {
|
|
3879
3910
|
provider: "anthropic";
|
|
@@ -5167,6 +5198,13 @@ declare function resolveStrategy(model: any): StructuredOutputStrategy;
|
|
|
5167
5198
|
* - Auto-detection from model class name / metadata
|
|
5168
5199
|
*/
|
|
5169
5200
|
declare function getModelCapabilities(model: any): ModelCapabilities;
|
|
5201
|
+
/**
|
|
5202
|
+
* `ChatOpenAI` is also how OpenAI-COMPATIBLE servers (vLLM, Ollama, LM Studio,
|
|
5203
|
+
* gateways) are reached — with a custom `baseURL`. Strict tool mode is an
|
|
5204
|
+
* OpenAI/Azure feature, so only those hosts count; everything else gets the
|
|
5205
|
+
* plain schemas. No base URL means the SDK default, api.openai.com.
|
|
5206
|
+
*/
|
|
5207
|
+
declare function isOpenAIHostedEndpoint(lcModel: any): boolean;
|
|
5170
5208
|
|
|
5171
5209
|
declare function captureSnapshot(state: SmartState, options?: SnapshotOptions): AgentSnapshot;
|
|
5172
5210
|
declare function restoreSnapshot(snapshot: AgentSnapshot, restoreOptions?: RestoreSnapshotOptions): SmartState;
|
|
@@ -5367,6 +5405,56 @@ declare function validateToolArgs(tool: ToolInterface<any, any, any>, args: unkn
|
|
|
5367
5405
|
*/
|
|
5368
5406
|
declare function coerceToolArgs(schema: unknown, value: unknown): unknown;
|
|
5369
5407
|
|
|
5408
|
+
/**
|
|
5409
|
+
* Makes tool argument schemas acceptable to a provider's STRICT tool mode.
|
|
5410
|
+
*
|
|
5411
|
+
* OpenAI strict mode (`strict: true` on a function tool) has three rules that
|
|
5412
|
+
* ordinary tool schemas break:
|
|
5413
|
+
*
|
|
5414
|
+
* 1. every property must be listed in `required` — there are no optional
|
|
5415
|
+
* arguments, so a tool with an optional `offset` makes the provider reject
|
|
5416
|
+
* the WHOLE request (`400 Invalid schema for function … Missing 'offset'`);
|
|
5417
|
+
* 2. every object must be closed (`additionalProperties: false`), including
|
|
5418
|
+
* each branch of a union — `manage_plan`'s `todoList` union failed here;
|
|
5419
|
+
* 3. there is no free-form object — `body: { type: object }` with no
|
|
5420
|
+
* properties has no strict form at all.
|
|
5421
|
+
*
|
|
5422
|
+
* The transform keeps the tool's MEANING and changes only its wire form:
|
|
5423
|
+
*
|
|
5424
|
+
* - an optional argument becomes required-but-nullable (the model sends
|
|
5425
|
+
* `null` for "not given"), and `restore` drops those nulls again before the
|
|
5426
|
+
* tool runs — the executor sees exactly the arguments it always saw;
|
|
5427
|
+
* - objects (and union branches) are closed;
|
|
5428
|
+
* - a free-form object/record/any becomes a JSON-encoded STRING, which
|
|
5429
|
+
* `restore` parses back into the value the executor expects.
|
|
5430
|
+
*
|
|
5431
|
+
* `prepareStrictToolMenu` applies it at the one point every tool — the
|
|
5432
|
+
* caller's and the SDK's own (manage_plan, open_skill, spawn_subagent, …) —
|
|
5433
|
+
* passes through on its way to the provider, and `restoreToolCalls` maps the
|
|
5434
|
+
* model's strict-shaped arguments back before they are validated and run.
|
|
5435
|
+
*/
|
|
5436
|
+
|
|
5437
|
+
interface StrictTransform {
|
|
5438
|
+
schema: ZodTypeAny;
|
|
5439
|
+
/** Maps the model's strict-shaped arguments back to what the tool expects. */
|
|
5440
|
+
restore: (value: unknown) => unknown;
|
|
5441
|
+
}
|
|
5442
|
+
type StrictRestorers = Map<string, StrictTransform["restore"]>;
|
|
5443
|
+
declare function toStrictCompatible(schema: ZodTypeAny): StrictTransform;
|
|
5444
|
+
/** The strict transform of one tool's argument schema, top level included. */
|
|
5445
|
+
declare function toStrictToolSchema(schema: ZodTypeAny): StrictTransform;
|
|
5446
|
+
/**
|
|
5447
|
+
* Restores one model message's tool-call arguments to the tools' ORIGINAL
|
|
5448
|
+
* shape: the "not given" nulls dropped, JSON-encoded free-form values decoded.
|
|
5449
|
+
* Handles the SDK/LangChain form (`args` object), the raw OpenAI form
|
|
5450
|
+
* (`function.arguments` string) and `additional_kwargs.tool_calls`.
|
|
5451
|
+
*/
|
|
5452
|
+
declare function restoreToolCalls<M>(message: M, restorers: StrictRestorers): M;
|
|
5453
|
+
declare function prepareStrictToolMenu<T extends object>(tools: T[]): {
|
|
5454
|
+
menu: T[];
|
|
5455
|
+
restorers: StrictRestorers;
|
|
5456
|
+
};
|
|
5457
|
+
|
|
5370
5458
|
declare function fileSink(path?: string): TraceSinkConfig;
|
|
5371
5459
|
type CustomSinkArg = ((event: TraceEventRecord) => void | Promise<void>) | {
|
|
5372
5460
|
onEvent?: (event: TraceEventRecord) => void | Promise<void>;
|
|
@@ -5452,7 +5540,11 @@ declare class OpenAIProvider extends BaseProvider {
|
|
|
5452
5540
|
protected readonly defaultModel: string;
|
|
5453
5541
|
protected readonly defaultHeaders: Record<string, string>;
|
|
5454
5542
|
protected readonly responsesApi: "auto" | "never" | "always";
|
|
5543
|
+
private readonly responsesApiModels;
|
|
5544
|
+
private readonly responsesStreaming;
|
|
5455
5545
|
constructor(config: OpenAIProviderConfig);
|
|
5546
|
+
/** True when the caller listed this request's model in `responsesApiModels`. */
|
|
5547
|
+
private isResponsesApiModel;
|
|
5456
5548
|
/** True when this request should go to the Responses API rather than Chat
|
|
5457
5549
|
* Completions — which exposes `reasoning.effort` and reasoning summaries that
|
|
5458
5550
|
* Chat Completions silently drops.
|
|
@@ -5461,12 +5553,23 @@ declare class OpenAIProvider extends BaseProvider {
|
|
|
5461
5553
|
* carries a reasoning config AND the model name looks like an o-series/gpt-5
|
|
5462
5554
|
* model. `never`/`always` let a caller state the answer instead, because the
|
|
5463
5555
|
* name check is a guess and the two APIs differ in far more than reasoning —
|
|
5464
|
-
* see `responsesApi` in OpenAIProviderConfig.
|
|
5556
|
+
* see `responsesApi` in OpenAIProviderConfig.
|
|
5557
|
+
*
|
|
5558
|
+
* A model listed in `responsesApiModels` is the caller stating the answer
|
|
5559
|
+
* for that model alone; `never` still overrides it. */
|
|
5465
5560
|
protected useResponsesApi(request: ChatCompletionRequest): boolean;
|
|
5466
5561
|
complete(request: ChatCompletionRequest): Promise<ChatCompletionResponse>;
|
|
5467
5562
|
completeStream(request: ChatCompletionRequest): AsyncGenerator<ChatCompletionChunk, void, unknown>;
|
|
5468
5563
|
protected buildRequestBody(request: ChatCompletionRequest, stream: boolean): Record<string, any>;
|
|
5469
5564
|
protected completeResponses(request: ChatCompletionRequest): Promise<ChatCompletionResponse>;
|
|
5565
|
+
/** Real Responses SSE streaming, for models opted in through
|
|
5566
|
+
* `responsesApiModels` with `responsesStreaming` on. Emits the same chunk
|
|
5567
|
+
* shapes as the Chat Completions stream: text deltas as they arrive, a tool
|
|
5568
|
+
* call's id + name when it opens and its argument fragments under that id,
|
|
5569
|
+
* then one final chunk with usage, finish reason and any reasoning summary
|
|
5570
|
+
* (taken from the completed response, exactly as the non-streaming parse
|
|
5571
|
+
* reads it). */
|
|
5572
|
+
private streamResponses;
|
|
5470
5573
|
protected buildResponsesBody(request: ChatCompletionRequest): Record<string, any>;
|
|
5471
5574
|
/** Maps a unified message to a Responses API `input` item. */
|
|
5472
5575
|
protected toResponsesInput(m: UnifiedMessage): Record<string, any>;
|
|
@@ -5633,4 +5736,4 @@ declare function fromNativeProvider(provider: BaseProvider, options?: NativeMode
|
|
|
5633
5736
|
*/
|
|
5634
5737
|
declare function createProvider(config: ProviderConfig): BaseProvider;
|
|
5635
5738
|
|
|
5636
|
-
export { type AIMessage, ASK_USER_TOOL_NAME, type AgentInstance, type AgentInvokeResult, type AgentLimits, type AgentOptions, type AgentPlugin, type AgentRuleOptions, type AgentRuntimeConfig, type AgentSnapshot, type AgentSnapshotMetadata, type AgentState, AnthropicProvider, type AnthropicProviderConfig, type ApprovalTransport, type AudioContent, type AuditEntry, type AuditLogConfig, type AzureContentSafetyConfig, AzureProvider, type AzureProviderConfig, type BaseChatMessage, type BaseChatMessagePart, type BaseChatModel, type BaseMessage, BaseProvider, type BedrockGuardrailConfig, BedrockProvider, type BedrockProviderConfig, type BudgetGuardConfig, type BuildChildConfig, type BuiltInRuntimeProfile, CCRStore, CONSOLE_HOOK_MAP, CONTEXT_PILOT_JSON_MARKER_KEY, CONTROL_PLANE_TOOL_NAMES, type CancellationTokenLike, type CancelledEvent, type CapabilityStatus, type ChatCompletionChunk, type ChatCompletionRequest, type ChatCompletionResponse, type CheckpointPluginConfig, type CheckpointStore, type ChildContextPolicy, type CodeDetectionRuleOptions, type CodeGuardrailOptions, type CognipeerGuardrailConfig, type CompressToolOutputParams, type ContextBuilder, type ContextPilotCCRConfig, type ContextPilotCacheAlignmentConfig, type ContextPilotCompressionConfig, type ContextPilotCompressionStats, type ContextPilotCompressorKind, type ContextPilotConfig, type ContextPilotDedupConfig, type ContextPilotDiffCompressionConfig, type ContextPilotJsonCompressionConfig, type ContextPilotLogCompressionConfig, type ContextPilotResult, type ContextPilotRuntime, type ContextPilotSearchCompressionConfig, type ContextPilotTextCompressionConfig, type ContextPolicy, type ContextToolsStateRef, type ConversationGuardrail, type ConversationPluginConfig, type ConversationStore, type CostEstimator, type CustomRuleCallback, type CustomRuleOptions, DEFAULT_MAX_TOOL_INPUT_FIELD_CHARS, DEFAULT_PROFILE_CONFIGS, DEFAULT_SKILL_POLICY, DEFAULT_SUBAGENT_POLICY, DEFAULT_SUBAGENT_TOOL_NAMES, DEFAULT_TOOL_INPUT_DIGEST_HEAD_CHARS, DELEGATION_TOOL_NAMES, DedupTracker, type DelegationEventStamp, type DelegationMode, type EvalCase, type EvalCaseResult, type EvalFamily, type EvalHarnessMetrics, type EvalHarnessParams, type EvalHarnessResult, type EvalProfileDescriptor, type EvalProfileTarget, type FileContent, type FinalAnswerEvent, type FinishReason, type GateResult, type GuardrailCallContext, type GuardrailContext, type GuardrailDisposition, type GuardrailEvent, type GuardrailIncident, type GuardrailOutcome, GuardrailPhase, type GuardrailPhaseName, type GuardrailPluginOptions, type GuardrailRequest, type GuardrailRule, type GuardrailRuleResult, type GuardrailTransport, type GuardrailVerdict, type GuardrailViolation, HOOK_CONTRACT_VERSION, HOOK_NAMES, type HandoffDescriptor, type HandoffEvent, type HookContext, type HookDecision, type HookHandler, type HookMap, type HookName, type HookRegistrations, HookTimeoutError, type HttpGuardrailOptions, type HumanInTheLoopAskUserConfig, type HumanInTheLoopOptions, type HumanInTheLoopRuntimeConfig, type ImageContent, InMemoryMemoryStore, type InjectionScan, type InvokeConfig, type JsonGuardrailOptions, type JsonSchemaRuleOptions, type LangfuseBuildContext, type LangfuseEvent, type LangfuseEventKind, type LangfuseTracingConfig, type LanguageGuardConfig, type LoadSkillsOptions, type MaybePromise, type McpConfig, type McpConnection, type MediaAttachment, type MediaKind, type MediaPolicyConfig, type MemoryFact, type MemoryProviderKind, type MemoryReadPolicy, type MemoryScope, type MemoryStore, type MemoryWritePolicy, type Message, type MetadataEvent, type ModelCapabilities, NativeJsonSchemaStrategy, type NativeModelOptions, type NativeReasoningConfig, OpenAICompatibleProvider, type OpenAICompatibleProviderConfig, type OpenAIModerationConfig, OpenAIProvider, type OpenAIProviderConfig, type OtelTracingConfig, type OutputGuardConfig, PREOPEN_TOOL_CALL_PREFIX, type PendingToolApproval, type PendingUserQuestion, type PiiDetector, type PiiEntity, type PiiRedactionConfig, type PlanEvent, type PlanStepRecord, type PlanningMode, type PluginContributions, type PluginEvent, type PluginFailureMode, type PluginHost, type PluginHostOptions, type PluginLogger, type PluginProvides, type PluginRunHost, type PluginSetupContext, type PortkeyGatewayConfig, type PortkeyGuardrailConfig, type PreopenSkillsResult, type ProfileConfig, type ProgressEvent, type ProgressUpdate, type PromptHooks, type PromptInjectionFamily, type PromptInjectionGuardConfig, type PromptSource, type ProviderConfig, ProviderError, type ToolCall as ProviderToolCall, type ToolDefinition as ProviderToolDefinition, type ProviderType, type RateLimitConfig, type ReasoningConfig, type ReasoningLevel, type RedactionResult, type ReflectionCadence, type ReflectionConfig, type ReflectionEvent, type ReflectionHookContext, type ReflectionRecord, type RegexGuardrailConfig, type RegexGuardrailOptions, type RegexRuleOptions, type ReplanPolicy, type ResolvedContextPilotConfig, type ResolvedSmartAgentConfig, type ResolvedTraceConfig, type ResolvedTraceSink, type ResponseCacheConfig, type RestoreSnapshotOptions, type RuntimeProfile, SMALL_TIER_SKILL_POLICY, type SdkCapabilities, type SerializableSmartState, type SessionMetrics, type SessionMetricsConfig, type Skill, type SkillDisclosure, type SkillExecutionContext, type SkillFrontmatter, type SkillFs, type SkillModelTier, type SkillPolicy, type SkillRegistryRef, type SkillSource, type SkillToolDeps, type SkillToolHeader, type SlotName, type SmartAgentBudgetConfig, type SmartAgentContextConfig, type SmartAgentCustomProfileConfig, type SmartAgentDelegationConfig, type SmartAgentEvent, type SmartAgentInstance, type SmartAgentLimits, type SmartAgentMemoryConfig, type SmartAgentOptions, type SmartAgentPlanningConfig, type SmartAgentSummarizationConfig, type SmartAgentToolResponseConfig, type SmartAgentTracingConfig, type SmartModel, type SmartState, type SmartToolFn, type SnapshotOptions, type SnapshotRuntimeHint, type StreamChunk, type StreamEvent, type StructuredOutputError, type StructuredOutputFieldError, StructuredOutputManager, type StructuredOutputManagerConfig, type StructuredOutputResult, type StructuredOutputStrategy, type StructuredSummary, type SubagentDef, type SubagentEvent, type SubagentMode, type SubagentPendingRecord, type SubagentPolicy, type SubagentRegistryRef, type SubagentResult, type SubagentToolDeps, type SubagentToolNames, type SummarizationEvent, type SummarizationMode, type SummarizerInput, type SummarizerResult, type SummarizerStrategy, type SummaryFactItem, type SummaryIntegrityCheck, TOOL_INPUT_DIGEST_KEY, type TextContent, type TokenCounter, type TokenUsage, type ToolApprovalEvent, type ToolApprovalResolution, type ToolApprovalStatus, ToolBasedStrategy, type ToolCachePolicy, type ToolCallEvent, type ToolInputDigestOptions, type ToolInputDigestResult, type ToolInputRetentionPolicy, type ToolInterface, type ToolPolicyConfig, type ToolResponseClassification, type ToolResponseRetentionPolicy, type ToolRetentionDeclarations, type ToolRetentionSpec, type ToolRetryPolicy, type ToolRule, type TraceDataSection, type TraceErrorRecord, type TraceEventRecord, type TraceMessageSection, type TraceMetadataSection, type TraceSessionConfigSnapshot, type TraceSessionFile, type TraceSessionStatus, type TraceSessionSummary, type TraceSinkCognipeerConfig, type TraceSinkConfig, type TraceSinkCustomConfig, type TraceSinkFileConfig, type TraceSinkHttpConfig, type TraceSinkOtlpConfig, type TraceSinkSnapshot, type TraceSummarySection, type TraceToolCallSection, type TraceToolDefinition, type TraceToolDefinitionsSection, type TraceToolDetails, type TraceToolResponseSection, type TraceToolResultSection, type TracingConfig, type TracingMode, type UnifiedMessage, type UserQuestionAnswer, type UserQuestionAnswerSet, type UserQuestionEvent, type UserQuestionItem, type UserQuestionOption, type UserQuestionResolution, type UserQuestionStatus, VertexProvider, type VertexProviderConfig, type VolatileContentFinding, type VolatileContentPattern, type WebhookApprovalConfig, agentVerdictRule, appendBoundTools, auditLog, azureContentSafety, bedrockGuardrail, budgetGuard, buildHandoffTools, buildResponseFormatSection, buildSkillHeaderBlock, buildSubagentCatalogBlock, buildSystemPrompt, buildToolDefinitionsSection, canOpenSkill, canSpawn, captureSnapshot, checkpointing, codePresenceRule, coerceToolArgs, cognipeerGuardrail, cognipeerSink, collectAttachments, collectToolRetentionDeclarations, composeToolSets, compressDiffOutput, compressJsonOutput, compressLogOutput, compressSearchOutput, compressTextOutput, compressToolOutput, contentToString, conversationHistory, countApproxTokens, countMessagesTokens, createAgent, createAgentNode, createAskUserQuestionTool, createBindSkillToolsTool, createCodeGuardrail, createContextPilotRuntime, createContextSummarizeNode, createContextTools, createDelegateTool, createGetToolResponseTool, createGuardrail, createGuardrailPlugin, createJsonGuardrail, createManageTodoListAliasTool, createManageTodoTool, createOpenSkillTool, createParallelTool, createPluginHost, createProvider, createRegexGuardrail, createResolverNode, createSearchSkillsTool, createSkillRegistryRef, createSkillTools, createSmartAgent, createSpawnTool, createSubagentRegistryRef, createSubagentTools, createTool, createToolLimitFinalizeNode, createToolsNode, customCallbackRule, customGuardrail, customSink, dedupeToolsByName, defaultTokenCounter, defineHook, definePlugin, detectLanguage, detectTextFormat, detectVolatileContent, digestToolInputArguments, digestToolInputValue, emptyUsage, evaluateGuardrails, extractLatestUserQuery, extractMessageText, fileCheckpointStore, fileSink, findSubagent, formatZodError, fromLangchainModel, fromLangchainTools, fromNativeProvider, generateSpanId, generateTraceId, getModelCapabilities, getNestedValue, getResolvedSmartConfig, getTokenCounter, hasToolResponseRecoveryReference, httpGuardrail, httpSink, inMemoryCheckpointStore, inMemoryConversationStore, isHookImplemented, isSmartModel, isValidIban, isValidLuhn, isValidTckn, jsonSchemaRule, defaultBuildPayload as langfuseDefaultPayload, langfuseTracing, languageGuard, loadSkillsFromDisk, mapConsoleHookVerdict, mapTextParts, mcp, mediaPolicy, normalizeSmartAgentOptions, normalizeVerdicts, openAIModeration, otelTracing, otlpSink, outputGuard, parseApprovalDecision, parseSkillFrontmatter, pathSandbox, piiRedaction, pluginCapabilities, portkeyGateway, portkeyGuardrail, preopenSkills, preopenToolCallId, promptInjectionGuard, rateLimit, readMemoryFacts, redactText, regexGuardrail, regexRule, replaceTextContent, resolveAvailableSkills, resolveAvailableSubagents, resolveInputRetention, resolveMemoryStore, resolveReasoning, resolveStrategy, resolveSubagentTools, resolveSummarizationRetention, resolveToolApprovalState, resolveUserQuestionState, responseCache, restoreSnapshot, runSmartAgentEvalHarness, scoreItemsByRelevance, searchSkills, seedChildMessages, selectTopIndicesInOrder, sessionMetrics, setTokenCounter, startStreamingSession, summarizeObject, textFromContent, tokenize, toolPolicy, traceSessionToOtlp, validateReasoningConfig, validateToolArgs, webhookApproval, withTools, withinDepth, writeSummaryFactsToMemory };
|
|
5739
|
+
export { type AIMessage, ASK_USER_TOOL_NAME, type AgentInstance, type AgentInvokeResult, type AgentLimits, type AgentOptions, type AgentPlugin, type AgentRuleOptions, type AgentRuntimeConfig, type AgentSnapshot, type AgentSnapshotMetadata, type AgentState, AnthropicProvider, type AnthropicProviderConfig, type ApprovalTransport, type AudioContent, type AuditEntry, type AuditLogConfig, type AzureContentSafetyConfig, AzureProvider, type AzureProviderConfig, type BaseChatMessage, type BaseChatMessagePart, type BaseChatModel, type BaseMessage, BaseProvider, type BedrockGuardrailConfig, BedrockProvider, type BedrockProviderConfig, type BudgetGuardConfig, type BuildChildConfig, type BuiltInRuntimeProfile, CCRStore, CONSOLE_HOOK_MAP, CONTEXT_PILOT_JSON_MARKER_KEY, CONTROL_PLANE_TOOL_NAMES, type CancellationTokenLike, type CancelledEvent, type CapabilityStatus, type ChatCompletionChunk, type ChatCompletionRequest, type ChatCompletionResponse, type CheckpointPluginConfig, type CheckpointStore, type ChildContextPolicy, type CodeDetectionRuleOptions, type CodeGuardrailOptions, type CognipeerGuardrailConfig, type CompressToolOutputParams, type ContextBuilder, type ContextPilotCCRConfig, type ContextPilotCacheAlignmentConfig, type ContextPilotCompressionConfig, type ContextPilotCompressionStats, type ContextPilotCompressorKind, type ContextPilotConfig, type ContextPilotDedupConfig, type ContextPilotDiffCompressionConfig, type ContextPilotJsonCompressionConfig, type ContextPilotLogCompressionConfig, type ContextPilotResult, type ContextPilotRuntime, type ContextPilotSearchCompressionConfig, type ContextPilotTextCompressionConfig, type ContextPolicy, type ContextToolsStateRef, type ConversationGuardrail, type ConversationPluginConfig, type ConversationStore, type CostEstimator, type CustomRuleCallback, type CustomRuleOptions, DEFAULT_MAX_TOOL_INPUT_FIELD_CHARS, DEFAULT_PROFILE_CONFIGS, DEFAULT_SKILL_POLICY, DEFAULT_SUBAGENT_POLICY, DEFAULT_SUBAGENT_TOOL_NAMES, DEFAULT_TOOL_INPUT_DIGEST_HEAD_CHARS, DELEGATION_TOOL_NAMES, DedupTracker, type DelegationEventStamp, type DelegationMode, type EvalCase, type EvalCaseResult, type EvalFamily, type EvalHarnessMetrics, type EvalHarnessParams, type EvalHarnessResult, type EvalProfileDescriptor, type EvalProfileTarget, type FileContent, type FinalAnswerEvent, type FinishReason, type GateResult, type GuardrailCallContext, type GuardrailContext, type GuardrailDisposition, type GuardrailEvent, type GuardrailIncident, type GuardrailOutcome, GuardrailPhase, type GuardrailPhaseName, type GuardrailPluginOptions, type GuardrailRequest, type GuardrailRule, type GuardrailRuleResult, type GuardrailTransport, type GuardrailVerdict, type GuardrailViolation, HOOK_CONTRACT_VERSION, HOOK_NAMES, type HandoffDescriptor, type HandoffEvent, type HookContext, type HookDecision, type HookHandler, type HookMap, type HookName, type HookRegistrations, HookTimeoutError, type HttpGuardrailOptions, type HumanInTheLoopAskUserConfig, type HumanInTheLoopOptions, type HumanInTheLoopRuntimeConfig, type ImageContent, InMemoryMemoryStore, type InjectionScan, type InvokeConfig, type JsonGuardrailOptions, type JsonSchemaRuleOptions, type LangfuseBuildContext, type LangfuseEvent, type LangfuseEventKind, type LangfuseTracingConfig, type LanguageGuardConfig, type LoadSkillsOptions, type MaybePromise, type McpConfig, type McpConnection, type MediaAttachment, type MediaKind, type MediaPolicyConfig, type MemoryFact, type MemoryProviderKind, type MemoryReadPolicy, type MemoryScope, type MemoryStore, type MemoryWritePolicy, type Message, type MetadataEvent, type ModelCapabilities, NativeJsonSchemaStrategy, type NativeModelOptions, type NativeReasoningConfig, OpenAICompatibleProvider, type OpenAICompatibleProviderConfig, type OpenAIModerationConfig, OpenAIProvider, type OpenAIProviderConfig, type OtelTracingConfig, type OutputGuardConfig, PREOPEN_TOOL_CALL_PREFIX, type PendingToolApproval, type PendingUserQuestion, type PiiDetector, type PiiEntity, type PiiRedactionConfig, type PlanEvent, type PlanStepRecord, type PlanningMode, type PluginContributions, type PluginEvent, type PluginFailureMode, type PluginHost, type PluginHostOptions, type PluginLogger, type PluginProvides, type PluginRunHost, type PluginSetupContext, type PortkeyGatewayConfig, type PortkeyGuardrailConfig, type PreopenSkillsResult, type ProfileConfig, type ProgressEvent, type ProgressUpdate, type PromptHooks, type PromptInjectionFamily, type PromptInjectionGuardConfig, type PromptSource, type ProviderConfig, ProviderError, type ToolCall as ProviderToolCall, type ToolDefinition as ProviderToolDefinition, type ProviderType, type RateLimitConfig, type ReasoningConfig, type ReasoningLevel, type RedactionResult, type ReflectionCadence, type ReflectionConfig, type ReflectionEvent, type ReflectionHookContext, type ReflectionRecord, type RegexGuardrailConfig, type RegexGuardrailOptions, type RegexRuleOptions, type ReplanPolicy, type ResolvedContextPilotConfig, type ResolvedSmartAgentConfig, type ResolvedTraceConfig, type ResolvedTraceSink, type ResponseCacheConfig, type RestoreSnapshotOptions, type RuntimeProfile, SMALL_TIER_SKILL_POLICY, type SdkCapabilities, type SerializableSmartState, type SessionMetrics, type SessionMetricsConfig, type Skill, type SkillDisclosure, type SkillExecutionContext, type SkillFrontmatter, type SkillFs, type SkillModelTier, type SkillPolicy, type SkillRegistryRef, type SkillSource, type SkillToolDeps, type SkillToolHeader, type SlotName, type SmartAgentBudgetConfig, type SmartAgentContextConfig, type SmartAgentCustomProfileConfig, type SmartAgentDelegationConfig, type SmartAgentEvent, type SmartAgentInstance, type SmartAgentLimits, type SmartAgentMemoryConfig, type SmartAgentOptions, type SmartAgentPlanningConfig, type SmartAgentSummarizationConfig, type SmartAgentToolResponseConfig, type SmartAgentTracingConfig, type SmartModel, type SmartState, type SmartToolFn, type SnapshotOptions, type SnapshotRuntimeHint, type StreamChunk, type StreamEvent, type StrictRestorers, type StrictTransform, type StructuredOutputError, type StructuredOutputFieldError, StructuredOutputManager, type StructuredOutputManagerConfig, type StructuredOutputResult, type StructuredOutputStrategy, type StructuredSummary, type SubagentDef, type SubagentEvent, type SubagentMode, type SubagentPendingRecord, type SubagentPolicy, type SubagentRegistryRef, type SubagentResult, type SubagentToolDeps, type SubagentToolNames, type SummarizationEvent, type SummarizationMode, type SummarizerInput, type SummarizerResult, type SummarizerStrategy, type SummaryFactItem, type SummaryIntegrityCheck, TOOL_INPUT_DIGEST_KEY, type TextContent, type TokenCounter, type TokenUsage, type ToolApprovalEvent, type ToolApprovalResolution, type ToolApprovalStatus, ToolBasedStrategy, type ToolCachePolicy, type ToolCallEvent, type ToolInputDigestOptions, type ToolInputDigestResult, type ToolInputRetentionPolicy, type ToolInterface, type ToolPolicyConfig, type ToolResponseClassification, type ToolResponseRetentionPolicy, type ToolRetentionDeclarations, type ToolRetentionSpec, type ToolRetryPolicy, type ToolRule, type TraceDataSection, type TraceErrorRecord, type TraceEventRecord, type TraceMessageSection, type TraceMetadataSection, type TraceSessionConfigSnapshot, type TraceSessionFile, type TraceSessionStatus, type TraceSessionSummary, type TraceSinkCognipeerConfig, type TraceSinkConfig, type TraceSinkCustomConfig, type TraceSinkFileConfig, type TraceSinkHttpConfig, type TraceSinkOtlpConfig, type TraceSinkSnapshot, type TraceSummarySection, type TraceToolCallSection, type TraceToolDefinition, type TraceToolDefinitionsSection, type TraceToolDetails, type TraceToolResponseSection, type TraceToolResultSection, type TracingConfig, type TracingMode, type UnifiedMessage, type UserQuestionAnswer, type UserQuestionAnswerSet, type UserQuestionEvent, type UserQuestionItem, type UserQuestionOption, type UserQuestionResolution, type UserQuestionStatus, VertexProvider, type VertexProviderConfig, type VolatileContentFinding, type VolatileContentPattern, type WebhookApprovalConfig, agentVerdictRule, appendBoundTools, auditLog, azureContentSafety, bedrockGuardrail, budgetGuard, buildHandoffTools, buildResponseFormatSection, buildSkillHeaderBlock, buildSubagentCatalogBlock, buildSystemPrompt, buildToolDefinitionsSection, canOpenSkill, canSpawn, captureSnapshot, checkpointing, codePresenceRule, coerceToolArgs, cognipeerGuardrail, cognipeerSink, collectAttachments, collectToolRetentionDeclarations, composeToolSets, compressDiffOutput, compressJsonOutput, compressLogOutput, compressSearchOutput, compressTextOutput, compressToolOutput, contentToString, conversationHistory, countApproxTokens, countMessagesTokens, createAgent, createAgentNode, createAskUserQuestionTool, createBindSkillToolsTool, createCodeGuardrail, createContextPilotRuntime, createContextSummarizeNode, createContextTools, createDelegateTool, createGetToolResponseTool, createGuardrail, createGuardrailPlugin, createJsonGuardrail, createManageTodoListAliasTool, createManageTodoTool, createOpenSkillTool, createParallelTool, createPluginHost, createProvider, createRegexGuardrail, createResolverNode, createSearchSkillsTool, createSkillRegistryRef, createSkillTools, createSmartAgent, createSpawnTool, createSubagentRegistryRef, createSubagentTools, createTool, createToolLimitFinalizeNode, createToolsNode, customCallbackRule, customGuardrail, customSink, dedupeToolsByName, defaultTokenCounter, defineHook, definePlugin, detectLanguage, detectTextFormat, detectVolatileContent, digestToolInputArguments, digestToolInputValue, emptyUsage, evaluateGuardrails, extractLatestUserQuery, extractMessageText, fileCheckpointStore, fileSink, findSubagent, formatZodError, fromLangchainModel, fromLangchainTools, fromNativeProvider, generateSpanId, generateTraceId, getModelCapabilities, getNestedValue, getResolvedSmartConfig, getTokenCounter, hasToolResponseRecoveryReference, httpGuardrail, httpSink, inMemoryCheckpointStore, inMemoryConversationStore, isHookImplemented, isOpenAIHostedEndpoint, isSmartModel, isValidIban, isValidLuhn, isValidTckn, jsonSchemaRule, defaultBuildPayload as langfuseDefaultPayload, langfuseTracing, languageGuard, loadSkillsFromDisk, mapConsoleHookVerdict, mapTextParts, mcp, mediaPolicy, normalizeSmartAgentOptions, normalizeVerdicts, openAIModeration, otelTracing, otlpSink, outputGuard, parseApprovalDecision, parseSkillFrontmatter, pathSandbox, piiRedaction, pluginCapabilities, portkeyGateway, portkeyGuardrail, preopenSkills, preopenToolCallId, prepareStrictToolMenu, promptInjectionGuard, rateLimit, readMemoryFacts, redactText, regexGuardrail, regexRule, replaceTextContent, resolveAvailableSkills, resolveAvailableSubagents, resolveInputRetention, resolveMemoryStore, resolveReasoning, resolveStrategy, resolveSubagentTools, resolveSummarizationRetention, resolveToolApprovalState, resolveUserQuestionState, responseCache, restoreSnapshot, restoreToolCalls, runSmartAgentEvalHarness, scoreItemsByRelevance, searchSkills, seedChildMessages, selectTopIndicesInOrder, sessionMetrics, setTokenCounter, startStreamingSession, summarizeObject, textFromContent, toStrictCompatible, toStrictToolSchema, tokenize, toolPolicy, traceSessionToOtlp, validateReasoningConfig, validateToolArgs, webhookApproval, withTools, withinDepth, writeSummaryFactsToMemory };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZodError, ZodSchema, z } from 'zod';
|
|
1
|
+
import { ZodError, ZodSchema, z, ZodTypeAny } from 'zod';
|
|
2
2
|
import { JSONSchema7 } from 'json-schema';
|
|
3
3
|
|
|
4
4
|
/** Describes what a model/provider natively supports. */
|
|
@@ -3874,6 +3874,37 @@ type OpenAIProviderConfig = {
|
|
|
3874
3874
|
* where it matters most: a self-hosted model is named by whoever served it.
|
|
3875
3875
|
*/
|
|
3876
3876
|
responsesApi?: "auto" | "never" | "always";
|
|
3877
|
+
/**
|
|
3878
|
+
* Models that go to the Responses API, named explicitly. Opt-in; unset by
|
|
3879
|
+
* default, and nothing here is inferred from a model name.
|
|
3880
|
+
*
|
|
3881
|
+
* A string matches the request's model (or `defaultModel`) exactly; a RegExp
|
|
3882
|
+
* is tested against it. A match routes the request to Responses whether or
|
|
3883
|
+
* not it carries `reasoning` — the case this exists for is a model that
|
|
3884
|
+
* reasons by default and rejects function tools on Chat Completions, where
|
|
3885
|
+
* sending no reasoning field does not help. `responsesApi: "never"` still
|
|
3886
|
+
* wins; under `"always"` the routing is unchanged.
|
|
3887
|
+
*
|
|
3888
|
+
* Requests for a matched model also get, on the Responses body only:
|
|
3889
|
+
* - Chat Completions spellings arriving through `extra`, which /responses
|
|
3890
|
+
* rejects with a 400, re-spelled with their values unchanged:
|
|
3891
|
+
* `reasoning_effort` → `reasoning.effort` (a request `reasoning` effort
|
|
3892
|
+
* still wins), `max_tokens` / `max_completion_tokens` →
|
|
3893
|
+
* `max_output_tokens`, `response_format` → `text.format`, and
|
|
3894
|
+
* `stream_options.include_usage` dropped.
|
|
3895
|
+
* - real SSE streaming, when `responsesStreaming` is also true.
|
|
3896
|
+
*
|
|
3897
|
+
* Honoured by `OpenAIProvider` itself only; `AzureProvider` and
|
|
3898
|
+
* `OpenAICompatibleProvider` ignore it.
|
|
3899
|
+
*/
|
|
3900
|
+
responsesApiModels?: Array<string | RegExp>;
|
|
3901
|
+
/**
|
|
3902
|
+
* Stream Responses API output as it arrives (text and tool-call argument
|
|
3903
|
+
* deltas) for models in `responsesApiModels`. Default false, which keeps the
|
|
3904
|
+
* existing behaviour: one non-streaming Responses call, emitted as a single
|
|
3905
|
+
* chunk. Has no effect on any other request.
|
|
3906
|
+
*/
|
|
3907
|
+
responsesStreaming?: boolean;
|
|
3877
3908
|
};
|
|
3878
3909
|
type AnthropicProviderConfig = {
|
|
3879
3910
|
provider: "anthropic";
|
|
@@ -5167,6 +5198,13 @@ declare function resolveStrategy(model: any): StructuredOutputStrategy;
|
|
|
5167
5198
|
* - Auto-detection from model class name / metadata
|
|
5168
5199
|
*/
|
|
5169
5200
|
declare function getModelCapabilities(model: any): ModelCapabilities;
|
|
5201
|
+
/**
|
|
5202
|
+
* `ChatOpenAI` is also how OpenAI-COMPATIBLE servers (vLLM, Ollama, LM Studio,
|
|
5203
|
+
* gateways) are reached — with a custom `baseURL`. Strict tool mode is an
|
|
5204
|
+
* OpenAI/Azure feature, so only those hosts count; everything else gets the
|
|
5205
|
+
* plain schemas. No base URL means the SDK default, api.openai.com.
|
|
5206
|
+
*/
|
|
5207
|
+
declare function isOpenAIHostedEndpoint(lcModel: any): boolean;
|
|
5170
5208
|
|
|
5171
5209
|
declare function captureSnapshot(state: SmartState, options?: SnapshotOptions): AgentSnapshot;
|
|
5172
5210
|
declare function restoreSnapshot(snapshot: AgentSnapshot, restoreOptions?: RestoreSnapshotOptions): SmartState;
|
|
@@ -5367,6 +5405,56 @@ declare function validateToolArgs(tool: ToolInterface<any, any, any>, args: unkn
|
|
|
5367
5405
|
*/
|
|
5368
5406
|
declare function coerceToolArgs(schema: unknown, value: unknown): unknown;
|
|
5369
5407
|
|
|
5408
|
+
/**
|
|
5409
|
+
* Makes tool argument schemas acceptable to a provider's STRICT tool mode.
|
|
5410
|
+
*
|
|
5411
|
+
* OpenAI strict mode (`strict: true` on a function tool) has three rules that
|
|
5412
|
+
* ordinary tool schemas break:
|
|
5413
|
+
*
|
|
5414
|
+
* 1. every property must be listed in `required` — there are no optional
|
|
5415
|
+
* arguments, so a tool with an optional `offset` makes the provider reject
|
|
5416
|
+
* the WHOLE request (`400 Invalid schema for function … Missing 'offset'`);
|
|
5417
|
+
* 2. every object must be closed (`additionalProperties: false`), including
|
|
5418
|
+
* each branch of a union — `manage_plan`'s `todoList` union failed here;
|
|
5419
|
+
* 3. there is no free-form object — `body: { type: object }` with no
|
|
5420
|
+
* properties has no strict form at all.
|
|
5421
|
+
*
|
|
5422
|
+
* The transform keeps the tool's MEANING and changes only its wire form:
|
|
5423
|
+
*
|
|
5424
|
+
* - an optional argument becomes required-but-nullable (the model sends
|
|
5425
|
+
* `null` for "not given"), and `restore` drops those nulls again before the
|
|
5426
|
+
* tool runs — the executor sees exactly the arguments it always saw;
|
|
5427
|
+
* - objects (and union branches) are closed;
|
|
5428
|
+
* - a free-form object/record/any becomes a JSON-encoded STRING, which
|
|
5429
|
+
* `restore` parses back into the value the executor expects.
|
|
5430
|
+
*
|
|
5431
|
+
* `prepareStrictToolMenu` applies it at the one point every tool — the
|
|
5432
|
+
* caller's and the SDK's own (manage_plan, open_skill, spawn_subagent, …) —
|
|
5433
|
+
* passes through on its way to the provider, and `restoreToolCalls` maps the
|
|
5434
|
+
* model's strict-shaped arguments back before they are validated and run.
|
|
5435
|
+
*/
|
|
5436
|
+
|
|
5437
|
+
interface StrictTransform {
|
|
5438
|
+
schema: ZodTypeAny;
|
|
5439
|
+
/** Maps the model's strict-shaped arguments back to what the tool expects. */
|
|
5440
|
+
restore: (value: unknown) => unknown;
|
|
5441
|
+
}
|
|
5442
|
+
type StrictRestorers = Map<string, StrictTransform["restore"]>;
|
|
5443
|
+
declare function toStrictCompatible(schema: ZodTypeAny): StrictTransform;
|
|
5444
|
+
/** The strict transform of one tool's argument schema, top level included. */
|
|
5445
|
+
declare function toStrictToolSchema(schema: ZodTypeAny): StrictTransform;
|
|
5446
|
+
/**
|
|
5447
|
+
* Restores one model message's tool-call arguments to the tools' ORIGINAL
|
|
5448
|
+
* shape: the "not given" nulls dropped, JSON-encoded free-form values decoded.
|
|
5449
|
+
* Handles the SDK/LangChain form (`args` object), the raw OpenAI form
|
|
5450
|
+
* (`function.arguments` string) and `additional_kwargs.tool_calls`.
|
|
5451
|
+
*/
|
|
5452
|
+
declare function restoreToolCalls<M>(message: M, restorers: StrictRestorers): M;
|
|
5453
|
+
declare function prepareStrictToolMenu<T extends object>(tools: T[]): {
|
|
5454
|
+
menu: T[];
|
|
5455
|
+
restorers: StrictRestorers;
|
|
5456
|
+
};
|
|
5457
|
+
|
|
5370
5458
|
declare function fileSink(path?: string): TraceSinkConfig;
|
|
5371
5459
|
type CustomSinkArg = ((event: TraceEventRecord) => void | Promise<void>) | {
|
|
5372
5460
|
onEvent?: (event: TraceEventRecord) => void | Promise<void>;
|
|
@@ -5452,7 +5540,11 @@ declare class OpenAIProvider extends BaseProvider {
|
|
|
5452
5540
|
protected readonly defaultModel: string;
|
|
5453
5541
|
protected readonly defaultHeaders: Record<string, string>;
|
|
5454
5542
|
protected readonly responsesApi: "auto" | "never" | "always";
|
|
5543
|
+
private readonly responsesApiModels;
|
|
5544
|
+
private readonly responsesStreaming;
|
|
5455
5545
|
constructor(config: OpenAIProviderConfig);
|
|
5546
|
+
/** True when the caller listed this request's model in `responsesApiModels`. */
|
|
5547
|
+
private isResponsesApiModel;
|
|
5456
5548
|
/** True when this request should go to the Responses API rather than Chat
|
|
5457
5549
|
* Completions — which exposes `reasoning.effort` and reasoning summaries that
|
|
5458
5550
|
* Chat Completions silently drops.
|
|
@@ -5461,12 +5553,23 @@ declare class OpenAIProvider extends BaseProvider {
|
|
|
5461
5553
|
* carries a reasoning config AND the model name looks like an o-series/gpt-5
|
|
5462
5554
|
* model. `never`/`always` let a caller state the answer instead, because the
|
|
5463
5555
|
* name check is a guess and the two APIs differ in far more than reasoning —
|
|
5464
|
-
* see `responsesApi` in OpenAIProviderConfig.
|
|
5556
|
+
* see `responsesApi` in OpenAIProviderConfig.
|
|
5557
|
+
*
|
|
5558
|
+
* A model listed in `responsesApiModels` is the caller stating the answer
|
|
5559
|
+
* for that model alone; `never` still overrides it. */
|
|
5465
5560
|
protected useResponsesApi(request: ChatCompletionRequest): boolean;
|
|
5466
5561
|
complete(request: ChatCompletionRequest): Promise<ChatCompletionResponse>;
|
|
5467
5562
|
completeStream(request: ChatCompletionRequest): AsyncGenerator<ChatCompletionChunk, void, unknown>;
|
|
5468
5563
|
protected buildRequestBody(request: ChatCompletionRequest, stream: boolean): Record<string, any>;
|
|
5469
5564
|
protected completeResponses(request: ChatCompletionRequest): Promise<ChatCompletionResponse>;
|
|
5565
|
+
/** Real Responses SSE streaming, for models opted in through
|
|
5566
|
+
* `responsesApiModels` with `responsesStreaming` on. Emits the same chunk
|
|
5567
|
+
* shapes as the Chat Completions stream: text deltas as they arrive, a tool
|
|
5568
|
+
* call's id + name when it opens and its argument fragments under that id,
|
|
5569
|
+
* then one final chunk with usage, finish reason and any reasoning summary
|
|
5570
|
+
* (taken from the completed response, exactly as the non-streaming parse
|
|
5571
|
+
* reads it). */
|
|
5572
|
+
private streamResponses;
|
|
5470
5573
|
protected buildResponsesBody(request: ChatCompletionRequest): Record<string, any>;
|
|
5471
5574
|
/** Maps a unified message to a Responses API `input` item. */
|
|
5472
5575
|
protected toResponsesInput(m: UnifiedMessage): Record<string, any>;
|
|
@@ -5633,4 +5736,4 @@ declare function fromNativeProvider(provider: BaseProvider, options?: NativeMode
|
|
|
5633
5736
|
*/
|
|
5634
5737
|
declare function createProvider(config: ProviderConfig): BaseProvider;
|
|
5635
5738
|
|
|
5636
|
-
export { type AIMessage, ASK_USER_TOOL_NAME, type AgentInstance, type AgentInvokeResult, type AgentLimits, type AgentOptions, type AgentPlugin, type AgentRuleOptions, type AgentRuntimeConfig, type AgentSnapshot, type AgentSnapshotMetadata, type AgentState, AnthropicProvider, type AnthropicProviderConfig, type ApprovalTransport, type AudioContent, type AuditEntry, type AuditLogConfig, type AzureContentSafetyConfig, AzureProvider, type AzureProviderConfig, type BaseChatMessage, type BaseChatMessagePart, type BaseChatModel, type BaseMessage, BaseProvider, type BedrockGuardrailConfig, BedrockProvider, type BedrockProviderConfig, type BudgetGuardConfig, type BuildChildConfig, type BuiltInRuntimeProfile, CCRStore, CONSOLE_HOOK_MAP, CONTEXT_PILOT_JSON_MARKER_KEY, CONTROL_PLANE_TOOL_NAMES, type CancellationTokenLike, type CancelledEvent, type CapabilityStatus, type ChatCompletionChunk, type ChatCompletionRequest, type ChatCompletionResponse, type CheckpointPluginConfig, type CheckpointStore, type ChildContextPolicy, type CodeDetectionRuleOptions, type CodeGuardrailOptions, type CognipeerGuardrailConfig, type CompressToolOutputParams, type ContextBuilder, type ContextPilotCCRConfig, type ContextPilotCacheAlignmentConfig, type ContextPilotCompressionConfig, type ContextPilotCompressionStats, type ContextPilotCompressorKind, type ContextPilotConfig, type ContextPilotDedupConfig, type ContextPilotDiffCompressionConfig, type ContextPilotJsonCompressionConfig, type ContextPilotLogCompressionConfig, type ContextPilotResult, type ContextPilotRuntime, type ContextPilotSearchCompressionConfig, type ContextPilotTextCompressionConfig, type ContextPolicy, type ContextToolsStateRef, type ConversationGuardrail, type ConversationPluginConfig, type ConversationStore, type CostEstimator, type CustomRuleCallback, type CustomRuleOptions, DEFAULT_MAX_TOOL_INPUT_FIELD_CHARS, DEFAULT_PROFILE_CONFIGS, DEFAULT_SKILL_POLICY, DEFAULT_SUBAGENT_POLICY, DEFAULT_SUBAGENT_TOOL_NAMES, DEFAULT_TOOL_INPUT_DIGEST_HEAD_CHARS, DELEGATION_TOOL_NAMES, DedupTracker, type DelegationEventStamp, type DelegationMode, type EvalCase, type EvalCaseResult, type EvalFamily, type EvalHarnessMetrics, type EvalHarnessParams, type EvalHarnessResult, type EvalProfileDescriptor, type EvalProfileTarget, type FileContent, type FinalAnswerEvent, type FinishReason, type GateResult, type GuardrailCallContext, type GuardrailContext, type GuardrailDisposition, type GuardrailEvent, type GuardrailIncident, type GuardrailOutcome, GuardrailPhase, type GuardrailPhaseName, type GuardrailPluginOptions, type GuardrailRequest, type GuardrailRule, type GuardrailRuleResult, type GuardrailTransport, type GuardrailVerdict, type GuardrailViolation, HOOK_CONTRACT_VERSION, HOOK_NAMES, type HandoffDescriptor, type HandoffEvent, type HookContext, type HookDecision, type HookHandler, type HookMap, type HookName, type HookRegistrations, HookTimeoutError, type HttpGuardrailOptions, type HumanInTheLoopAskUserConfig, type HumanInTheLoopOptions, type HumanInTheLoopRuntimeConfig, type ImageContent, InMemoryMemoryStore, type InjectionScan, type InvokeConfig, type JsonGuardrailOptions, type JsonSchemaRuleOptions, type LangfuseBuildContext, type LangfuseEvent, type LangfuseEventKind, type LangfuseTracingConfig, type LanguageGuardConfig, type LoadSkillsOptions, type MaybePromise, type McpConfig, type McpConnection, type MediaAttachment, type MediaKind, type MediaPolicyConfig, type MemoryFact, type MemoryProviderKind, type MemoryReadPolicy, type MemoryScope, type MemoryStore, type MemoryWritePolicy, type Message, type MetadataEvent, type ModelCapabilities, NativeJsonSchemaStrategy, type NativeModelOptions, type NativeReasoningConfig, OpenAICompatibleProvider, type OpenAICompatibleProviderConfig, type OpenAIModerationConfig, OpenAIProvider, type OpenAIProviderConfig, type OtelTracingConfig, type OutputGuardConfig, PREOPEN_TOOL_CALL_PREFIX, type PendingToolApproval, type PendingUserQuestion, type PiiDetector, type PiiEntity, type PiiRedactionConfig, type PlanEvent, type PlanStepRecord, type PlanningMode, type PluginContributions, type PluginEvent, type PluginFailureMode, type PluginHost, type PluginHostOptions, type PluginLogger, type PluginProvides, type PluginRunHost, type PluginSetupContext, type PortkeyGatewayConfig, type PortkeyGuardrailConfig, type PreopenSkillsResult, type ProfileConfig, type ProgressEvent, type ProgressUpdate, type PromptHooks, type PromptInjectionFamily, type PromptInjectionGuardConfig, type PromptSource, type ProviderConfig, ProviderError, type ToolCall as ProviderToolCall, type ToolDefinition as ProviderToolDefinition, type ProviderType, type RateLimitConfig, type ReasoningConfig, type ReasoningLevel, type RedactionResult, type ReflectionCadence, type ReflectionConfig, type ReflectionEvent, type ReflectionHookContext, type ReflectionRecord, type RegexGuardrailConfig, type RegexGuardrailOptions, type RegexRuleOptions, type ReplanPolicy, type ResolvedContextPilotConfig, type ResolvedSmartAgentConfig, type ResolvedTraceConfig, type ResolvedTraceSink, type ResponseCacheConfig, type RestoreSnapshotOptions, type RuntimeProfile, SMALL_TIER_SKILL_POLICY, type SdkCapabilities, type SerializableSmartState, type SessionMetrics, type SessionMetricsConfig, type Skill, type SkillDisclosure, type SkillExecutionContext, type SkillFrontmatter, type SkillFs, type SkillModelTier, type SkillPolicy, type SkillRegistryRef, type SkillSource, type SkillToolDeps, type SkillToolHeader, type SlotName, type SmartAgentBudgetConfig, type SmartAgentContextConfig, type SmartAgentCustomProfileConfig, type SmartAgentDelegationConfig, type SmartAgentEvent, type SmartAgentInstance, type SmartAgentLimits, type SmartAgentMemoryConfig, type SmartAgentOptions, type SmartAgentPlanningConfig, type SmartAgentSummarizationConfig, type SmartAgentToolResponseConfig, type SmartAgentTracingConfig, type SmartModel, type SmartState, type SmartToolFn, type SnapshotOptions, type SnapshotRuntimeHint, type StreamChunk, type StreamEvent, type StructuredOutputError, type StructuredOutputFieldError, StructuredOutputManager, type StructuredOutputManagerConfig, type StructuredOutputResult, type StructuredOutputStrategy, type StructuredSummary, type SubagentDef, type SubagentEvent, type SubagentMode, type SubagentPendingRecord, type SubagentPolicy, type SubagentRegistryRef, type SubagentResult, type SubagentToolDeps, type SubagentToolNames, type SummarizationEvent, type SummarizationMode, type SummarizerInput, type SummarizerResult, type SummarizerStrategy, type SummaryFactItem, type SummaryIntegrityCheck, TOOL_INPUT_DIGEST_KEY, type TextContent, type TokenCounter, type TokenUsage, type ToolApprovalEvent, type ToolApprovalResolution, type ToolApprovalStatus, ToolBasedStrategy, type ToolCachePolicy, type ToolCallEvent, type ToolInputDigestOptions, type ToolInputDigestResult, type ToolInputRetentionPolicy, type ToolInterface, type ToolPolicyConfig, type ToolResponseClassification, type ToolResponseRetentionPolicy, type ToolRetentionDeclarations, type ToolRetentionSpec, type ToolRetryPolicy, type ToolRule, type TraceDataSection, type TraceErrorRecord, type TraceEventRecord, type TraceMessageSection, type TraceMetadataSection, type TraceSessionConfigSnapshot, type TraceSessionFile, type TraceSessionStatus, type TraceSessionSummary, type TraceSinkCognipeerConfig, type TraceSinkConfig, type TraceSinkCustomConfig, type TraceSinkFileConfig, type TraceSinkHttpConfig, type TraceSinkOtlpConfig, type TraceSinkSnapshot, type TraceSummarySection, type TraceToolCallSection, type TraceToolDefinition, type TraceToolDefinitionsSection, type TraceToolDetails, type TraceToolResponseSection, type TraceToolResultSection, type TracingConfig, type TracingMode, type UnifiedMessage, type UserQuestionAnswer, type UserQuestionAnswerSet, type UserQuestionEvent, type UserQuestionItem, type UserQuestionOption, type UserQuestionResolution, type UserQuestionStatus, VertexProvider, type VertexProviderConfig, type VolatileContentFinding, type VolatileContentPattern, type WebhookApprovalConfig, agentVerdictRule, appendBoundTools, auditLog, azureContentSafety, bedrockGuardrail, budgetGuard, buildHandoffTools, buildResponseFormatSection, buildSkillHeaderBlock, buildSubagentCatalogBlock, buildSystemPrompt, buildToolDefinitionsSection, canOpenSkill, canSpawn, captureSnapshot, checkpointing, codePresenceRule, coerceToolArgs, cognipeerGuardrail, cognipeerSink, collectAttachments, collectToolRetentionDeclarations, composeToolSets, compressDiffOutput, compressJsonOutput, compressLogOutput, compressSearchOutput, compressTextOutput, compressToolOutput, contentToString, conversationHistory, countApproxTokens, countMessagesTokens, createAgent, createAgentNode, createAskUserQuestionTool, createBindSkillToolsTool, createCodeGuardrail, createContextPilotRuntime, createContextSummarizeNode, createContextTools, createDelegateTool, createGetToolResponseTool, createGuardrail, createGuardrailPlugin, createJsonGuardrail, createManageTodoListAliasTool, createManageTodoTool, createOpenSkillTool, createParallelTool, createPluginHost, createProvider, createRegexGuardrail, createResolverNode, createSearchSkillsTool, createSkillRegistryRef, createSkillTools, createSmartAgent, createSpawnTool, createSubagentRegistryRef, createSubagentTools, createTool, createToolLimitFinalizeNode, createToolsNode, customCallbackRule, customGuardrail, customSink, dedupeToolsByName, defaultTokenCounter, defineHook, definePlugin, detectLanguage, detectTextFormat, detectVolatileContent, digestToolInputArguments, digestToolInputValue, emptyUsage, evaluateGuardrails, extractLatestUserQuery, extractMessageText, fileCheckpointStore, fileSink, findSubagent, formatZodError, fromLangchainModel, fromLangchainTools, fromNativeProvider, generateSpanId, generateTraceId, getModelCapabilities, getNestedValue, getResolvedSmartConfig, getTokenCounter, hasToolResponseRecoveryReference, httpGuardrail, httpSink, inMemoryCheckpointStore, inMemoryConversationStore, isHookImplemented, isSmartModel, isValidIban, isValidLuhn, isValidTckn, jsonSchemaRule, defaultBuildPayload as langfuseDefaultPayload, langfuseTracing, languageGuard, loadSkillsFromDisk, mapConsoleHookVerdict, mapTextParts, mcp, mediaPolicy, normalizeSmartAgentOptions, normalizeVerdicts, openAIModeration, otelTracing, otlpSink, outputGuard, parseApprovalDecision, parseSkillFrontmatter, pathSandbox, piiRedaction, pluginCapabilities, portkeyGateway, portkeyGuardrail, preopenSkills, preopenToolCallId, promptInjectionGuard, rateLimit, readMemoryFacts, redactText, regexGuardrail, regexRule, replaceTextContent, resolveAvailableSkills, resolveAvailableSubagents, resolveInputRetention, resolveMemoryStore, resolveReasoning, resolveStrategy, resolveSubagentTools, resolveSummarizationRetention, resolveToolApprovalState, resolveUserQuestionState, responseCache, restoreSnapshot, runSmartAgentEvalHarness, scoreItemsByRelevance, searchSkills, seedChildMessages, selectTopIndicesInOrder, sessionMetrics, setTokenCounter, startStreamingSession, summarizeObject, textFromContent, tokenize, toolPolicy, traceSessionToOtlp, validateReasoningConfig, validateToolArgs, webhookApproval, withTools, withinDepth, writeSummaryFactsToMemory };
|
|
5739
|
+
export { type AIMessage, ASK_USER_TOOL_NAME, type AgentInstance, type AgentInvokeResult, type AgentLimits, type AgentOptions, type AgentPlugin, type AgentRuleOptions, type AgentRuntimeConfig, type AgentSnapshot, type AgentSnapshotMetadata, type AgentState, AnthropicProvider, type AnthropicProviderConfig, type ApprovalTransport, type AudioContent, type AuditEntry, type AuditLogConfig, type AzureContentSafetyConfig, AzureProvider, type AzureProviderConfig, type BaseChatMessage, type BaseChatMessagePart, type BaseChatModel, type BaseMessage, BaseProvider, type BedrockGuardrailConfig, BedrockProvider, type BedrockProviderConfig, type BudgetGuardConfig, type BuildChildConfig, type BuiltInRuntimeProfile, CCRStore, CONSOLE_HOOK_MAP, CONTEXT_PILOT_JSON_MARKER_KEY, CONTROL_PLANE_TOOL_NAMES, type CancellationTokenLike, type CancelledEvent, type CapabilityStatus, type ChatCompletionChunk, type ChatCompletionRequest, type ChatCompletionResponse, type CheckpointPluginConfig, type CheckpointStore, type ChildContextPolicy, type CodeDetectionRuleOptions, type CodeGuardrailOptions, type CognipeerGuardrailConfig, type CompressToolOutputParams, type ContextBuilder, type ContextPilotCCRConfig, type ContextPilotCacheAlignmentConfig, type ContextPilotCompressionConfig, type ContextPilotCompressionStats, type ContextPilotCompressorKind, type ContextPilotConfig, type ContextPilotDedupConfig, type ContextPilotDiffCompressionConfig, type ContextPilotJsonCompressionConfig, type ContextPilotLogCompressionConfig, type ContextPilotResult, type ContextPilotRuntime, type ContextPilotSearchCompressionConfig, type ContextPilotTextCompressionConfig, type ContextPolicy, type ContextToolsStateRef, type ConversationGuardrail, type ConversationPluginConfig, type ConversationStore, type CostEstimator, type CustomRuleCallback, type CustomRuleOptions, DEFAULT_MAX_TOOL_INPUT_FIELD_CHARS, DEFAULT_PROFILE_CONFIGS, DEFAULT_SKILL_POLICY, DEFAULT_SUBAGENT_POLICY, DEFAULT_SUBAGENT_TOOL_NAMES, DEFAULT_TOOL_INPUT_DIGEST_HEAD_CHARS, DELEGATION_TOOL_NAMES, DedupTracker, type DelegationEventStamp, type DelegationMode, type EvalCase, type EvalCaseResult, type EvalFamily, type EvalHarnessMetrics, type EvalHarnessParams, type EvalHarnessResult, type EvalProfileDescriptor, type EvalProfileTarget, type FileContent, type FinalAnswerEvent, type FinishReason, type GateResult, type GuardrailCallContext, type GuardrailContext, type GuardrailDisposition, type GuardrailEvent, type GuardrailIncident, type GuardrailOutcome, GuardrailPhase, type GuardrailPhaseName, type GuardrailPluginOptions, type GuardrailRequest, type GuardrailRule, type GuardrailRuleResult, type GuardrailTransport, type GuardrailVerdict, type GuardrailViolation, HOOK_CONTRACT_VERSION, HOOK_NAMES, type HandoffDescriptor, type HandoffEvent, type HookContext, type HookDecision, type HookHandler, type HookMap, type HookName, type HookRegistrations, HookTimeoutError, type HttpGuardrailOptions, type HumanInTheLoopAskUserConfig, type HumanInTheLoopOptions, type HumanInTheLoopRuntimeConfig, type ImageContent, InMemoryMemoryStore, type InjectionScan, type InvokeConfig, type JsonGuardrailOptions, type JsonSchemaRuleOptions, type LangfuseBuildContext, type LangfuseEvent, type LangfuseEventKind, type LangfuseTracingConfig, type LanguageGuardConfig, type LoadSkillsOptions, type MaybePromise, type McpConfig, type McpConnection, type MediaAttachment, type MediaKind, type MediaPolicyConfig, type MemoryFact, type MemoryProviderKind, type MemoryReadPolicy, type MemoryScope, type MemoryStore, type MemoryWritePolicy, type Message, type MetadataEvent, type ModelCapabilities, NativeJsonSchemaStrategy, type NativeModelOptions, type NativeReasoningConfig, OpenAICompatibleProvider, type OpenAICompatibleProviderConfig, type OpenAIModerationConfig, OpenAIProvider, type OpenAIProviderConfig, type OtelTracingConfig, type OutputGuardConfig, PREOPEN_TOOL_CALL_PREFIX, type PendingToolApproval, type PendingUserQuestion, type PiiDetector, type PiiEntity, type PiiRedactionConfig, type PlanEvent, type PlanStepRecord, type PlanningMode, type PluginContributions, type PluginEvent, type PluginFailureMode, type PluginHost, type PluginHostOptions, type PluginLogger, type PluginProvides, type PluginRunHost, type PluginSetupContext, type PortkeyGatewayConfig, type PortkeyGuardrailConfig, type PreopenSkillsResult, type ProfileConfig, type ProgressEvent, type ProgressUpdate, type PromptHooks, type PromptInjectionFamily, type PromptInjectionGuardConfig, type PromptSource, type ProviderConfig, ProviderError, type ToolCall as ProviderToolCall, type ToolDefinition as ProviderToolDefinition, type ProviderType, type RateLimitConfig, type ReasoningConfig, type ReasoningLevel, type RedactionResult, type ReflectionCadence, type ReflectionConfig, type ReflectionEvent, type ReflectionHookContext, type ReflectionRecord, type RegexGuardrailConfig, type RegexGuardrailOptions, type RegexRuleOptions, type ReplanPolicy, type ResolvedContextPilotConfig, type ResolvedSmartAgentConfig, type ResolvedTraceConfig, type ResolvedTraceSink, type ResponseCacheConfig, type RestoreSnapshotOptions, type RuntimeProfile, SMALL_TIER_SKILL_POLICY, type SdkCapabilities, type SerializableSmartState, type SessionMetrics, type SessionMetricsConfig, type Skill, type SkillDisclosure, type SkillExecutionContext, type SkillFrontmatter, type SkillFs, type SkillModelTier, type SkillPolicy, type SkillRegistryRef, type SkillSource, type SkillToolDeps, type SkillToolHeader, type SlotName, type SmartAgentBudgetConfig, type SmartAgentContextConfig, type SmartAgentCustomProfileConfig, type SmartAgentDelegationConfig, type SmartAgentEvent, type SmartAgentInstance, type SmartAgentLimits, type SmartAgentMemoryConfig, type SmartAgentOptions, type SmartAgentPlanningConfig, type SmartAgentSummarizationConfig, type SmartAgentToolResponseConfig, type SmartAgentTracingConfig, type SmartModel, type SmartState, type SmartToolFn, type SnapshotOptions, type SnapshotRuntimeHint, type StreamChunk, type StreamEvent, type StrictRestorers, type StrictTransform, type StructuredOutputError, type StructuredOutputFieldError, StructuredOutputManager, type StructuredOutputManagerConfig, type StructuredOutputResult, type StructuredOutputStrategy, type StructuredSummary, type SubagentDef, type SubagentEvent, type SubagentMode, type SubagentPendingRecord, type SubagentPolicy, type SubagentRegistryRef, type SubagentResult, type SubagentToolDeps, type SubagentToolNames, type SummarizationEvent, type SummarizationMode, type SummarizerInput, type SummarizerResult, type SummarizerStrategy, type SummaryFactItem, type SummaryIntegrityCheck, TOOL_INPUT_DIGEST_KEY, type TextContent, type TokenCounter, type TokenUsage, type ToolApprovalEvent, type ToolApprovalResolution, type ToolApprovalStatus, ToolBasedStrategy, type ToolCachePolicy, type ToolCallEvent, type ToolInputDigestOptions, type ToolInputDigestResult, type ToolInputRetentionPolicy, type ToolInterface, type ToolPolicyConfig, type ToolResponseClassification, type ToolResponseRetentionPolicy, type ToolRetentionDeclarations, type ToolRetentionSpec, type ToolRetryPolicy, type ToolRule, type TraceDataSection, type TraceErrorRecord, type TraceEventRecord, type TraceMessageSection, type TraceMetadataSection, type TraceSessionConfigSnapshot, type TraceSessionFile, type TraceSessionStatus, type TraceSessionSummary, type TraceSinkCognipeerConfig, type TraceSinkConfig, type TraceSinkCustomConfig, type TraceSinkFileConfig, type TraceSinkHttpConfig, type TraceSinkOtlpConfig, type TraceSinkSnapshot, type TraceSummarySection, type TraceToolCallSection, type TraceToolDefinition, type TraceToolDefinitionsSection, type TraceToolDetails, type TraceToolResponseSection, type TraceToolResultSection, type TracingConfig, type TracingMode, type UnifiedMessage, type UserQuestionAnswer, type UserQuestionAnswerSet, type UserQuestionEvent, type UserQuestionItem, type UserQuestionOption, type UserQuestionResolution, type UserQuestionStatus, VertexProvider, type VertexProviderConfig, type VolatileContentFinding, type VolatileContentPattern, type WebhookApprovalConfig, agentVerdictRule, appendBoundTools, auditLog, azureContentSafety, bedrockGuardrail, budgetGuard, buildHandoffTools, buildResponseFormatSection, buildSkillHeaderBlock, buildSubagentCatalogBlock, buildSystemPrompt, buildToolDefinitionsSection, canOpenSkill, canSpawn, captureSnapshot, checkpointing, codePresenceRule, coerceToolArgs, cognipeerGuardrail, cognipeerSink, collectAttachments, collectToolRetentionDeclarations, composeToolSets, compressDiffOutput, compressJsonOutput, compressLogOutput, compressSearchOutput, compressTextOutput, compressToolOutput, contentToString, conversationHistory, countApproxTokens, countMessagesTokens, createAgent, createAgentNode, createAskUserQuestionTool, createBindSkillToolsTool, createCodeGuardrail, createContextPilotRuntime, createContextSummarizeNode, createContextTools, createDelegateTool, createGetToolResponseTool, createGuardrail, createGuardrailPlugin, createJsonGuardrail, createManageTodoListAliasTool, createManageTodoTool, createOpenSkillTool, createParallelTool, createPluginHost, createProvider, createRegexGuardrail, createResolverNode, createSearchSkillsTool, createSkillRegistryRef, createSkillTools, createSmartAgent, createSpawnTool, createSubagentRegistryRef, createSubagentTools, createTool, createToolLimitFinalizeNode, createToolsNode, customCallbackRule, customGuardrail, customSink, dedupeToolsByName, defaultTokenCounter, defineHook, definePlugin, detectLanguage, detectTextFormat, detectVolatileContent, digestToolInputArguments, digestToolInputValue, emptyUsage, evaluateGuardrails, extractLatestUserQuery, extractMessageText, fileCheckpointStore, fileSink, findSubagent, formatZodError, fromLangchainModel, fromLangchainTools, fromNativeProvider, generateSpanId, generateTraceId, getModelCapabilities, getNestedValue, getResolvedSmartConfig, getTokenCounter, hasToolResponseRecoveryReference, httpGuardrail, httpSink, inMemoryCheckpointStore, inMemoryConversationStore, isHookImplemented, isOpenAIHostedEndpoint, isSmartModel, isValidIban, isValidLuhn, isValidTckn, jsonSchemaRule, defaultBuildPayload as langfuseDefaultPayload, langfuseTracing, languageGuard, loadSkillsFromDisk, mapConsoleHookVerdict, mapTextParts, mcp, mediaPolicy, normalizeSmartAgentOptions, normalizeVerdicts, openAIModeration, otelTracing, otlpSink, outputGuard, parseApprovalDecision, parseSkillFrontmatter, pathSandbox, piiRedaction, pluginCapabilities, portkeyGateway, portkeyGuardrail, preopenSkills, preopenToolCallId, prepareStrictToolMenu, promptInjectionGuard, rateLimit, readMemoryFacts, redactText, regexGuardrail, regexRule, replaceTextContent, resolveAvailableSkills, resolveAvailableSubagents, resolveInputRetention, resolveMemoryStore, resolveReasoning, resolveStrategy, resolveSubagentTools, resolveSummarizationRetention, resolveToolApprovalState, resolveUserQuestionState, responseCache, restoreSnapshot, restoreToolCalls, runSmartAgentEvalHarness, scoreItemsByRelevance, searchSkills, seedChildMessages, selectTopIndicesInOrder, sessionMetrics, setTokenCounter, startStreamingSession, summarizeObject, textFromContent, toStrictCompatible, toStrictToolSchema, tokenize, toolPolicy, traceSessionToOtlp, validateReasoningConfig, validateToolArgs, webhookApproval, withTools, withinDepth, writeSummaryFactsToMemory };
|