-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
bedrockbugReport that something isn't working, or PR implementing a fixReport that something isn't working, or PR implementing a fix
Description
Initial Checks
- I'm using the latest version of Pydantic AI
- I've searched for my issue in the issue tracker before opening this issue
Description
I am using inference profile arn as model id
@DouweM Am I doing anything wrong here?
Minimal, Reproducible Example
data_agent = Agent(
BedrockConverseModel(AGENT_SETTINGS.model),
deps_type=AgentDeps,
retries=AGENT_SETTINGS.retries,
instructions=SYSTEM_INSTRUCTIONS,
tools=[execute_sql, search_tables, clarify_with_user],
model_settings=BedrockModelSettings(
bedrock_cache_instructions=True, # Cache system instructions
bedrock_cache_tool_definitions=True, # Cache tool definitions
bedrock_cache_messages=True, # Also cache the last message
),
)
print(result.usage())
RunUsage(input_tokens=44334, output_tokens=1279, requests=5, tool_calls=4)Logfire Trace
No response
Python, Pydantic AI & LLM client version
- Python: 3.13.11
- Pydantic AI: 1.59.0
- LLM provider SDK: Bedrock
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bedrockbugReport that something isn't working, or PR implementing a fixReport that something isn't working, or PR implementing a fix