pi-provider-litellm 3.4.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -59
- package/package.json +3 -3
- package/src/index.ts +109 -393
- package/src/provider.ts +1 -1
- package/src/skills.ts +1 -2
- package/src/types.ts +0 -23
- package/src/mcp-tools.ts +0 -1536
package/src/types.ts
CHANGED
|
@@ -150,29 +150,6 @@ export interface ResolvedCredentials {
|
|
|
150
150
|
apiKeyFromGcloudAdc?: boolean;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
// The boolean MCP tool annotation hints, with the meaning Pi gives `ToolAnnotations`.
|
|
154
|
-
export interface McpToolAnnotations {
|
|
155
|
-
readOnlyHint?: boolean;
|
|
156
|
-
destructiveHint?: boolean;
|
|
157
|
-
idempotentHint?: boolean;
|
|
158
|
-
openWorldHint?: boolean;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface LiteLLMMcpTool {
|
|
162
|
-
name: string;
|
|
163
|
-
server_name: string;
|
|
164
|
-
server_id?: string;
|
|
165
|
-
description: string;
|
|
166
|
-
// Absent or `{}` means the proxy supplied no schema; both use the extension-owned envelope.
|
|
167
|
-
input_schema: Record<string, unknown>;
|
|
168
|
-
// True when the proxy supplied an `inputSchema`/`input_schema` that was not a JSON object.
|
|
169
|
-
input_schema_malformed?: boolean;
|
|
170
|
-
// Boolean hints from the proxy-supplied `annotations`; every other annotation field is dropped.
|
|
171
|
-
annotations?: McpToolAnnotations;
|
|
172
|
-
// `mcp_info.description` of the server, when the proxy supplies one.
|
|
173
|
-
server_description?: string;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
153
|
export interface LiteLLMSkill {
|
|
177
154
|
id?: string;
|
|
178
155
|
name: string;
|