postio / apps /commands /src /tasks /agent.run.ts
Leon4gr45's picture
Upload folder using huggingface_hub (part 4)
3722089 verified
Raw
History Blame Contribute Delete
456 Bytes
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));
}
}