AgentContext

org.llm4s.agent.AgentContext
See theAgentContext companion object
case class AgentContext(tracing: Option[Tracing], debug: Boolean, traceLogPath: Option[String])

Bundles cross-cutting execution parameters for Agent methods.

Replaces the separate debug, tracing, and traceLogPath parameters that appeared on every run overload before v0.3.0. Pass AgentContext.Default when none of these concerns are needed.

Value parameters

debug

Enables verbose INFO-level debug logging of every state-machine transition, tool argument, and LLM response via SLF4J.

traceLogPath

Path to write a markdown execution trace after each step; useful for post-run inspection without a full tracing backend.

tracing

Optional tracer; spans are emitted for each LLM call, tool execution, and state update. Use org.llm4s.trace.Tracing implementations such as ConsoleTracing or TraceCollectorTracing to capture spans.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product