anthropics / anthropics/claude-agent-sdk-python
Bedrock logs are not capturing trace info even when requests are blocked by the configured Guardrail.
未关闭
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 还没有评估数据。