Download packages/operations-agent/src/index.ts from AnthropicallyHuggingFaces/ProjectOS: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/packages/operations-agent/src/index.ts
- Command line
-
hf download hf://spaces/AnthropicallyHuggingFaces/ProjectOS/packages/operations-agent/src/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/packages/operations-agent/src/index.ts
666 Bytes
| import { createPlanDraft } from './index.mjs'; | |
| export interface PlanDraft { | |
| id: string; | |
| question: string; | |
| project: string; | |
| intent: string; | |
| council: string; | |
| agents: string[]; | |
| model: string; | |
| datasets: string; | |
| tools: string; | |
| logic: string; | |
| governance: string; | |
| executionReady: boolean; | |
| created: string; | |
| } | |
| export class OperationsAgent { | |
| createCouncil(task: string): string[] { | |
| const council = createPlanDraft({ question: task }); | |
| console.log(`Creating ${council.council} for ${task}`); | |
| return council.agents; | |
| } | |
| plan(task: string, project?: string): PlanDraft { | |
| return createPlanDraft({ question: task, project }); | |
| } | |
| } | |