Class GovernanceActorContext
Provides a default framework-neutral actor context implementation.
public sealed record GovernanceActorContext : IGovernanceActorContext, IEquatable<GovernanceActorContext>
- Inheritance
-
GovernanceActorContext
- Implements
- Inherited Members
Fields
SystemActorId
The stable identifier used for system actors.
public const string SystemActorId = "system"
Field Value
UnknownActorId
The stable identifier used for unknown actors.
public const string UnknownActorId = "unknown"
Field Value
Properties
ActorId
Gets the stable actor identifier.
public string ActorId { get; }
Property Value
ActorType
Gets the actor type.
public GovernanceActorType ActorType { get; }
Property Value
DisplayName
Gets the optional display name or label for the actor.
public string? DisplayName { get; }
Property Value
IsAuthenticated
Gets a value indicating whether the actor has been authenticated by the host.
public bool IsAuthenticated { get; }
Property Value
IsKnown
Gets a value indicating whether the actor is known to the host or framework.
public bool IsKnown { get; }
Property Value
System
Gets a shared actor context for trusted system operations.
public static GovernanceActorContext System { get; }
Property Value
Unknown
Gets a shared actor context for unknown or unauthenticated operations.
public static GovernanceActorContext Unknown { get; }
Property Value
Methods
Agent(string, string?, bool)
Creates an actor context for a delegated or autonomous software agent.
public static GovernanceActorContext Agent(string actorId, string? displayName = null, bool isAuthenticated = true)
Parameters
actorIdstringThe stable agent actor identifier.
displayNamestringThe optional display name.
isAuthenticatedboolWhether the host has authenticated the agent.
Returns
- GovernanceActorContext
An agent actor context.
Human(string, string?, bool)
Creates an actor context for a human participant.
public static GovernanceActorContext Human(string actorId, string? displayName = null, bool isAuthenticated = true)
Parameters
actorIdstringThe stable actor identifier.
displayNamestringThe optional display name.
isAuthenticatedboolWhether the host has authenticated the actor.
Returns
- GovernanceActorContext
A human actor context.
Service(string, string?)
Creates an actor context for a service participant.
public static GovernanceActorContext Service(string actorId, string? displayName = null)
Parameters
Returns
- GovernanceActorContext
A service actor context.