Agents
List published agent versions (Preview)
Preview · Available to selected organizations. Returns an agent's published versions, newest first, without their definitions. Pass nextCursor back as cursor for the next page.
GET
Returns an agent's published versions, newest first, without their definitions. Pass nextCursor back as cursor for the next page.
apiKeyheader
x-api-key<token>id*stringMatch
^agt_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullcursor?stringAgentVersionPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.agents.listVersions({ "id": "example"});Example Response
{ "items": [ { "agentId": "string", "version": -9007199254740991, "publishedAt": "string" } ], "nextCursor": "string"}Related documentation
List agent models (Preview)
Preview · Available to selected organizations. Returns the models an agent can run on: the standard and max aliases, each with the model it points at today, then every catalog model an agent can pin.
Publish an agent (Preview)
Preview · Available to selected organizations. Publishes the draft as the next immutable version.