yr.response
response(
prompt: str,
**kwargs,
) → strSend a prompt to the active LLM and return its text response.
Tokens will simultaneously be pushed onto the event stream for display in your UI or printed to stdout.
Parameters
prompt
type: str
The user-message prompt to send.
**kwargs
type: _GenerationOption
Additional options forwarded to the underlying LLM (e.g. provider-specific generation parameters).
Returns
type: str
The LLM's text response.
Examples
Generate and display a concise response from the active LLM:
import yera as yr
answer = yr.response(
"What is the capital of France?",
temperature=0,
)