feat(llm): auto fixing known llm format errors

This commit is contained in:
Simon
2025-10-20 22:03:09 +08:00
parent 48da610732
commit 0d48b71b27
7 changed files with 318 additions and 6 deletions

View File

@@ -49,9 +49,9 @@ export interface LLMClient {
*/
export interface InvokeResult<TResult = unknown> {
toolCall: {
id?: string // OpenAI's tool_call_id
// id?: string // OpenAI's tool_call_id
name: string
args: Record<string, unknown>
args: any
}
toolResult: TResult // Supports generics, but defaults to unknown
usage: {