fix: Make RouteBuilder explicit in SourceGen to avoid conflicts

This commit is contained in:
Jacob Alber
2026-03-25 09:43:31 -04:00
Unverified
parent c42edc8c75
commit fbb76019d7
3 changed files with 4 additions and 3 deletions
@@ -38,6 +38,7 @@ internal static class SourceBuilder
sb.AppendLine("using System.Collections.Generic;");
sb.AppendLine("using Microsoft.Agents.AI.Workflows;");
sb.AppendLine();
sb.AppendLine("using RouteBuilder = Microsoft.Agents.AI.Workflows.RouteBuilder;");
// Namespace
if (!string.IsNullOrWhiteSpace(info.Namespace))
@@ -3,7 +3,7 @@
namespace Microsoft.Agents.AI.Workflows;
/// <summary>
/// Provides extensions methods for creating <see cref="Configured{TSubject}"/> objects
/// Provides extension methods for creating <see cref="Configured{TSubject}"/> objects
/// </summary>
internal static class ConfigurationExtensions
{
@@ -50,7 +50,7 @@ internal static class Configured
/// A representation of a preconfigured, lazy-instantiatable instance of <typeparamref name="TSubject"/>.
/// </summary>
/// <typeparam name="TSubject">The type of the preconfigured subject.</typeparam>
/// <param name="factoryAsync">A factory to intantiate the subject when desired.</param>
/// <param name="factoryAsync">A factory to instantiate the subject when desired.</param>
/// <param name="id">The unique identifier for the configured subject.</param>
/// <param name="raw"></param>
internal class Configured<TSubject>(Func<ExecutorConfig, string, ValueTask<TSubject>> factoryAsync, string id, object? raw = null)
@@ -87,7 +87,7 @@ internal class Configured<TSubject>(Func<ExecutorConfig, string, ValueTask<TSubj
/// </summary>
/// <typeparam name="TSubject">The type of the preconfigured subject.</typeparam>
/// <typeparam name="TOptions">The type of configuration options for the preconfigured subject.</typeparam>
/// <param name="factoryAsync">A factory to intantiate the subject when desired.</param>
/// <param name="factoryAsync">A factory to instantiate the subject when desired.</param>
/// <param name="id">The unique identifier for the configured subject.</param>
/// <param name="options">Additional configuration options for the subject.</param>
/// <param name="raw"></param>