Skip to content

Index

NexusLabs.Needlr.AgentFramework.Testing Namespace

Classes
AgentScenarioRunner Executes IAgentScenario instances with proper workspace isolation, execution context scoping, and diagnostics capture.
PipelineScenarioResult Result of running a single IPipelineScenario.
PipelineScenarioRunner Runs IPipelineScenario instances using the NexusLabs.Needlr.AgentFramework.Workflows.Sequential.SequentialPipelineRunner and reports results.
PromptAssert Assertion helpers for verifying prompt integrity without LLM invocation. Use in unit tests to catch prompt regressions (missing safety rules, deleted sections, forbidden patterns) at zero token cost.
PromptAssertionException Thrown by PromptAssert methods when a prompt integrity assertion fails.
ScenarioRunResult Result of running a single IAgentScenario.
ScenarioVerificationException Thrown when a scenario's Verify(IWorkspace, IAgentRunDiagnostics) method detects a failure.
Interfaces
IAgentScenario Defines a self-contained agent test scenario with seed → execute → verify lifecycle. Scenarios are discovered automatically when registered via DI.
IPipelineScenario Defines a pipeline scenario for multi-stage agent workflow testing. Extends the single-agent scenario pattern with pipeline stage construction and pipeline-specific verification.