# Class LittleGhost::Providers::Configuration

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Providers/Configuration.html

Holds trusted provider connection settings independently from model profiles.
Connection names and option keys are normalized to strings, and the resulting
mapping is immutable.

## Inheritance

`LittleGhost::Providers::Configuration < Object`

## Attributes

<a id="attribute-i-connections"></a>
### `connections` (R)

Normalized provider connections keyed by application-defined name.

## Class methods

<a id="method-c-new"></a>
### `.new`

```ruby
.new(connections = {})
```

Copies and freezes `connections` so callers may safely reuse their input.

## Instance methods

<a id="method-i-credentials"></a>
### `#credentials`

```ruby
#credentials(provider:, adapter:, configuration:)
```

Returns credentials merged into `configuration` when `provider` is constructed
with `adapter`. Subclasses may resolve secrets lazily here. The base
implementation adds no credentials.
