Skip to content
Tracon

AgentDecoratorPipeline

Namespace Tracon · Assembly Tracon.Core.dll

Applies every registered IAgentDecorator to an agent, in the same order Tracon.CompositeAgentCatalog uses.

public static class AgentDecoratorPipeline

objectAgentDecoratorPipeline

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

A caller that compiles an agent OUTSIDE the catalog (a parameterized run, which bypasses CompiledAgentCache and therefore the catalog’s own ResolveAsync) must still apply this same pipeline by hand - otherwise the agent runs undecorated: no run recording, no telemetry, no tool-approval gate.

Apply(AIAgent, AgentDescriptor, IEnumerable<IAgentDecorator>)

Section titled “ Apply(AIAgent, AgentDescriptor, IEnumerable<IAgentDecorator>)”

Applies every decorator, ordered from innermost to outermost.

public static AIAgent Apply(AIAgent agent, AgentDescriptor descriptor, IEnumerable<IAgentDecorator> decorators)

agent AIAgent

The compiled agent.

descriptor AgentDescriptor

The catalog summary of the agent.

decorators IEnumerable<IAgentDecorator>

The registered decorators.

AIAgent

The decorated agent.

ArgumentNullException

A parameter is null.

TraconAgentSourceException

A decorator threw while decorating the agent.