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

```python theme={null}
>>> with override_defaults(model="gpt-4", agent=Agent(name="Custom")):
...     # code that uses the temporary defaults
...     pass
```

***

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.