One turn
post/platform-agents/sessions/{id}/turns
One turn: the agent's first step, then its model, which may call the session's tools. A tool of tier approval waits for the customer's yes (the answer carries the approval) unless a mandate they gave covers it. With retain none, send the history you want considered; Rivier keeps no words. A turn the first step passes on, for an agent with no model, is refused with reason no_model.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
agents:write- Graphql
Mutation.agentsPlatformSessionTurn- Sdk
agents.platformSession.turn- Cli
agents platform session turn
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- textstringrequiredAt most 8000 characters.
- historylist of objectDefault: [].
- rolestringrequiredOne of: customer, agent.
- textstringrequiredAt most 8000 characters.
- rolestringrequired
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring