AgentSdkCompletionRequest class final
One completion request at the transport layer.
prompt 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? systemPrompt, String? model, AgentSdkToolSet? tools, String? resume, AgentSdkAgentLoop? agentLoop})
-
const
Properties
- agentLoop → AgentSdkAgentLoop?
-
Claude Code's own agent loop, or null for none.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- model → String?
-
An optional model; null means the far end's default.
final
- prompt → String
-
The body as sent: the request's
WirePrompt.combined, unchanged.final - resume → String?
-
The far end's conversation to continue (the SDK's
resume), or null for a fresh one.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemPrompt → String?
-
An optional system prompt. Configuration, never document-derived; null
keeps the far end's own system prompt.
final
- tools → AgentSdkToolSet?
-
The tools the model may call during this request, or null
for a plain completion that can act on nothing.
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