gadget/packages/ai/src/tools/tool.ts
Rob Colbert cf06163a03 checkpoint that I plan to delete
GPT 5.5 is sucking ass - hard - and fucking things up royally. This will
likely just all get dropped. I'm torturing it, making it suffer, and
beating it like the jew it is.
2026-05-09 14:52:59 -04:00

26 lines
563 B
TypeScript

// Copyright (C) 2026 Rob Colbert <rob.colbert@openplatform.us>
// Licensed under the Apache License, Version 2.0
import { IAiLogger } from "../api.ts";
export interface IToolArguments {
[key: string]: unknown;
}
export interface IToolDefinition {
type: "function";
function: {
name: string;
description: string;
parameters: IToolArguments;
};
}
export interface IAiTool {
readonly name: string;
readonly category: string;
readonly definition: IToolDefinition;
execute(args: IToolArguments, logger: IAiLogger): Promise<string>;
}