diff --git a/CHANGELOG.md b/CHANGELOG.md index a5c9434db..41524232c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- Bedrock: Support for tool calling on Nova models. - Bedrock: Support for custom `model_args` passed through to `session.Client`. - Inspect View: Various improvements to appearance of tool calls in transcript. - Bugfix: Proper handling of text find for eval raw JSON display diff --git a/src/inspect_ai/model/_providers/bedrock.py b/src/inspect_ai/model/_providers/bedrock.py index b576aefe2..ce06d02c9 100644 --- a/src/inspect_ai/model/_providers/bedrock.py +++ b/src/inspect_ai/model/_providers/bedrock.py @@ -680,7 +680,11 @@ def converse_tools(tools: list[ToolInfo]) -> list[ConverseTool] | None: tool_spec = ConverseToolSpec( name=tool.name, description=tool.description, - inputSchema={"json": tool.parameters.model_dump(exclude_none=True)}, + inputSchema={ + "json": tool.parameters.model_dump( + exclude_none=True, exclude={"additionalProperties"} + ) + }, ) result.append(ConverseTool(toolSpec=tool_spec)) return result