@hashbrownai/core
Version:
Runtime helpers for Hashbrown AI
31 lines • 791 B
TypeScript
import { s } from '../schema';
import { JsonValue } from '../utils';
export interface Tool {
name: string;
description: string;
schema: s.HashbrownType;
handler: (input: any, abortSignal: AbortSignal) => Promise<any>;
}
export interface ToolCall {
id: string;
name: string;
arguments: string;
result?: PromiseSettledResult<any>;
progress?: number;
status: 'pending' | 'done';
}
export interface AssistantMessage {
role: 'assistant';
content?: string;
toolCallIds: string[];
}
export interface UserMessage {
role: 'user';
content: JsonValue;
}
export interface ErrorMessage {
role: 'error';
content: string;
}
export type Message = AssistantMessage | UserMessage | ErrorMessage;
//# sourceMappingURL=internal.models.d.ts.map