Skip to content
Discussion options

You must be logged in to vote

Hi @naorlevi1, thanks for the detailed writeup, and sorry for the very late response; it shouldn't have taken this long.

Two separate things are going on here. Passing guardrailConfig inside params does work for enforcement: everything in params is forwarded as-is to the litellm.completion call, which matches your working raw LiteLLM example. But the trace is a different story. The Strands LiteLLM provider only reads message content, tool calls, the finish reason, and token usage from LiteLLM responses, so any guardrail trace data that comes back is dropped before it reaches you. There's currently no way to get the trace out through LiteLLMModel. So what you're seeing is expected, not a c…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yonib05
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants