Enum OrchestrationStreamTokenType
- Namespace
- LMKit.Agents.Orchestration.Streaming
- Assembly
- LM-Kit.NET.dll
The type of orchestration streaming token.
public enum OrchestrationStreamTokenType
Fields
Content = 0Regular content text from an agent.
Thinking = 1Thinking or reasoning text.
ToolCall = 2Tool call notification.
ToolResult = 3Tool result notification.
AgentStarted = 4An agent has started execution.
AgentCompleted = 5An agent has completed execution.
Delegation = 6Delegation from one agent to another.
Status = 7Status or progress update.
Error = 8Error message.
OrchestrationStarted = 9Orchestration has started.
OrchestrationCompleted = 10Orchestration has completed.
Examples
Filtering an orchestration stream to only the visible content:
using LMKit.Agents.Orchestration.Streaming;
await foreach (var t in orchestrator.StreamAsync("Topic: edge AI"))
{
if (t.Type == OrchestrationStreamTokenType.Content)
{
Console.Write(t.Text);
}
}