Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller[T any] struct { // contains filtered or unexported fields }
func New ¶
func New[T any](cfg Config) *Controller[T]
func (*Controller[T]) Run ¶
func (c *Controller[T]) Run(ctx context.Context, agent controller.AgentLike[T], input string) (string, error)
Run implements the ReAct loop: Thought -> Action (tool call) -> Observation -> Thought -> ... -> Final Answer
Click to show internal directories.
Click to hide internal directories.