Package-level declarations

Types

Link copied to clipboard
class ActionObservationContext(val process: AgentProcess, val action: Action)

Thin context for the embabel.action span: wraps the owning AgentProcess and the Action.

Link copied to clipboard

Port for direct instrumentation at the agent work sites (agent turn, action, LLM call, tool loop).

Link copied to clipboard

Thin context for the embabel.agent span: wraps the live AgentProcess, from which the registered convention reads all attributes — status at stop, so it reflects the final outcome.

Link copied to clipboard

Marks observability instrumentation types (observation contexts, the AgentInstrumentation port and its helpers) as internal SPI: the core uses them to create spans, but they are not part of the public agent API and may change without notice. Kotlin callers must opt in with @OptIn(InternalObservabilityApi::class).

Link copied to clipboard
class LlmObservationContext(val requestEvent: LlmRequestEvent<*>)

Thin context for the embabel.llm span: wraps the LlmRequestEvent; the convention extracts attributes.

Link copied to clipboard

No-op default: runs work and creates no observation, never even invoking context. Active whenever no observability module contributes an AgentInstrumentation bean.

Link copied to clipboard

Direct-instrumentation helpers used at the agent work sites.

Link copied to clipboard

Java-friendly view of the Kotlin Result carried by ToolCallResponseEvent, for Java consumers (e.g. the observability module) that cannot read a Kotlin inline value class directly. Lives in this Kotlin module so the read stays native — no reflection.

Link copied to clipboard
class ToolLoopObservationContext(val startEvent: ToolLoopStartEvent, val inputMessages: List<Message>)

Thin context for the embabel.tool_loop span: wraps the ToolLoopStartEvent and the inputMessages (the prompt, captured at start). output is set after the loop runs and read by the convention at stop — the only mutable field, since the result is not on the start event.