import { Body, Controller, Get, Post } from '@nestjs/common';
import { AgentRunDto } from './agent.dto';
import { AgentService } from './agent.service';

@Controller('/api/agent')
export class AgentController {
  constructor(private readonly agentService: AgentService) {}

  @Get('/health')
  health() {
    return this.agentService.health();
  }

  @Post('/run')
  run(@Body() body: AgentRunDto) {
    return this.agentService.run(body);
  }
}
