Spaces:
Paused
Paused
Download src/tools/tools.controller.ts from IlyasDaoud/omnia-agent-api: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/spaces/IlyasDaoud/omnia-agent-api/resolve/main/src/tools/tools.controller.ts
- Command line
-
hf download hf://spaces/IlyasDaoud/omnia-agent-api/src/tools/tools.controller.ts
-
curl -L -o tools.controller.ts https://huggingface.co/spaces/IlyasDaoud/omnia-agent-api/resolve/main/src/tools/tools.controller.ts
324 Bytes
| import { Controller, Get } from '@nestjs/common'; | |
| import { ToolsService } from './tools.service'; | |
| ('tools') | |
| export class ToolsController { | |
| constructor(private readonly tools: ToolsService) {} | |
| /** Public catalog of available agent tools. */ | |
| () | |
| list() { | |
| return { tools: this.tools.list() }; | |
| } | |
| } | |