ReqAnthropic.Agents (ReqAnthropic v0.2.1)

Copy Markdown View Source

The Managed Agents Agents API: define reusable, versioned agent configurations (model, system prompt, tools, MCP servers, skills).

All endpoints are gated behind the managed-agents-2026-04-01 beta header, which is added automatically.

{:ok, agent} =
  ReqAnthropic.Agents.create(
    model: "claude-sonnet-4-6",
    name: "My first agent",
    system: "You are helpful."
  )

Summary

Functions

Update an agent. Updating an agent creates a new version; prior versions remain accessible.

Functions

create(opts)

@spec create(keyword()) ::
  {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}

delete(id, opts \\ [])

@spec delete(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}

get(id, opts \\ [])

@spec get(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}

list(opts \\ [])

@spec list(keyword()) ::
  {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}

update(id, opts)

@spec update(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}

Update an agent. Updating an agent creates a new version; prior versions remain accessible.