Documentation
¶
Overview ¶
Package agentloop exposes TARS' reusable LLM tool-calling loop. It turns a provider-normalized llm.Client plus a tools.Registry into an iterative agent loop that calls tools, appends tool results, detects repeated tool-call patterns, and emits audit hooks.
Index ¶
Constants ¶
View Source
const ( EventLoopStart = internal.EventLoopStart EventBeforeLLM = internal.EventBeforeLLM EventAfterLLM = internal.EventAfterLLM EventBeforeTool = internal.EventBeforeTool EventAfterTool = internal.EventAfterTool EventProviderTool = internal.EventProviderTool EventLoopEnd = internal.EventLoopEnd EventLoopError = internal.EventLoopError DefaultMaxLoopIters = internal.DefaultMaxLoopIters )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditEntry ¶
type AuditEntry = internal.AuditEntry
type AuditHook ¶
func NewAuditHook ¶
type CounterHook ¶
type CounterHook = internal.CounterHook
func NewCounterHook ¶
func NewCounterHook() *CounterHook
type RunOptions ¶
type RunOptions = internal.RunOptions
Click to show internal directories.
Click to hide internal directories.