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.

Parameters

string $type

at line 33
string getType()

Return the part type.

Return Value

string

at line 41
AiMessagePart setId(string|null $id)

Set the tool-call ID.

Parameters

string|null $id

Return Value

AiMessagePart

at line 50
AiMessagePart setName(string|null $name)

Set the part name.

Parameters

string|null $name

Return Value

AiMessagePart

at line 59
AiMessagePart setContent(string|null $content)

Set the content.

Parameters

string|null $content

Return Value

AiMessagePart

at line 68
string|null getContent()

Return the content.

Return Value

string|null

at line 76
AiMessagePart setArguments(string|null $arguments)

Set the encoded tool arguments.

Parameters

string|null $arguments

Return Value

AiMessagePart

at line 85
string|null getArguments()

Return the encoded tool arguments.

Return Value

string|null

at line 93
AiMessagePart setModality(string|null $modality)

Set the input modality.

Parameters

string|null $modality

Return Value

AiMessagePart

at line 102
AiMessagePart setMimeType(string|null $mimeType)

Set the declared MIME type.

Parameters

string|null $mimeType

Return Value

AiMessagePart

at line 113
array toArray()

Return the non-null part fields.

Return Value

array

at line 142
array jsonSerialize()

Return the part in Sentry's serialized format.

Return Value

array