Interface IVersionedAgentDefinitionRegistry
Versioned registry for AgentDefinition instances supporting environment-scoped storage, semantic-version resolution, and environment promotion.
public interface IVersionedAgentDefinitionRegistry : IAgentDefinitionRegistry
- Inherited Members
Methods
ListAsync(string, CancellationToken)
Lists all definitions in the given environment, optionally filtered by name.
Task<IReadOnlyList<AgentDefinition>> ListAsync(string environment = "dev", CancellationToken cancellationToken = default)
Parameters
environmentstringcancellationTokenCancellationToken
Returns
PromoteAsync(string, string, string, string, CancellationToken)
Copies a definition from fromEnvironment to
toEnvironment. The definition must be registered in the
source environment.
Task PromoteAsync(string name, string version, string fromEnvironment, string toEnvironment, CancellationToken cancellationToken = default)
Parameters
namestringversionstringfromEnvironmentstringtoEnvironmentstringcancellationTokenCancellationToken
Returns
RegisterAsync(AgentDefinition, string, CancellationToken)
Persists the definition in the given environment scope. If a definition with the same name+version already exists it is overwritten.
Task RegisterAsync(AgentDefinition definition, string environment = "dev", CancellationToken cancellationToken = default)
Parameters
definitionAgentDefinitionenvironmentstringcancellationTokenCancellationToken
Returns
ResolveAsync(string, string?, string, CancellationToken)
Resolves a definition by name and optional version within the given environment.
If version is null or "latest", the highest semver
definition is returned. Returns null if not found.
Task<AgentDefinition?> ResolveAsync(string name, string? version = null, string environment = "dev", CancellationToken cancellationToken = default)
Parameters
namestringversionstringenvironmentstringcancellationTokenCancellationToken
Returns
UnregisterAsync(string, string, string, CancellationToken)
Removes the named version from the given environment.
Task UnregisterAsync(string name, string version, string environment = "dev", CancellationToken cancellationToken = default)
Parameters
namestringversionstringenvironmentstringcancellationTokenCancellationToken