CreateMessageResult extension type
The client's response to a sampling/create_message request from the server.
The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
- on
- Implemented types
Constructors
- CreateMessageResult.new({required Role role, required Content content, required String model, String? stopReason, Meta? meta})
-
factory
-
CreateMessageResult.fromMap(Map<
String, Object?> _value)
Properties
- content → Content
-
The content of the message.
no setterinherited
- meta → Meta?
-
no setterinherited
- model → String
-
The name of the model that generated the message.
no setter
- role → Role
-
The role of the message.
no setterinherited
- stopReason → String?
-
The reason why sampling stopped, if known.
no setter