ChatStreamChunk class
流式消息块。
Constructors
-
ChatStreamChunk.fromJson(Map<
String, dynamic> map) -
从 JSON map 创建流式消息块。
factory
Properties
- chunk → String
-
流式消息块的文本内容。
final
- customType → String?
-
自定义类型。
final
- errorCode → int
-
错误码。
final
- finishReason → int
-
完成原因。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → ChatStreamStatus
-
流式消息状态。
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited