Method TryGetAgentById
- Namespace
- Oscova.Agents.Collections
- Assembly
- Oscova.Agents.dll
TryGetAgentById(string, out ChatClientAgent?)
Attempts to retrieve a cached agent by identifier.
public bool TryGetAgentById(string agentId, out ChatClientAgent? agent)Parameters
agentIdstring-
The agent identifier to find.
agentChatClientAgent?-
The cached agent when found; otherwise null.