IVersionedAgentSource
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllAn IAgentSource that can resolve a specific definition version. Only sources that keep a version history implement it (the database source); the code source has no notion of a version and need not implement this interface.
public interface IVersionedAgentSource : IAgentSourceImplements
Section titled “Implements”Methods
Section titled “Methods”ResolveVersionAsync(string, int, string?, CancellationToken)
Section titled “ ResolveVersionAsync(string, int, string?, CancellationToken)”Resolves an agent by name and by a specific version.
ValueTask<AIAgent?> ResolveVersionAsync(string agentName, int version, string? culture = null, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”agentName string
The agent name.
version int
The requested definition version.
culture string?
The requested culture, resolved against the definition’s culture-keyed instructions
(see AgentDefinition.InstructionsByCulture). null uses the
definition’s default instructions.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<AIAgent?>
The agent, or null when this source does not hold it or that version does not exist.