UNPKG

@iucteam/lot-agents

Version:

Agents for lot agentic framework

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