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

# instructions

# `marvin.instructions`

## Functions

### `get_instructions`

```python theme={null}
def get_instructions() -> list[str]
```

Get the current instruction stack.

### `instructions`

```python theme={null}
def instructions(instruction: str) -> Generator[None, None, None]
```

Temporarily add instructions to the current instruction stack. The
instruction is removed when the context is exited.

with instructions("talk like a pirate"):
...

***

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