View Source AI.Response (fnord v0.4.34)
This module sends a request to the model and handles the response. It is able
to handle tool calls and responses. If the caller includes an on_event
function, it will be called whenever a tool call is performed or if a tool
call results in an error.