HarnessScenarioAgentContext
NexusLabs.Foundry.MicrosoftAgentFramework.Testing¶
HarnessScenarioAgentContext Class¶
Supplies the trusted inputs an IHarnessScenario uses to construct its agent.
public sealed record HarnessScenarioAgentContext : System.IEquatable<NexusLabs.Foundry.MicrosoftAgentFramework.Testing.HarnessScenarioAgentContext>
Inheritance System.Object 🡒 HarnessScenarioAgentContext
Implements System.IEquatable<HarnessScenarioAgentContext>
Constructors¶
HarnessScenarioAgentContext(string, string, string, string, IServiceProvider, IWorkspace, IReadOnlyList<AIFunction>) Constructor¶
Supplies the trusted inputs an IHarnessScenario uses to construct its agent.
public HarnessScenarioAgentContext(string ScenarioName, string UserId, string OrchestrationId, string SessionId, System.IServiceProvider Services, NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace Workspace, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.AIFunction> GeneratedTools);
Parameters¶
ScenarioName System.String
The scenario name.
UserId System.String
The runner-issued user identity.
OrchestrationId System.String
The runner-issued orchestration identity.
SessionId System.String
The runner-issued session identity.
Services System.IServiceProvider
Services used for generated-function activation and agent construction.
Workspace NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace
The seeded, per-run workspace.
GeneratedTools System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.AIFunction>
Source-generated functions resolved without reflection fallback.
Properties¶
HarnessScenarioAgentContext.GeneratedTools Property¶
Source-generated functions resolved without reflection fallback.
public System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.AIFunction> GeneratedTools { get; init; }
Property Value¶
System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.AIFunction>
HarnessScenarioAgentContext.OrchestrationId Property¶
The runner-issued orchestration identity.
Property Value¶
HarnessScenarioAgentContext.ScenarioName Property¶
The scenario name.
Property Value¶
HarnessScenarioAgentContext.Services Property¶
Services used for generated-function activation and agent construction.
Property Value¶
HarnessScenarioAgentContext.SessionId Property¶
The runner-issued session identity.
Property Value¶
HarnessScenarioAgentContext.UserId Property¶
The runner-issued user identity.
Property Value¶
HarnessScenarioAgentContext.Workspace Property¶
The seeded, per-run workspace.
Property Value¶
NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace