rawi
Version:
Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into
37 lines (34 loc) • 917 B
text/typescript
import { LanguageModelV2, LanguageModelV2CallWarning } from '@ai-sdk/provider';
declare function prepareTools({ toolChoice, tools, }: Parameters<LanguageModelV2['doGenerate']>[0]): {
tools: undefined;
toolWarnings: LanguageModelV2CallWarning[];
toolChoice?: undefined;
} | {
tools: {
function: {
description: string | undefined;
name: string;
parameters: unknown;
};
type: "function";
}[];
toolWarnings: LanguageModelV2CallWarning[];
toolChoice?: undefined;
} | {
toolChoice: {
function: {
name: string;
};
type: string;
};
tools: {
function: {
description: string | undefined;
name: string;
parameters: unknown;
};
type: "function";
}[];
toolWarnings: LanguageModelV2CallWarning[];
};
export { prepareTools };