One change
agent-setup
managed-agents/agent-setup
Nearest release: v2.1.238, published under an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
managed-agents/agent-setup Changed · +51 / -26 lines
from line 52
AGENT_VERSION=$(jq -r '.version' <<< "$agent") ``` - ```bash CLI - agent=$(ant beta:agents create \ - --name "Coding Assistant" \ - --model '{id: claude-opus-5}' \ - --system "You are a helpful coding agent." \ - --tool '{type: agent_toolset_20260401}' \ - --format json) + <MultiFileExample language="cli" label="CLI"> + ```bash CLI + agent=$(ant beta:agents create --format json < coding-assistant.agent.yaml) - AGENT_ID=$(jq -r '.id' <<< "$agent") - AGENT_VERSION=$(jq -r '.version' <<< "$agent") - ``` + AGENT_ID=$(jq -r '.id' <<< "$agent") + ``` + <File filename="coding-assistant.agent.yaml"> + ```yaml + name: Coding Assistant + model: + id: claude-opus-5 + system: You are a helpful coding agent. + tools: + - type: agent_toolset_20260401 + ``` + </File> + </MultiFileExample> + ```python Python agent = client.beta.agents.create( name="Coding Assistant",
from line 228
echo "Inference geo: $(jq -r '.model.inference_geo' <<< "$agent")" ``` - ```bash CLI - agent=$(ant beta:agents create \ - --name "Geo-pinned assistant" \ - --model '{id: claude-opus-5, inference_geo: us}' \ - --system "You are a helpful assistant." \ - --format json) + <MultiFileExample language="cli" label="CLI"> + ```bash CLI + agent=$(ant beta:agents create --format json < geo-pinned.agent.yaml) - echo "Inference geo: $(jq -r '.model.inference_geo' <<< "$agent")" - ``` + echo "Inference geo: $(jq -r '.model.inference_geo' <<< "$agent")" + ``` + <File filename="geo-pinned.agent.yaml"> + ```yaml + name: Geo-pinned assistant + model: + id: claude-opus-5 + inference_geo: us + system: You are a helpful assistant. + ``` + </File> + </MultiFileExample> + ```python Python agent = client.beta.agents.create( name="Geo-pinned assistant",
from line 367
echo "New version: $(jq -r '.version' <<< "$updated_agent")" ``` - ```bash CLI - ant beta:agents update \ - --agent-id "$AGENT_ID" \ - --version "$AGENT_VERSION" \ - --system "You are a helpful coding agent. Always write tests." - ``` + <MultiFileExample language="cli" label="CLI"> + ```bash CLI + ant beta:agents update --agent-id "$AGENT_ID" < coding-assistant.agent.yaml + ``` + + <File filename="coding-assistant.agent.yaml"> + ```yaml + name: Coding Assistant + model: + id: claude-opus-5 + system: You are a helpful coding agent. Always write tests. + tools: + - type: agent_toolset_20260401 + ``` + </File> + </MultiFileExample> ```python Python updated_agent = client.beta.agents.update(