@dypai-ai/client-sdk - v1.12.0
DYPAI
GitHub
Preparing search index...
react/useChat
MessagePart
Interface MessagePart
A single content part in a message (Vercel AI SDK compatible format)
interface
MessagePart
{
args
?:
any
;
data
?:
string
;
image
?:
string
;
mediaType
?:
string
;
result
?:
any
;
text
?:
string
;
toolName
?:
string
;
type
:
"text"
|
"tool-call"
|
"tool-result"
|
"image"
|
"file"
;
}
Index
Properties
args?
data?
image?
media
Type?
result?
text?
tool
Name?
type
Properties
Optional
args
args
?:
any
Optional
data
data
?:
string
Optional
image
image
?:
string
Optional
media
Type
mediaType
?:
string
Optional
result
result
?:
any
Optional
text
text
?:
string
Optional
tool
Name
toolName
?:
string
type
type
:
"text"
|
"tool-call"
|
"tool-result"
|
"image"
|
"file"
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
args
data
image
media
Type
result
text
tool
Name
type
DYPAI
GitHub
@dypai-ai/client-sdk - v1.12.0
Loading...
A single content part in a message (Vercel AI SDK compatible format)