@suluk/chat - v0.2.1
↑ Suluk
GitHub
Preparing search index...
ChatMessage
Interface ChatMessage
interface
ChatMessage
{
role
:
"tool"
|
"system"
|
"user"
|
"assistant"
;
content
?:
string
|
null
;
tool_calls
?:
ToolCall
[]
;
tool_call_id
?:
string
;
name
?:
string
;
}
Index
Properties
role
content?
tool_
calls?
tool_
call_
id?
name?
Properties
role
role
:
"tool"
|
"system"
|
"user"
|
"assistant"
Optional
content
content
?:
string
|
null
Optional
tool_
calls
tool_calls
?:
ToolCall
[]
assistant turns that call tools
Optional
tool_
call_
id
tool_call_id
?:
string
tool-result turns reference the call they answer
Optional
name
name
?:
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
role
content
tool_
calls
tool_
call_
id
name
↑ Suluk
GitHub
@suluk/chat - v0.2.1
Loading...
assistant turns that call tools