Skip to main content

user_message

Function user_message 

pub fn user_message(text: impl Into<String>) -> Inbound
Expand description

An inbound user message: kind MESSAGE_KIND, payload {"text": "..."}.

This is the format of LlmAgent::init input, of every message delivered to a running run with Runtime::deliver, and of the answer to a ToolError::NeedsInput question. A bare JSON string payload is accepted too.