feat(pico): add support for tool_calls in chat messages

This commit is contained in:
lc6464
2026-04-25 23:43:10 +08:00
parent 77be169db4
commit 5cd10b594a
20 changed files with 815 additions and 409 deletions
+12 -1
View File
@@ -14,7 +14,7 @@ export interface SessionDetail {
messages: {
role: "user" | "assistant"
content: string
kind?: "normal" | "thought"
kind?: "normal" | "thought" | "tool_calls"
media?: string[]
attachments?: {
type?: "image" | "audio" | "video" | "file"
@@ -22,6 +22,17 @@ export interface SessionDetail {
filename?: string
content_type?: string
}[]
tool_calls?: {
id?: string
type?: string
function?: {
name?: string
arguments?: string
}
extra_content?: {
tool_feedback_explanation?: string
}
}[]
}[]
summary: string
created: string