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