Add a message to a thread and get an agent’s response
say
function adds a user message to a thread and gets an agent’s response. It transforms str → str
, making it easy to:
say
function is a convenient wrapper around Marvin’s task system - see Tasks for more details.
message
: The message to add to the threadinstructions
: Optional guidance for the agent’s responsesagent
: Optional custom agent to usethread
: Optional thread to store conversation historycontext
: Optional additional context