Method RecordObservation
RecordObservation(PlanningContext, string, string)
Records a tool result as an observation in the planning context.
Call this method after a tool invocation to include the result in the ReAct reasoning trace. This is typically done by subscribing to the AfterToolInvocation event.
public void RecordObservation(PlanningContext context, string toolName, string observation)
Parameters
contextPlanningContextThe planning context.
toolNamestringThe name of the tool that was called.
observationstringThe tool result to record.