AgentSkillsProviderBuilder.Build Method

Definition

Builds the AgentSkillsProvider.

public Microsoft.Agents.AI.AgentSkillsProvider Build();
member this.Build : unit -> Microsoft.Agents.AI.AgentSkillsProvider
Public Function Build () As AgentSkillsProvider

Returns

A configured AgentSkillsProvider.

Remarks

The returned provider owns the source pipeline constructed by this builder, so disposing the provider disposes the pipeline (including any sources added to this builder).

Build more than one provider from the same builder only when every source it produces is independent per build (for example, sources added via UseSource(Func<ILoggerFactory,AgentSkillsSource>)). A source captured as a shared instance through UseSource(AgentSkillsSource) is reused across builds and would be disposed by whichever provider is disposed first; build only one provider in that case.

Applies to