| import { Command } from 'nestjs-command'; | |
| import { Injectable } from '@nestjs/common'; | |
| import { AgentGraphService } from '@gitroom/nestjs-libraries/agent/agent.graph.service'; | |
| () | |
| export class AgentRun { | |
| constructor(private _agentGraphService: AgentGraphService) {} | |
| ({ | |
| command: 'run:agent', | |
| describe: 'Run the agent', | |
| }) | |
| async agentRun() { | |
| console.log(await this._agentGraphService.createGraph('hello', true)); | |
| } | |
| } | |