mirascope.llm.context | Mirascope
MirascopeLilypad

mirascope.llm.context

Alias context

Context manager for LLM API calls.

This method only allows setting overrides (provider, model, client, call_params) and does not allow structural overrides (stream, tools, response_model, etc.).

Parameters

NameTypeDescription
providerProvider | LocalProviderThe provider to use for the LLM API call.
modelstrThe model to use for the LLM API call.
client= NoneAny | NoneThe client to use for the LLM API call.
call_params= NoneCommonCallParams | Any | NoneThe call parameters for the LLM API call.

Returns

TypeDescription
LLMContext-

Alias to: mirascope.llm._context.context