AgentSdkClient class
Entry point mirroring the SDK's query() free function, bound to a
AgentSdkTransport.
Constructors
- AgentSdkClient(AgentSdkTransport transport)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transport → AgentSdkTransport
-
The transport used to start/cancel queries and receive chunks.
final
Methods
-
collectQuery(
{required String prompt, Options? options}) → Future< List< SdkMessage> > -
One-line convenience over query: runs the query to completion and
returns every message. Mirrors
await query(...).toList(). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
{required String prompt, Options? options}) → AgentQuery -
Mirrors
sdk.query({prompt, options}). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited