ConversationAdditionalToolsItem class
An additional tools item in a conversation.
Surfaces the additional tool definitions that were made available at this point in the conversation.
- Inheritance
-
- Object
- ConversationItem
- ConversationAdditionalToolsItem
- Annotations
-
- @immutable
Constructors
-
ConversationAdditionalToolsItem({required String id, required ConversationRole role, required List<
ResponseTool> tools}) -
Creates a ConversationAdditionalToolsItem.
const
-
ConversationAdditionalToolsItem.fromJson(Map<
String, dynamic> json) -
Creates a ConversationAdditionalToolsItem from JSON.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique identifier.
final
- role → ConversationRole
-
The role that provided the additional tools.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tools
→ List<
ResponseTool> -
The additional tool definitions made available at this item.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts to JSON.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override