Class AgentGraphNode
Represents a single node within an agent graph.
Each node wraps an LdAiAgentConfig and carries the outgoing edges to
its children. Use the config's tracker (via Config.CreateTracker()) to record
node-level metrics.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Ai.Graph
Assembly: LaunchDarkly.ServerSdk.Ai.dll
Syntax
public sealed class AgentGraphNode
Constructors
| Edit this page View SourceAgentGraphNode(string, LdAiAgentConfig, IReadOnlyList<GraphEdge>)
Constructs an agent graph node.
Declaration
public AgentGraphNode(string key, LdAiAgentConfig config, IReadOnlyList<GraphEdge> edges)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| LdAiAgentConfig | config | |
| IReadOnlyList<GraphEdge> | edges |
Properties
| Edit this page View SourceConfig
The agent config for this node.
Declaration
public LdAiAgentConfig Config { get; }
Property Value
| Type | Description |
|---|---|
| LdAiAgentConfig |
Edges
The outgoing edges from this node to its children.
Declaration
public IReadOnlyList<GraphEdge> Edges { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<GraphEdge> |
IsTerminal
Whether this node has no outgoing edges (i.e., is a leaf node).
Declaration
public bool IsTerminal { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Key
The agent config key for this node.
Declaration
public string Key { get; }
Property Value
| Type | Description |
|---|---|
| string |