DCF Model Rubric changedmanaged-agents/define-outcomes
Nearest release: v2.1.304, 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.
Recorded here
Lines+16added
Lines−28removed
From line
290
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits18to this page, all time
The whole hunk
from line 290, old and new numbered
/
from line 290
290290<CodeGroup>
291291 ```bash cURL
292292 # Create a session
293 session=$(curl -fsSL https://api.anthropic.com/v1/sessions \
293 curl -fsSL https://api.anthropic.com/v1/sessions \
294294 -H "x-api-key: $ANTHROPIC_API_KEY" \
295295 -H "anthropic-version: 2023-06-01" \
296296 -H "anthropic-beta: managed-agents-2026-04-01" \
from line 299
299299 "environment_id": "'"$ENVIRONMENT_ID"'",
300300 "title": "Financial analysis on Costco"
301301 }'
302 )
303 SESSION_ID=$(jq -r '.id' <<<"$session")
304302
305 # Define the outcome — agent starts working on receipt
303 # Define the outcome: SESSION_ID is the id from the create response
304 # The agent starts working when it receives the event
306305 curl -fsSL "https://api.anthropic.com/v1/sessions/$SESSION_ID/events" \
307306 -H "x-api-key: $ANTHROPIC_API_KEY" \
308307 -H "anthropic-version: 2023-06-01" \
from line 315
316315 "max_iterations": 5
317316 }
318317 ]
319 }' >/dev/null
318 }'
320319 # or: "rubric": {"type": "file", "file_id": "'"$RUBRIC_ID"'"}
321320 # "max_iterations" is optional; default 3, max 20
322321 ```
from line 322
323322
324323 ```bash CLI
325324 # Create a session
326 SESSION_ID=$(ant beta:sessions create \
325 ant beta:sessions create \
327326 --agent "$AGENT_ID" \
328327 --environment-id "$ENVIRONMENT_ID" \
329 --title "Financial analysis on Costco" \
330 --transform id --raw-output)
328 --title "Financial analysis on Costco"
331329
332 # Define the outcome — agent starts working on receipt
330 # Define the outcome: SESSION_ID is the id from the create response
331 # The agent starts working when it receives the event
333332 ant beta:sessions:events send --session-id "$SESSION_ID" <<YAML
334333 events:
335334 - type: user.define_outcome
from line 711
712711 -H "anthropic-version: 2023-06-01" \
713712 -H "anthropic-beta: managed-agents-2026-04-01"
714713
715 # Download a file
716 FILE_ID=$(curl -fsSL "https://api.anthropic.com/v1/files?scope_id=$SESSION_ID" \
714 # Download a file by the ID from the list
715 curl -fsSL "https://api.anthropic.com/v1/files/$FILE_ID/content" \
717716 -H "x-api-key: $ANTHROPIC_API_KEY" \
718717 -H "anthropic-version: 2023-06-01" \
719 -H "anthropic-beta: managed-agents-2026-04-01" | jq -r '.data[0].id // empty')
720 if [[ -n $FILE_ID ]]; then
721 curl -fsSL "https://api.anthropic.com/v1/files/$FILE_ID/content" \
722 -H "x-api-key: $ANTHROPIC_API_KEY" \
723 -H "anthropic-version: 2023-06-01" \
724 -H "anthropic-beta: managed-agents-2026-04-01" \
725 -o /tmp/output.txt
726 fi
718 -H "anthropic-beta: managed-agents-2026-04-01" \
719 -o /tmp/output.txt
727720 ```
728721
729722 ```bash CLI
from line 724
731724 # scope_id filtering requires the managed-agents beta on the files request
732725 ant beta:files list --scope-id "$SESSION_ID" --beta managed-agents-2026-04-01
733726
734 # Download a file
735 FILE_ID=$(ant beta:files list --scope-id "$SESSION_ID" \
736 --beta managed-agents-2026-04-01 \
737 --transform 'data[0].id' --raw-output)
738 if [[ -n $FILE_ID ]]; then
739 ant files download --file-id "$FILE_ID" --output /tmp/output.txt
740 fi
727 # Download a file by the ID from the list
728 ant files download --file-id "$FILE_ID" --output /tmp/output.txt
741729 ```
742730
743731 ```python Python
No line in this hunk matches that.