quickstart changedmanaged-agents/quickstart
Nearest release: v2.1.309, published 3 hours before 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+6added
Lines−5removed
From line
314
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits37to this page, all time
The whole hunk
from line 314, old and new numbered
/
from line 314
314314
315315 <CodeGroupItem>
316316 ```php PHP
317 use Anthropic\Beta\Agents\BetaManagedAgentsModel;
317318 use Anthropic\Client;
318319
319320 $client = new Client();
from line 321
320321
321322 $agent = $client->beta->agents->create(
322323 name: 'Coding Assistant',
323 model: 'claude-opus-5-5',
324 model: BetaManagedAgentsModel::CLAUDE_OPUS_5_5,
324325 system: 'You are a helpful coding assistant. Write clean, well-documented code.',
325326 tools: [
326327 ['type' => 'agent_toolset_20260401'],
from line 737
736737 });
737738
738739 // Process streaming events
739 await foreach (var ev in stream)
740 await foreach (var streamEvent in stream)
740741 {
741 if (ev.Value is BetaManagedAgentsAgentMessageEvent message)
742 if (streamEvent.Value is BetaManagedAgentsAgentMessageEvent message)
742743 {
743744 foreach (var block in message.Content)
744745 {
from line 749
748749 }
749750 }
750751 }
751 else if (ev.Value is BetaManagedAgentsAgentToolUseEvent toolUse)
752 else if (streamEvent.Value is BetaManagedAgentsAgentToolUseEvent toolUse)
752753 {
753754 Console.WriteLine($"\n[Using tool: {toolUse.Name}]");
754755 }
755 else if (ev.Value is BetaManagedAgentsSessionStatusIdleEvent)
756 else if (streamEvent.Value is BetaManagedAgentsSessionStatusIdleEvent)
756757 {
757758 Console.WriteLine("\n\nAgent finished.");
758759 break;
No line in this hunk matches that.