ClientTransform class

Projects an agent's server-side data onto the view a client should see.

  • state reshapes/redacts session state at rest (applied to AgentOutput.state, snapshots, and the streamed customPatch baseline).
  • chunk reshapes/redacts each stream chunk in flight; return null to drop the chunk entirely.

Constructors

ClientTransform({SessionState state(SessionState state)?, AgentStreamChunk? chunk(AgentStreamChunk chunk)?})

Properties

chunk AgentStreamChunk? Function(AgentStreamChunk chunk)?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state SessionState Function(SessionState state)?
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