Package-level declarations
Types
A unified demonstration representing an input-output example for few-shot learning.
Controls the level of detail included when rendering a demonstration into the prompt.
Renders demonstrations into prompt-ready content based on the chosen format and insertion mode.
Controls how few-shot demonstrations are inserted into the prompt.
Represents an optimizable module discovered in an agent.
Delegate wrapper for optimizable subgraphs that captures the resolved subgraph name.
The serializable output of an optimization run, holding optimized instructions and demonstrations.
Default settings for how demonstrations are inserted into prompts.
Properties
Strategy-level module key used in OptimizationArtifact maps and OptimizableModule lists to refer to the agent's top-level system prompt (as opposed to a named subgraph).
Functions
Discovers optimizable modules in an agent: the strategy-level system prompt plus any subgraphs created via optimizableSubgraphWithTask.
Creates an optimizable subgraph that performs a single task with a tunable instruction and bootstrappable few-shot demonstrations.