AIAssistantToolResultEvent class

Represents an AI Assistant tool result event.

This event is received when an AI tool call produces a result. Extends AIAssistantBaseEvent and includes result-specific data.

Android Reference: com.cometchat.chat.models.AIAssistantToolResultEvent

Inheritance

Constructors

AIAssistantToolResultEvent({String? streamMessageId, int? runId, String? threadId, String? toolCallId, String? content, String? role, String? toolCallName, String? displayName, String? executionText, String? arguments, int? id, String? type, String? conversationId, String? parentId, Map<String, dynamic>? additionalProperties})
Creates an AIAssistantToolResultEvent instance.
AIAssistantToolResultEvent.fromMap(Map<String, dynamic> map)
Creates an instance from a map (similar to Android's fromJson).
factory

Properties

additionalProperties Map<String, dynamic>?
getter/setter pairinherited
arguments String?
The arguments that were passed to the tool. Android: AIAssistantToolResultEvent.getArguments()
getter/setter pair
content String?
The content/result of the tool call. Android: AIAssistantToolResultEvent.getContent()
getter/setter pair
conversationId String?
getter/setter pairinherited
displayName String?
The display name for the tool. Android: AIAssistantToolResultEvent.getDisplayName()
getter/setter pair
executionText String?
The execution text describing what the tool did. Android: AIAssistantToolResultEvent.getExecutionText()
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int?
getter/setter pairinherited
parentId String?
getter/setter pairinherited
role String?
The role associated with this result. Android: AIAssistantToolResultEvent.getRole()
getter/setter pair
runId int?
The run ID for this AI assistant run. Android: AIAssistantToolResultEvent.getRunId()
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamMessageId String?
The stream message ID associated with this result. Android: AIAssistantToolResultEvent.getStreamMessageId()
getter/setter pair
threadId String?
The thread ID for this conversation thread. Android: AIAssistantToolResultEvent.getThreadId()
getter/setter pair
toolCallId String?
The tool call ID that produced this result. Android: AIAssistantToolResultEvent.getToolCallId()
getter/setter pair
toolCallName String?
The name of the tool that was called. Android: AIAssistantToolResultEvent.getToolCallName()
getter/setter pair
type String?
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the object to a map (similar to Android's toJson).
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited