Skip to main content
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

Model
required
The Model instance to retrieve context from

Returns

The LLM context string, or empty string if none has been set

Example