/** * Formats the agent's registered actions into prompt text and parses the action * calls the model returns back into validated parameters. On the render side it * composes deterministic (seeded-RNG) complete action examples, * name/description/parameter listings, and canonical JSON call examples, so a * given action set always yields the same prompt. On the parse side it turns the * model's `{ actions, params }` payload into a per-action * `Map`, coercing loose scalars/arrays and validating * each value against the action's parameter schema (type, enum, pattern, * min/max). * * Sits between the action catalog and the message loop's model call, and also * acts as the barrel re-exporting the action sub-modules (extractor pipeline, * JSON model output, subaction promotion/dispatch, recent-context, * resolve-action-args). Nested model `params` graphs are bounded in * `action-parameter-value.ts`. */ import type { Action, ActionParameter, ActionParameters } from "./types/components.js"; export { parseActionParams } from "./action-parameter-value.js"; export { type ExtractorPipelineResult, type RunExtractorPipelineArgs, runExtractorPipeline, } from "./actions/extractor-pipeline.js"; export { parseJsonModelArray, parseJsonModelOutput, parseJsonModelRecord, } from "./actions/json-model-output.js"; export { isPromotedSubactionVirtual, listSubactionsFromParameters, type PromoteSubactionsOptions, promoteSubactionsToActions, type SubactionPromotionOverrides, } from "./actions/promote-subactions.js"; export { recentConversationTexts, recentConversationTextsFromState, } from "./actions/recent-context.js"; export { type ResolveActionArgsInput, type ResolveActionArgsResult, resolveActionArgs, type SubactionSpec, type SubactionsMap, } from "./actions/resolve-action-args.js"; export { CANONICAL_SUBACTION_KEY, DEFAULT_SUBACTION_KEYS, dispatchSubaction, normalizeSubaction, readSubaction, type SubactionHandler, type SubactionHandlerMap, type SubactionParameters, } from "./actions/subaction-dispatch.js"; export { testSchemaPattern, type ValidateToolArgsResult, validateSchema, validateToolArgs, } from "./actions/validate-tool-args.js"; export declare const composeActionExamples: (actionsData: Action[], count: number, seed?: string) => string; /** Render canonical JSON action-call examples. */ export declare function composeActionCallExamples(actionsData: Action[], maxExamples: number): string; export declare function formatActionNames(actions: Action[], seed?: string): string; export declare function formatActions(actions: Action[], seed?: string): string; export declare function formatActionParameters(parameters: ActionParameter[]): string; export declare function validateActionParams(action: Action, extractedParams: ActionParameters | undefined): { valid: boolean; params: ActionParameters | undefined; errors: string[]; };