GraphOptimizationJob class. It wraps:
- creating a training job from a dataset,
- monitoring progress,
- downloading the best prompt snapshot,
- and running inference against the trained graph.
Create from a dataset
Datasets are only supported for verifier graphs right now. Policy graph
training via datasets is not yet supported.
from_dataset accepts:
- a file path,
- a raw dict,
- or a
GraphEvolveTaskSetobject.
Monitor training
Download the best prompt
Run inference
model: override the policy model for this call.graph_snapshot_id: run a specific snapshot instead of the best.
Run verifier (Verifier Graphs)
For graphs trained withgraph_type="verifier", use run_verifier to evaluate execution traces:
Related docs
- Product overview: Graphs
- Dataset + verifying: Graphs verifying
- Examples: Graphs cookbooks