Skip to main content

post_message

Function post_message 

Source
pub async fn post_message(
    __arg0: State<ServerState>,
    __arg1: Json<Value>,
) -> Response
Expand description

POST endpoint for receiving messages via HTTP.

Accepts both CopilotKit envelope format and direct RunAgentInput format. Routes messages to the agent processor and returns an SSE stream of events. Also handles CopilotKit’s “info” method requests.