UNPKG

@iucteam/lot-agents

Version:

Agents for lot agentic framework

20 lines (19 loc) 851 B
import { Brain, Inference, Sensor, SensorConfig, Stringifiable, Task, TaskType } from '@iucteam/lot'; export interface HttpPostInput extends Record<string, unknown> { url: string; body: Record<string, unknown>; headers?: Record<string, string>; } /** * A tool able to send HTTP POST request to a resource using fetch. * Name and description can be customised, by default are respectively set to: * 'httpPost' and 'allows to execute HTTP POST request toward a resource identified via the url property' * * To customise the behaviour override the HttpPost#use method */ export declare class HttpPost extends Sensor { constructor(sensorConfig: SensorConfig, brain?: Brain<Stringifiable>); detect(task: Task<HttpPostInput>): Promise<Inference<Stringifiable>[]>; getSchema(): string; getAgentCapabilities(): TaskType[]; }