UNPKG

@iucteam/lot-agents

Version:

Agents for lot agentic framework

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