anthropics / anthropics/claude-agent-sdk-python

Bedrock logs are not capturing trace info even when requests are blocked by the configured Guardrail.

未關閉
#1,252 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
8.1k
分支
1.3k
PR 合併指標
PR 指標待擷取

描述

I have enabled Bedrock Guardrails, but the expected trace data is missing from the Bedrock invocation logs upon a block intervention.
The implementation looks something like this:
```
guardrail_env['ANTHROPIC_CUSTOM_HEADERS'] = (
f'X-Amzn-Bedrock-GuardrailIdentifier: {guardrail_id}\n'
f'X-Amzn-Bedrock-GuardrailVersion: {guardrail_ver}\n'
'X-Amzn-Bedrock-Trace: ENABLED'
)

options = ClaudeAgentOptions(
model=model,
env={
**guardrail_env,
},
)
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。