Table of Contents

Method RecordObservation

Namespace
LMKit.Agents.Planning
Assembly
LM-Kit.NET.dll

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

context PlanningContext

The planning context.

toolName string

The name of the tool that was called.

observation string

The tool result to record.