BeamAgent.Trace (beam_agent v0.1.0)

Copy Markdown View Source

Provides tracing functionality for the agent.

Every state transition in BeamAgent.Runner is recorded as one Step into an append-only list — this is the full audit trail exposed as BeamAgent.Run.trace on both success and failure, not just an internal debug log. Typical :type values: :model_call, :model_finished, :tool_requested, :tool_started, :tool_completed, :tool_failed, :context_compressed, :finished, :failed.

Summary

Functions

Appends one Step to trace, stamped with the current time.

Functions

record(trace, iteration, type, payload)

Appends one Step to trace, stamped with the current time.