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

# defaults

# `marvin.defaults`

## Classes

### `Defaults`

```python theme={null}
class Defaults(agent: Agent, model: KnownModelName | Model, memory_provider: str)
```

## Functions

### `override_defaults`

```python theme={null}
def override_defaults(**kwargs: Unpack[_Defaults] = {})
```

Temporarily override default settings.

Any attribute of the defaults object can be temporarily overridden by passing
it as a keyword argument.

Example:

> > > with override\_defaults(model="gpt-4", agent=Agent(name="Custom")):
> > > ...     # code that uses the temporary defaults
> > > ...     pass

***

**Parent Module:** [`marvin`](marvin)
