Variable: defaultOllamaToolsFromTools
ts
const defaultOllamaToolsFromTools: (
tools: readonly (Tool<SpooledArtifact> | ArtifactTool)[],
deps: {
descriptionToChatCompletionsJsonSchema: (d: DescriptionLike) => JsonSchema;
},
) => ChatCompletionsTool[] = ollamaToolsFromTools;Defined in: batteries/llm/ollama/helpers.ts:101
Default implementation of OllamaHelpers-style tool translation; alias of ollamaToolsFromTools.
Convert ADK tools to the native Ollama tools[] wire. Native /api/chat uses the identical { type: 'function', function: { name, description, parameters } } shape as Chat Completions, so this is an alias of the shared renderer.
Parameters
| Parameter | Type |
|---|---|
tools | readonly ( | Tool<SpooledArtifact> | ArtifactTool)[] |
deps | { descriptionToChatCompletionsJsonSchema: (d: DescriptionLike) => JsonSchema; } |
deps.descriptionToChatCompletionsJsonSchema | (d: DescriptionLike) => JsonSchema |