GenerateRequest class base

Constructors

GenerateRequest({required List<Message> messages, Map<String, dynamic>? config, List<ToolDefinition>? tools, ToolChoice? toolChoice, OutputConfig? output, List<DocumentData>? docs, int? candidates})
GenerateRequest.fromJson(Map<String, dynamic> json)
Creates a GenerateRequest from a JSON map.
factory

Properties

candidates ↔ int?
getter/setter pair
config ↔ Map<String, dynamic>?
getter/setter pair
docs ↔ List<DocumentData>?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
messages ↔ List<Message>
getter/setter pair
output ↔ OutputConfig?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
toolChoice ↔ ToolChoice?
getter/setter pair
tools ↔ List<ToolDefinition>?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this GenerateRequest to a JSON map.
toString() → String
A string representation of this object.
override

Operators

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

Constants

$schema → const SchemanticType<GenerateRequest>
The JSON schema and type descriptor for GenerateRequest.