AxPromptTemplateOptions
Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/prompt.ts#L24
Properties
| Property | Type | Description |
|---|---|---|
contextCache? | AxContextCacheOptions | - |
customTemplate? | string | Custom Ax template-engine string to use instead of the built-in dspy.md. Uses Mustache-style syntax with {{ var }}, {{ if cond }} / {{ else }} / {{ /if }}. Receives the same variables as the default template (identityText, taskDefinitionText, etc.). Useful for reordering prompt sections to enable cross-signature prompt caching. |
functions? | readonly ( | AxFunction | { toFunction: () => | AxFunction | AxFunction[]; })[] | - |
ignoreBreakpoints? | boolean | When true, cacheBreakpoint is ignored and cache is applied to all positions (for providers with auto-lookback like Anthropic) |
includeOptionalInputFieldsInSystemPrompt? | boolean | When true, optional input fields stay in the system prompt field list even when values omit them. |
structuredOutputFunctionName? | string | When set, indicates structured output should be delivered via a function call with this name |
thoughtFieldName? | string | - |