Message class
Constructors
-
Message({required Role role, Contents contents = Contents.empty, List<
ToolCall> toolCalls = const [], Map<String, String> channels = const {}}) -
const
-
Message.fromJson(Map<
String, Object?> json) -
factory
- Message.fromJsonString(String jsonString)
-
factory
-
Message.model({Contents contents = Contents.empty, List<
ToolCall> toolCalls = const [], Map<String, String> channels = const {}}) -
factory
- Message.modelText(String text)
-
factory
- Message.system(String text)
-
factory
- Message.systemContents(Contents contents)
-
factory
- Message.tool(Contents contents)
-
factory
- Message.user(String text)
-
factory
- Message.userContents(Contents contents)
-
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toJsonString(
) → String -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited