IAgentDecorator
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA decorator applied to every agent resolved from the catalog. AgentPrism adds run recording through this mechanism; a consumer can register its own decorator the same way.
public interface IAgentDecoratorRemarks
Section titled “Remarks”A decorator is not Microsoft Agent Framework middleware. The MAF middleware
chain is specific to an agent, and HarnessAgent adds its own inner decorators.
An outer decorator works the same way on every agent kind, the harness included.
Properties
Section titled “Properties”Gets the order of application. A lower value wraps inside, a higher value wraps outside. Run recording uses 0, which makes it the outermost decorator.
int Order { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Decorate(AIAgent, AgentDescriptor)
Section titled “ Decorate(AIAgent, AgentDescriptor)”Decorates the agent.
AIAgent Decorate(AIAgent agent, AgentDescriptor descriptor)Parameters
Section titled “Parameters”agent AIAgent
The agent to decorate.
descriptor AgentDescriptor
The catalog summary of the agent.
Returns
Section titled “Returns”AIAgent
The decorated agent.