The Managed Agents Environments API: configure container templates (packages, network policy) that sessions run inside.
{:ok, env} =
ReqAnthropic.Environments.create(
name: "python-data-analysis",
config: %{
type: "cloud",
packages: %{pip: ["pandas", "numpy"]},
networking: %{type: "limited", allow_package_managers: true}
}
)
Summary
Functions
Update an environment. Fields omitted from the payload preserve their existing values (per the Anthropic API's documented semantics).
Functions
@spec create(keyword()) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
@spec delete( String.t(), keyword() ) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
@spec get( String.t(), keyword() ) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
@spec list(keyword()) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
@spec update( String.t(), keyword() ) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
Update an environment. Fields omitted from the payload preserve their existing values (per the Anthropic API's documented semantics).