VanturaObserver class abstract

An observer that can hook into the reasoning cycle of a VanturaAgent.

Use this to implement tracing, observability, or custom performance logging without modifying the core agent logic.

Implementers

Constructors

VanturaObserver()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(Object error, StackTrace stackTrace) → void
Called when the agent encounters an error.
onLlmRequest(List<VanturaMessage> messages) → void
Called before sending a request to the LLM.
onLlmResponse(VanturaResponse response) → void
Called after receiving a response from the LLM.
onRunFinish(VanturaResponse response) → void
Called when the agent completes a run.
onRunStart(String prompt, Map<String, dynamic>? config) → void
Called when the agent starts a new run.
onStepFinish(int stepNumber) → void
Called at the finish of a ReAct reasoning step.
onStepStart(int stepNumber) → void
Called at the start of a ReAct reasoning step.
onToolFinish(String toolName, String result) → void
Called after a tool execution completes.
onToolStart(String toolName, Map<String, dynamic> args) → void
Called before executing a tool.
toString() String
A string representation of this object.
inherited

Operators

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