Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/crewai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ qdrant = [
"qdrant-client[fastembed]~=1.14.3",
]
aws = [
"boto3~=1.40.38",
"aiobotocore~=2.25.2",
"boto3~=1.42.79",
"aiobotocore~=3.4.0",
]
watson = [
"ibm-watsonx-ai~=1.3.39",
Expand All @@ -87,7 +87,7 @@ litellm = [
"litellm~=1.83.0",
]
bedrock = [
"boto3~=1.40.45",
"boto3~=1.42.79",
]
google-genai = [
"google-genai~=1.65.0",
Expand Down
4 changes: 4 additions & 0 deletions lib/crewai/src/crewai/llms/providers/anthropic/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,10 @@ def _convert_tools_for_interference(
"required": [],
}

func_info = tool.get("function", {})
if func_info.get("strict"):
anthropic_tool["strict"] = True

anthropic_tools.append(anthropic_tool)

return anthropic_tools
Expand Down
5 changes: 5 additions & 0 deletions lib/crewai/src/crewai/llms/providers/bedrock/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ class ToolSpec(TypedDict, total=False):
name: Required[str]
description: Required[str]
inputSchema: ToolInputSchema
strict: bool


class ConverseToolTypeDef(TypedDict):
Expand Down Expand Up @@ -1965,6 +1966,10 @@ def _format_tools_for_converse(
input_schema: ToolInputSchema = {"json": parameters}
tool_spec["inputSchema"] = input_schema

func_info = tool.get("function", {})
if func_info.get("strict"):
tool_spec["strict"] = True

converse_tool: ConverseToolTypeDef = {"toolSpec": tool_spec}

converse_tools.append(converse_tool)
Expand Down
Loading
Loading