AgentRequest class final

Reads the context, offered tools and latest answers of a scripted run. raw stays available for assertions about the wire format.

Constructors

AgentRequest(Map<String, Object?> raw)

Properties

hashCode → int
The hash code for this object.
no setterinherited
isUserMessage → bool
Whether the last message came from the user, including an app wake.
no setter
latestToolResults → List<AgentToolResult>
The consecutive tool answers at the end of the request, oldest first. A trailing user or assistant message leaves this empty.
no setter
newNotes → List<Object?>
New app notes, oldest first, or an empty list when none are offered.
no setter
newPressedActions → List<PressedAction>
The actions of views the agent drew that the user pressed, from the new app notes, oldest first.
no setter
offersView → bool
Whether the run offers tandem_show_view, which AgentStep.showView calls.
no setter
raw → Map<String, Object?>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userText → String?
The text of the user's latest message, including an app wake, or null when the run has none or its content is not text.
no setter

Methods

context(String name) → Object?
The first named context entry, decoded from JSON, or null when absent. Throws a FormatException when its value is not valid JSON.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offersTool(String name) → bool
toString() → String
A string representation of this object.
inherited

Operators

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