Partager via


Agent.GetChannelKeys Method

Definition

Set of keys to establish channel affinity. Minimum expected key-set: yield return typeof(YourAgentChannel).FullName;

protected internal abstract System.Collections.Generic.IEnumerable<string> GetChannelKeys ();
abstract member GetChannelKeys : unit -> seq<string>
Protected Friend MustOverride Function GetChannelKeys () As IEnumerable(Of String)

Returns

Remarks

Two specific agents of the same type may each require their own channel. This is why the channel type alone is insufficient. For example, two OpenAI Assistant agents each targeting a different Azure OpenAI endpoint would require their own channel. In this case, the endpoint could be expressed as an additional key.

Applies to