# `LangchainPrompt.Profile`
[🔗](https://github.com/exfoundry/langchain_prompt/blob/v0.1.0/lib/langchain_prompt/profile.ex#L1)

Pairs an adapter module with its runtime configuration.

Returned by `LangchainPrompt.Prompt.set_profile/1` to tell `LangchainPrompt.execute/4`
which adapter and options to use for a given prompt execution.

## Fields

- `:adapter` — a module implementing `LangchainPrompt.Adapter`.
- `:opts` — a map (or keyword list) passed as-is to `adapter.chat/2`.
  The shape depends on the adapter; see the adapter's documentation.

## Example

    %LangchainPrompt.Profile{
      adapter: LangchainPrompt.Adapters.Langchain,
      opts: %{
        chat_module: LangChain.ChatModels.ChatOpenAI,
        model: "gpt-4o-mini",
        temperature: 0.2
      }
    }

# `t`

```elixir
@type t() :: %LangchainPrompt.Profile{adapter: module(), opts: map() | keyword()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
