Chat

Insert a synthetic user-question + AI-reply pair into chat history.

Used by slash-command flows (e.g. /schedule, /create-assistant) that produce an LLM response outside the normal streaming pipeline and need the resulting prompt/response pair to show up in the chat history on reload. The pair is tagged with chat_message_meta(message_type="command_synth", content=command_name) so UIs can identify these turns later.

post/chats/{session_id}/synth_message_pair

Request

Path parameters

session_idstring required

Id of the chat session to attach the pair to.

Request body

user_promptstring required

The user-authored prompt (the question turn).

ai_responsestring required

The LLM-generated response (the reply turn).

command_namestring required

Slash-command identifier (e.g. "schedule", "create-assistant").

Response

Pair inserted.

question_idstring

ID of the inserted question turn.

reply_idstring

ID of the inserted reply turn.

Changes

No recorded changes to this operation across all 1 revision of this API.