jorel
Version:
A unified wrapper for working with LLMs from multiple providers, including streams, images, documents & automatic tool use.
13 lines (12 loc) • 442 B
TypeScript
import { Tool } from "ollama";
import { JsonSpecification } from "../llm-core-provider";
export declare const jsonResponseToOllama: (format?: boolean | JsonSpecification) => string | Record<string, any> | undefined;
export declare const toolsToOllama: (tools?: {
asLlmFunctions?: {
function: {
name: string;
description?: string;
parameters?: any;
};
}[];
}) => Tool[] | undefined;