Skip to content

Commit d645bb2

Browse files
test(claude-agent-sdk): enrich live test with system_prompt + max_turns to exercise options-metadata capture
The live test now passes system_prompt and max_turns so the published Openlayer trace surfaces the new metadata captured on the root step (system_prompt, options.max_turns), proving end-to-end that the wrapper captures the user's configuration in addition to the SDK's runtime-resolved agent_config. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent bd27823 commit d645bb2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/integrations/test_claude_agent_sdk_live.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@ async def run():
4747
try:
4848
async for m in traced_query(
4949
prompt="Say the word 'banana' and nothing else.",
50-
options=ClaudeAgentOptions(model="claude-haiku-4-5"),
50+
options=ClaudeAgentOptions(
51+
model="claude-haiku-4-5",
52+
system_prompt=(
53+
"You are a terse assistant that follows instructions "
54+
"exactly. Never add filler words, never apologize, and "
55+
"never add quotes around your answer."
56+
),
57+
max_turns=2,
58+
),
5159
):
5260
messages.append(m)
5361
except Exception as exc:

0 commit comments

Comments
 (0)