yr.gen
gen(
on_wire: bool = True,
instruction: str | None = None,
**kwargs,
) → strGenerate a response from the active LLM with optional instruction and visibility control.
Parameters
on_wire
type: bool = True
Whether to include the response back in the LLM context.
instruction
type: str | None = None
Optional system instruction to guide generation (e.g., for structured outputs).
**kwargs
type: object
Additional keyword arguments passed directly to the underlying LLM
(e.g., temperature, max_tokens, etc.).
Returns
type: str
The generated text response from the LLM.