main
1import { ModelInfo } from "../config.js";
2
3export interface SessionEntry {
4 timestamp: string;
5 type: "user" | "assistant" | "tool_call" | "tool_result" | "system";
6 content: string;
7 model?: ModelInfo;
8 toolName?: string;
9 toolCallId?: string;
10}
11
12export interface ConversationMessage {
13 role: "user" | "assistant" | "system";
14 content: string;
15}
16
17export interface ToolCall {
18 id: string;
19 name: string;
20 arguments: Record<string, unknown>;
21}
22
23export interface ToolResult {
24 toolCallId: string;
25 result: string;
26 isError?: boolean;
27}