Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 16.7 KB

additionaltoolsitemtoolfunction.mdx

File metadata and controls

20 lines (16 loc) · 16.7 KB
title AdditionalToolsItemToolFunction

Function tool definition

Fields

Field Type Required Description Example
description OptionalNullable[str] ➖ N/A
name str ✅ N/A
parameters Dict[str, Any] ✅ N/A
strict OptionalNullable[bool] ➖ N/A
type components.AdditionalToolsItemTypeFunction ✅ N/A
allowed_callers List[components.AdditionalToolsItemAllowedCaller] ➖ N/A
async_ Optional[bool] ➖ Lets the model keep working after calling this tool instead of waiting for its output. The tool is still executed by the client; return the result in a later request as a function_call_output with the original call_id. Only honored by providers whose Responses API supports async tools; ignored elsewhere. true
defer_loading Optional[bool] ➖ Withhold this tool from the model until openrouter:tool_search finds it. Where the request declares no search tool, OpenRouter may add openrouter:tool_search to serve the flag, and otherwise sends the tool in full. A request that declares the search tool itself must keep at least one tool non-deferred. true
output_schema Dict[str, Any] ➖ N/A