> ## Documentation Index
> Fetch the complete documentation index at: https://dsrs.herumbshandilya.com/llms.txt
> Use this file to discover all available pages before exploring further.

# dspy_rs::prelude

> The curated core surface — the recommended import for DSRs programs.

<Note>
  Generated from rustdoc JSON at `dspy-rs v0.7.3` (commit `f7d67a6`). Do not edit by hand; regenerate with `python3 docs/scripts/gen_api.py` (see the script header for the rustdoc commands). Item links lead to full signatures and method docs on docs.rs.
</Note>

The curated core surface — the recommended import for DSRs programs.

## Re-exports

| Item                                                                                                                                         | Description                                                         |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [`average_score`](https://docs.rs/dspy-rs/latest/dspy_rs/evaluate/evaluator/fn.average_score.html)                                           | Re-export of `crate::evaluate::average_score`.                      |
| [`BootstrapFewShot`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/bootstrap/struct.BootstrapFewShot.html)                                | Re-export of `crate::optimizer::BootstrapFewShot`.                  |
| [`CallMetadata`](https://docs.rs/dspy-rs/latest/dspy_rs/core/predicted/struct.CallMetadata.html)                                             | Re-export of `crate::core::CallMetadata`.                           |
| [`Candidate`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/engine/struct.Candidate.html)                                                 | Re-export of `crate::optimizer::Candidate`.                         |
| [`capture_with_meta`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/capture/fn.capture_with_meta.html)                                        | Re-export of `crate::trace::capture_with_meta`.                     |
| [`capture`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/capture/index.html)                                                                 | Re-export of `crate::trace::capture`.                               |
| [`capture`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/capture/fn.capture.html)                                                            | Re-export of `crate::trace::capture`.                               |
| [`ChainOfThought`](https://docs.rs/dspy-rs/latest/dspy_rs/modules/chain_of_thought/type.ChainOfThought.html)                                 | Re-export of `crate::modules::ChainOfThought`.                      |
| [`configure`](https://docs.rs/dspy-rs/latest/dspy_rs/core/settings/fn.configure.html)                                                        | Re-export of `crate::core::settings::configure`.                    |
| [`COPRO`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/copro/struct.COPRO.html)                                                          | Re-export of `crate::optimizer::COPRO`.                             |
| [`DataLoader`](https://docs.rs/dspy-rs/latest/dspy_rs/data/dataloader/struct.DataLoader.html)                                                | Re-export of `crate::data::dataloader::DataLoader`.                 |
| [`Demo`](https://docs.rs/dspy-rs/latest/dspy_rs/predictors/predict/struct.Demo.html)                                                         | Re-export of `crate::predictors::Demo`.                             |
| [`Edit`](https://docs.rs/dspy-rs/latest/dspy_rs/ir/edit/enum.Edit.html)                                                                      | Re-export of `crate::ir::Edit`.                                     |
| [`Engine`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/engine/struct.Engine.html)                                                       | Re-export of `crate::optimizer::Engine`.                            |
| [`Eval`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/span/struct.Eval.html)                                                                 | Re-export of `crate::trace::Eval`.                                  |
| [`evaluate_trainset_with_concurrency`](https://docs.rs/dspy-rs/latest/dspy_rs/evaluate/evaluator/fn.evaluate_trainset_with_concurrency.html) | Re-export of `crate::evaluate::evaluate_trainset_with_concurrency`. |
| [`evaluate_trainset`](https://docs.rs/dspy-rs/latest/dspy_rs/evaluate/evaluator/fn.evaluate_trainset.html)                                   | Re-export of `crate::evaluate::evaluate_trainset`.                  |
| [`Example`](https://docs.rs/dspy-rs/latest/dsrs_macros/derive.Example.html)                                                                  | Re-export of `dsrs_macros::Example`.                                |
| [`GEPA`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/gepa/struct.GEPA.html)                                                             | Re-export of `crate::optimizer::GEPA`.                              |
| [`init_tracing`](https://docs.rs/dspy-rs/latest/dspy_rs/utils/telemetry/fn.init_tracing.html)                                                | Re-export of `crate::utils::init_tracing`.                          |
| [`Interpreter`](https://docs.rs/dspy-rs/latest/dspy_rs/ir/interp/struct.Interpreter.html)                                                    | Re-export of `crate::ir::Interpreter`.                              |
| [`is_capturing`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/capture/fn.is_capturing.html)                                                  | Re-export of `crate::trace::is_capturing`.                          |
| [`is_replaying`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/replay/fn.is_replaying.html)                                                   | Re-export of `crate::trace::is_replaying`.                          |
| [`LM`](https://docs.rs/dspy-rs/latest/dspy_rs/core/lm/struct.LM.html)                                                                        | Re-export of `crate::core::lm::LM`.                                 |
| [`LMConfig`](https://docs.rs/dspy-rs/latest/dspy_rs/core/lm/struct.LMConfig.html)                                                            | Re-export of `crate::core::lm::LMConfig`.                           |
| [`MIPROv2`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/mipro/struct.MIPROv2.html)                                                      | Re-export of `crate::optimizer::MIPROv2`.                           |
| [`Module`](https://docs.rs/dspy-rs/latest/dspy_rs/core/module/trait.Module.html)                                                             | Re-export of `crate::core::Module`.                                 |
| [`ModuleState`](https://docs.rs/dspy-rs/latest/dspy_rs/core/state/struct.ModuleState.html)                                                   | Re-export of `crate::core::ModuleState`.                            |
| [`Optimizer`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/trait.Optimizer.html)                                                         | Re-export of `crate::optimizer::Optimizer`.                         |
| [`OptimizeTarget`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/target/struct.OptimizeTarget.html)                                       | Re-export of `crate::optimizer::OptimizeTarget`.                    |
| [`Overlay`](https://docs.rs/dspy-rs/latest/dspy_rs/ir/params/struct.Overlay.html)                                                            | Re-export of `crate::ir::Overlay`.                                  |
| [`Predict`](https://docs.rs/dspy-rs/latest/dspy_rs/predictors/predict/struct.Predict.html)                                                   | Re-export of `crate::predictors::Predict`.                          |
| [`Predicted`](https://docs.rs/dspy-rs/latest/dspy_rs/core/predicted/struct.Predicted.html)                                                   | Re-export of `crate::core::Predicted`.                              |
| [`PredictError`](https://docs.rs/dspy-rs/latest/dspy_rs/core/errors/enum.PredictError.html)                                                  | Re-export of `crate::core::PredictError`.                           |
| [`Predictors`](https://docs.rs/dspy-rs/latest/dspy_rs/core/module/trait.Predictors.html)                                                     | Re-export of `crate::core::Predictors`.                             |
| [`predictors`](https://docs.rs/dspy-rs/latest/dspy_rs/predictors/index.html)                                                                 | Re-export of `crate::predictors`.                                   |
| [`predictors`](https://docs.rs/dspy-rs/latest/dspy_rs/macro.predictors.html)                                                                 | Re-export of `crate::predictors`.                                   |
| [`PredictState`](https://docs.rs/dspy-rs/latest/dspy_rs/core/state/struct.PredictState.html)                                                 | Re-export of `crate::core::PredictState`.                           |
| [`Program`](https://docs.rs/dspy-rs/latest/dspy_rs/ir/graph/struct.Program.html)                                                             | Re-export of `crate::ir::Program`.                                  |
| [`replay`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/replay/index.html)                                                                   | Re-export of `crate::trace::replay`.                                |
| [`replay`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/replay/fn.replay.html)                                                               | Re-export of `crate::trace::replay`.                                |
| [`ReplayMode`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/replay/enum.ReplayMode.html)                                                     | Re-export of `crate::trace::ReplayMode`.                            |
| [`ReplayReport`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/replay/struct.ReplayReport.html)                                               | Re-export of `crate::trace::ReplayReport`.                          |
| [`Signature`](https://docs.rs/dspy-rs/latest/dspy_rs/core/signature/trait.Signature.html)                                                    | Re-export of `crate::core::signature::Signature`.                   |
| [`Signature`](https://docs.rs/dspy-rs/latest/dsrs_macros/derive.Signature.html)                                                              | Re-export of `dsrs_macros::Signature`.                              |
| [`SIMBA`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/simba/struct.SIMBA.html)                                                          | Re-export of `crate::optimizer::SIMBA`.                             |
| [`SpanId`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/span/struct.SpanId.html)                                                             | Re-export of `crate::trace::SpanId`.                                |
| [`Structural`](https://docs.rs/dspy-rs/latest/dspy_rs/optimizer/structural/struct.Structural.html)                                           | Re-export of `crate::optimizer::Structural`.                        |
| [`Trace`](https://docs.rs/dspy-rs/latest/dspy_rs/trace/span/struct.Trace.html)                                                               | Re-export of `crate::trace::Trace`.                                 |
| [`TypedLoadOptions`](https://docs.rs/dspy-rs/latest/dspy_rs/data/dataloader/struct.TypedLoadOptions.html)                                    | Re-export of `crate::data::dataloader::TypedLoadOptions`.           |
| [`TypedMetric`](https://docs.rs/dspy-rs/latest/dspy_rs/evaluate/evaluator/trait.TypedMetric.html)                                            | Re-export of `crate::evaluate::TypedMetric`.                        |
| [`WithReasoning`](https://docs.rs/dspy-rs/latest/dspy_rs/modules/chain_of_thought/struct.WithReasoning.html)                                 | Re-export of `crate::modules::WithReasoning`.                       |
