Tutorials · Claude Agent SDK · examples / outputsExample code
Example code
Claude Agent SDK examples: outputs
Open a file to read it highlighted, with links to where the tutorial uses it.
Claude Agent SDKContents
| Name | What it shows | Used in | Size |
|---|---|---|---|
| 01_hello.txt | Captured output of 01_hello | 1.8 KB · raw | |
| 02_fix_bugs.txt | Captured output of 02_fix_bugs | 922 B · raw | |
| 03_multi_turn.txt | Captured output of 03_multi_turn | 204 B · raw | |
| 04_custom_tools.txt | Captured output of 04_custom_tools | 964 B · raw | |
| 05_hooks.txt | Captured output of 05_hooks | 708 B · raw | |
| 06_structured_output.txt | Captured output of 06_structured_output | 887 B · raw | |
| 07_streaming.txt | Captured output of 07_streaming | 374 B · raw | |
| 08_subagents.txt | Captured output of 08_subagents | 1.3 KB · raw | |
| 09_sessions.txt | Captured output of 09_sessions | 747 B · raw | |
| 10_permissions.txt | Captured output of 10_permissions | 688 B · raw | |
| 11_checkpointing.txt | Captured output of 11_checkpointing | 217 B · raw | |
| 12_interrupt.txt | Captured output of 12_interrupt | 231 B · raw | |
| 13_introspection.txt | Captured output of 13_introspection | 1.3 KB · raw | |
| 14_errors.txt | Captured output of 14_errors | 779 B · raw | |
| 15_skills_and_prompts.txt | Captured output of 15_skills_and_prompts | 1.4 KB · raw | |
| 16_cost_tracking.txt | Captured output of 16_cost_tracking | 491 B · raw | |
| 17_streaming_input.txt | Captured output of 17_streaming_input | 956 B · raw | |
| 18_otel_capture.txt | Captured output of 18_otel_capture | 444 B · raw | |
| 19_sqlite_session_store.txt | Captured output of 19_sqlite_session_store | 450 B · raw | |
| 20_multi_tenant.txt | Captured output of 20_multi_tenant | 1.8 KB · raw | |
| 21_sandbox_and_stderr.txt | Captured output of 21_sandbox_and_stderr | 1.2 KB · raw | |
| 22_concurrency_sizing.txt | Captured output of 22_concurrency_sizing | 344 B · raw | |
| p1_goal_loop.txt | Captured output of p1_goal_loop | 557 B · raw | |
| p1b_goal_loop_blocked.txt | Captured output of p1b_goal_loop_blocked | 623 B · raw | |
| p2_graph_pipeline.txt | Captured output of p2_graph_pipeline | 1.6 KB · raw | |
| p3_workflow_patterns.txt | Captured output of p3_workflow_patterns | 3.4 KB · raw | |
| p4_handoff.txt | Captured output of p4_handoff | 1.0 KB · raw | |
| p5_debate.txt | Captured output of p5_debate | 2.3 KB · raw | |
| p6_agentic_rag.txt | Captured output of p6_agentic_rag | 2.3 KB · raw | |
| p7_deferred_approval.txt | Captured output of p7_deferred_approval | 418 B · raw | |
| p8_eval_gate.txt | Captured output of p8_eval_gate | 396 B · raw | |
| p9_circuit_breaker.txt | Captured output of p9_circuit_breaker | 788 B · raw | |
| ts_agent.txt | Captured output of ts_agent | 518 B · raw |