> ## 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::adapter

> Prompt formatting and LM response parsing.

<Note>
  Generated from rustdoc JSON at `dspy-rs v0.7.3` (commit `b5da857`). 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>

Prompt formatting and LM response parsing.

## Re-exports

| Item      | Description     |
| --------- | --------------- |
| `chat::*` | Glob re-export. |

## Modules

| Item                                                                     | Description |
| ------------------------------------------------------------------------ | ----------- |
| [`chat`](https://docs.rs/dspy-rs/latest/dspy_rs/adapter/chat/index.html) |             |

## `adapter::chat`

### Structs

| Item                                                                                         | Description                                                                         |
| -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [`ChatAdapter`](https://docs.rs/dspy-rs/latest/dspy_rs/adapter/chat/struct.ChatAdapter.html) | Builds prompts and parses responses using the `[ ## field ## ]` delimiter protocol. |
