mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
feat(pico): add support for tool_calls in chat messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user