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

# get_llm_context

> Get the LLM context for the current model.

Get the LLM context for the current model.

Retrieves the context string that was previously set using set\_llm\_context().
Works automatically in both synchronous and asynchronous contexts.

## Parameters

<ParamField path="model" type="Model" required={true}>
  The Model instance to retrieve context from
</ParamField>

## Returns

<ResponseField type="str">
  The LLM context string, or empty string if none has been set
</ResponseField>

## Example

```python theme={null}
from fiddler_strandsagents import set_llm_context, get_llm_context

set_llm_context(model, "Important background information")
context = get_llm_context(model)
print(context)  # "Important background information"
```
