AgentSdkCompletionRequest class final
One completion request at the transport layer.
context is already assembled and already password-free — the transport receives text, never sections, so it structurally cannot reach a password field. Nothing in this class can hold an application's model object; that is the point of it existing rather than passing an LlmRequest straight through.
Constructors
- AgentSdkCompletionRequest({required String prompt, String context = '', String? systemPrompt, String? model, AgentSdkToolSet? tools})
-
const
Properties
- context → String
-
The assembled, password-free document context. Empty when the feature
sends none.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- model → String?
-
An optional model override; null means the far end's default.
final
- prompt → String
-
The feature-supplied instruction.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemPrompt → String?
-
An optional system prompt. Feature-supplied, never document-derived.
final
- tools → AgentSdkToolSet?
-
The tools the model may call during this request, or null
for a plain completion that can act on nothing.
final
- wirePrompt → String
-
The single string actually put on the wire.
no setter
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