Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs(bedrock_agents.md): show example of passing provider specific params to bedrock agents

Krrish Dholakia26f6dbdd3d76
diff --git a/docs/my-website/docs/providers/bedrock_agents.md b/docs/my-website/docs/providers/bedrock_agents.md
index e6368705feb..4d027cbb3d8 100644
--- a/docs/my-website/docs/providers/bedrock_agents.md
+++ b/docs/my-website/docs/providers/bedrock_agents.md
@@ -196,7 +196,51 @@ for chunk in stream:
</TabItem>
</Tabs>
+## Provider-specific Parameters
+
+Any non-openai parameters will be passed to the agent as custom parameters.
+
+<Tabs>
+<TabItem value="sdk" label="SDK">
+
+```python showLineNumbers title="Using custom parameters"
+from litellm import completion
+
+response = litellm.completion(
+ model="bedrock/agent/L1RT58GYRW/MFPSBCXYTW",
+ messages=[
+ {
+ "role": "user",
+ "content": "Hi who is ishaan cto of litellm, tell me 10 things about him",
+ }
+ ],
+ invocationId="my-test-invocation-id", # PROVIDER-SPECIFIC VALUE
+)
+```
+
+</TabItem>
+<TabItem value="proxy" label="Proxy">
+
+```yaml showLineNumbers title="LiteLLM Proxy Configuration"
+model_list:
+ - model_name: bedrock-agent-1
+ litellm_params:
+ model: bedrock/agent/L1RT58GYRW/MFPSBCXYTW
+ aws_access_key_id: os.environ/AWS_ACCESS_KEY_ID
+ aws_secret_access_key: os.environ/AWS_SECRET_ACCESS_KEY
+ aws_region_name: us-west-2
+ invocationId: my-test-invocation-id
+```
+
+</TabItem>
+</Tabs>
+
+
+
+
+
## Further Reading
- [AWS Bedrock Agents Documentation](https://aws.amazon.com/bedrock/agents/)
- [LiteLLM Authentication to Bedrock](https://docs.litellm.ai/docs/providers/bedrock#boto3---authentication)
+