Rivier/ Reference/ agents

Register a tenant tool (or a new version of one) on the platform's project

post/platform-agents/tools

Register a tenant tool (or a new version of one) on the platform's project: a name, a description for the model, input and output schemas (the part of JSON Schema Rivier checks), a tier (read, change, approval), what may be kept (none, session), the scope a session needs (read, act) and the https address Rivier calls, signed as webhooks are with the secret shown once. A tool that fails ten times in a row is switched off.

Before you call

Credential
Authorization: Bearer $KEY
Scope
agents:admin
Graphql
Mutation.agentsPlatformToolCreate
Sdk
agents.platformTool.create
Cli
agents platform tool create

Request bodyapplication/json, required

  • namestringrequired
    Pattern: ^[a-z][a-z0-9_]{0,47}$.
  • descriptionstringrequired
    At most 1000 characters.
  • inputobjectrequired
  • outputobjectrequired
  • tierstring
    One of: read, change, approval. Default: approval.
  • retainstring
    One of: none, session. Default: none.
  • scopestring
    One of: read, act. Default: act.
  • urlstring (uri)required
    At most 500 characters.

Responses

  • 201application/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