Rivier/ Reference/ agents

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)required
    In the path

Request bodyapplication/json, required

  • textstringrequired
    At most 8000 characters.
  • historylist of object
    Default: [].
    • rolestringrequired
      One of: customer, agent.
    • textstringrequired
      At most 8000 characters.

Responses

  • 200application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown