Supported Types
ChatFunctionToolFunction
AdvisorServerToolOpenRouter
BashServerTool
DatetimeServerTool
FilesServerTool
FusionServerToolOpenRouter
ImageGenerationServerToolOpenRouter
ChatSearchModelsServerTool
SubagentServerToolOpenRouter
WebFetchServerTool
OpenRouterWebSearchServerTool
ChatWebSearchShorthand
ChatDynamicServerTool
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field: