ChatFunctionTool - TypeScript SDK
ChatFunctionTool type definition
Tool definition for function calling (regular function or OpenRouter built-in server tool)
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ChatFunctionTool type definition
models.ChatFunctionToolFunctionconst value: models.ChatFunctionToolFunction = {
function: {
name: "get_weather",
},
type: "function",
};
models.DatetimeServerToolconst value: models.DatetimeServerTool = {
type: "openrouter:datetime",
};
models.ImageGenerationServerToolOpenRouterconst value: models.ImageGenerationServerToolOpenRouter = {
type: "openrouter:image_generation",
};
models.ChatSearchModelsServerToolconst value: models.ChatSearchModelsServerTool = {
type: "openrouter:experimental__search_models",
};
models.WebFetchServerToolconst value: models.WebFetchServerTool = {
type: "openrouter:web_fetch",
};
models.OpenRouterWebSearchServerToolconst value: models.OpenRouterWebSearchServerTool = {
type: "openrouter:web_search",
};
models.ChatWebSearchShorthandconst value: models.ChatWebSearchShorthand = {
type: "web_search",
};