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
4 lines • 1.47 kB
JavaScript
Object.defineProperty(exports, "__esModule", {value: true});/* 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 an intelligent development workspace. */
var _provider = require('@ai-sdk/provider');function s({toolChoice:o,tools:r}){let n=[];if(r===void 0)return{tools:void 0,toolWarnings:n};let t=[];for(let e of r)e.type==="provider-defined"?n.push({tool:e,type:"unsupported-tool"}):t.push({function:{description:e.description,name:e.name,parameters:e.inputSchema},type:"function"});if(o===void 0)return{tools:t,toolWarnings:n};let a=o.type;switch(a){case"required":case"auto":return{tools:t,toolWarnings:n};case"none":return{tools:void 0,toolWarnings:n};case"tool":return{toolChoice:{function:{name:o.toolName},type:"function"},tools:t,toolWarnings:n};default:{let e=a;throw new (0, _provider.UnsupportedFunctionalityError)({functionality:`Unsupported tool choice type: ${e}`})}}}exports.a = s;
/* 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 an intelligent development workspace. */
//# sourceMappingURL=chunk-X5QODHIJ.cjs.map
;