AITrace.AIPlatform (AITrace v0.2.0)

Copy Markdown View Source

AI Platform span and event constructors with redaction-safe attributes.

Summary

Functions

budget_enforcement_span(locus, attrs)

@spec budget_enforcement_span(atom(), map()) ::
  {:ok, AITrace.Span.t()} | {:error, term()}

budget_exhaust_event(locus, attrs)

@spec budget_exhaust_event(atom(), map()) ::
  {:ok, AITrace.Event.t()} | {:error, term()}

budget_exhaustion_event(locus, attrs)

@spec budget_exhaustion_event(atom(), map()) ::
  {:ok, AITrace.Event.t()} | {:error, term()}

context_packet_compile_span(attrs)

@spec context_packet_compile_span(map()) :: {:ok, AITrace.Span.t()} | {:error, term()}

cost_attribution_event(attrs)

@spec cost_attribution_event(map()) :: {:ok, AITrace.Event.t()} | {:error, term()}

cost_span(attrs)

@spec cost_span(map()) :: {:ok, AITrace.Span.t()} | {:error, term()}

eval_span(attrs)

@spec eval_span(map()) :: {:ok, AITrace.Span.t()} | {:error, term()}

eval_verdict_event(attrs)

@spec eval_verdict_event(map()) :: {:ok, AITrace.Event.t()} | {:error, term()}

guard_evaluation_span(attrs)

@spec guard_evaluation_span(map()) :: {:ok, AITrace.Span.t()} | {:error, term()}

guard_violation_event(attrs)

@spec guard_violation_event(map()) :: {:ok, AITrace.Event.t()} | {:error, term()}

memory_span(operation, attrs)

@spec memory_span(atom(), map()) :: {:ok, AITrace.Span.t()} | {:error, term()}

model_call_span(attrs)

@spec model_call_span(map()) :: {:ok, AITrace.Span.t()} | {:error, term()}

promotion_event(attrs)

@spec promotion_event(map()) :: {:ok, AITrace.Event.t()} | {:error, term()}

prompt_resolution_span(attrs)

@spec prompt_resolution_span(map()) :: {:ok, AITrace.Span.t()} | {:error, term()}

replay_event(event, attrs)

@spec replay_event(atom(), map()) :: {:ok, AITrace.Event.t()} | {:error, term()}

replay_span(attrs)

@spec replay_span(map()) :: {:ok, AITrace.Span.t()} | {:error, term()}

rollback_event(attrs)

@spec rollback_event(map()) :: {:ok, AITrace.Event.t()} | {:error, term()}

route_decision_span(attrs)

@spec route_decision_span(map()) :: {:ok, AITrace.Span.t()} | {:error, term()}