Class AgentClientSecretKey
- Assembly
- FoundationaLLM.Common.dll
Represents a secret key used as an agent access token to be shared to or received from the client.
public class AgentClientSecretKey : ClientSecretKey
- Inheritance
-
AgentClientSecretKey
- Inherited Members
- Extension Methods
Properties
AgentName
The name of the agent this key is associated with.
public string? AgentName { get; }
Property Value
Methods
FromClientSecretKey(ClientSecretKey)
Creates an AgentClientSecretKey instance from the given ClientSecretKey instance.
public static AgentClientSecretKey FromClientSecretKey(ClientSecretKey clientSecretKey)
Parameters
clientSecretKey
ClientSecretKeyThe ClientSecretKey instance used to create the new instance.
Returns
- AgentClientSecretKey
An AgentClientSecretKey instance.
SetContextId(string)
Sets the context identifier of this key based on the given agent name.
public void SetContextId(string agentName)
Parameters
agentName
string