AiMessagePart
class AiMessagePart implements JsonSerializable
Methods
__construct(string $type)
Create a part of the given type.
string
getType()
Return the part type.
setId(string|null $id)
Set the tool-call ID.
setName(string|null $name)
Set the part name.
setContent(string|null $content)
Set the content.
string|null
getContent()
Return the content.
setArguments(string|null $arguments)
Set the encoded tool arguments.
string|null
getArguments()
Return the encoded tool arguments.
setModality(string|null $modality)
Set the input modality.
setMimeType(string|null $mimeType)
Set the declared MIME type.
array
toArray()
Return the non-null part fields.
array
jsonSerialize()
Return the part in Sentry's serialized format.
Details
at line 26
__construct(string $type)
Create a part of the given type.
at line 33
string
getType()
Return the part type.
at line 41
AiMessagePart
setId(string|null $id)
Set the tool-call ID.
at line 50
AiMessagePart
setName(string|null $name)
Set the part name.
at line 59
AiMessagePart
setContent(string|null $content)
Set the content.
at line 68
string|null
getContent()
Return the content.
at line 76
AiMessagePart
setArguments(string|null $arguments)
Set the encoded tool arguments.
at line 85
string|null
getArguments()
Return the encoded tool arguments.
at line 93
AiMessagePart
setModality(string|null $modality)
Set the input modality.
at line 102
AiMessagePart
setMimeType(string|null $mimeType)
Set the declared MIME type.
at line 113
array
toArray()
Return the non-null part fields.
at line 142
array
jsonSerialize()
Return the part in Sentry's serialized format.