Method Succeeded
- Namespace
- LMKit.Agents.Orchestration
- Assembly
- LM-Kit.NET.dll
Succeeded(string, IReadOnlyList<AgentExecutionResult>, TimeSpan, int, IReadOnlyDictionary<string, object>)
Creates a successful orchestration result.
public static OrchestrationResult Succeeded(string content, IReadOnlyList<AgentExecutionResult> agentResults, TimeSpan duration, int totalInferenceCount = 0, IReadOnlyDictionary<string, object> metadata = null)
Parameters
contentstringagentResultsIReadOnlyList<AgentExecutionResult>durationTimeSpantotalInferenceCountintmetadataIReadOnlyDictionary<string, object>
Returns
Examples
Building a result from a custom orchestrator implementation:
var result = OrchestrationResult.Succeeded(
content: finalAnswer,
agentResults: stepResults,
duration: stopwatch.Elapsed,
totalInferenceCount: stepResults.Sum(s => s.InferenceCount));