Fix tsgo type issues: update tsgo, fix ReasoningEffort import, remove broken enum-test

This commit is contained in:
Mario Zechner 2025-12-08 22:59:13 +01:00
parent 0bc8d79216
commit 238c5d34e4
7 changed files with 289 additions and 835 deletions

View file

@ -1,4 +1,4 @@
import type { AgentEvent, AgentTool, Message, Model, QueuedMessage } from "@mariozechner/pi-ai";
import type { AgentEvent, AgentTool, Message, Model, QueuedMessage, ReasoningEffort } from "@mariozechner/pi-ai";
/**
* The minimal configuration needed to run an agent turn.
@ -7,7 +7,7 @@ export interface AgentRunConfig {
systemPrompt: string;
tools: AgentTool<any>[];
model: Model<any>;
reasoning?: "low" | "medium" | "high" | "xhigh";
reasoning?: ReasoningEffort;
getQueuedMessages?: <T>() => Promise<QueuedMessage<T>[]>;
}