yr.response

response(
    prompt: str,
    **kwargs,
) → str

Send 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: str | int | float | bool

Additional options forwarded to the underlying LLM (e.g. provider-specific generation parameters).

Returns

type: str

The LLM's text response.