Table of Contents

Class PlanningHandlerFactory

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

Factory for creating IPlanningHandler instances based on strategy.

public static class PlanningHandlerFactory
Inheritance
PlanningHandlerFactory
Inherited Members

Properties

ChainOfThought

Gets a Chain-of-Thought handler with default settings.

Default

Gets the default handler for agents without a specific planning strategy.

Reflection

Gets a Reflection handler with default settings.

Methods

Create(PlanningStrategy)

Creates a planning handler for the specified strategy.

CreateChainOfThought(string)

Creates a Chain-of-Thought handler with a custom instruction.

CreateForAgent(Agent)

Creates a handler for the agent's configured planning strategy.

CreateReAct()

Creates a ReAct handler.

Note: Tool descriptions are no longer needed as ReAct now uses the native tool-calling system which handles tool advertisement automatically.

CreateReflection(int)

Creates a Reflection handler with the specified number of cycles.