Skip to Content
MosaicMosaicDocs
Tool Reference

CreateAgentSession

Start a new session with a coding or chat agent from ListAgents.

Starter documentation. Features and account details may differ from this deployment.

CreateAgentSession

Start a new session with a coding or chat agent from ListAgents. Provide the agent botId and a self-contained initial prompt. The new session does not inherit this conversation. Returns its session ID after the first prompt is accepted, not completed work. Use ManageAgentSession to continue an existing session. Create once; do not automatically retry after an uncertain failure.

Parameters

ParameterTypeRequiredDescription
agentIdstringYesAgent persona botId from ListAgents.
promptstringYesComplete initial task and relevant context.

On this page