File size: 456 Bytes
3722089 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import { Command } from 'nestjs-command';
import { Injectable } from '@nestjs/common';
import { AgentGraphService } from '@gitroom/nestjs-libraries/agent/agent.graph.service';
@Injectable()
export class AgentRun {
constructor(private _agentGraphService: AgentGraphService) {}
@Command({
command: 'run:agent',
describe: 'Run the agent',
})
async agentRun() {
console.log(await this._agentGraphService.createGraph('hello', true));
}
}
|