Download cli/src/types.ts from automindy/fokemal: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/automindy/fokemal/resolve/main/cli/src/types.ts
- Command line
-
hf download hf://spaces/automindy/fokemal/cli/src/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/automindy/fokemal/resolve/main/cli/src/types.ts
1.17 kB
| export interface CatalogModel { | |
| id: string; | |
| name?: string; | |
| context_window?: number | null; | |
| context_length?: number | null; | |
| available?: boolean; | |
| } | |
| export interface GeneratedFile { | |
| path: string; | |
| format: 'json' | 'toml' | 'yaml' | 'env'; | |
| /** Structured patch, deep-merged into the existing document (json, yaml). */ | |
| value?: Record<string, unknown>; | |
| /** Literal text, merged as a marked `# freellmapi:start/end` block (toml, yaml, env). */ | |
| content?: string; | |
| sensitive?: boolean; | |
| } | |
| export interface GenerateContext { | |
| url: string; | |
| apiKey: string; | |
| profile: string; | |
| models: CatalogModel[]; | |
| homeDir: string; | |
| /** An explicit `--model`. Overrides each generator's default-model | |
| * heuristic; validated against the unfiltered catalog by the caller. */ | |
| requestedModelId?: string; | |
| } | |
| export interface Generation { | |
| files: GeneratedFile[]; | |
| notes: string[]; | |
| } | |
| export interface ToolDefinition { | |
| id: string; | |
| name: string; | |
| category: 'code' | 'agent'; | |
| configType: 'env' | 'file' | 'guide'; | |
| protocol: string; | |
| baseUrlSupport: 'root' | '/v1'; | |
| command: string; | |
| docsUrl: string; | |
| generate(ctx: GenerateContext): Generation; | |
| } | |