TurnContextExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods for extracting values from ITurnContext.
public static class TurnContextExtensions
type TurnContextExtensions = class
Public Module TurnContextExtensions
- Inheritance
-
TurnContextExtensions
Methods
| Name | Description |
|---|---|
| GetCallerBaggagePairs(ITurnContext) |
Extracts caller-related baggage key-value pairs from the provided turn context. |
| GetConversationIdAndItemLinkPairs(ITurnContext) |
Extracts conversation ID and item link baggage key-value pairs from the provided turn context. |
| GetExecutionTypePair(ITurnContext) |
Extracts the execution type baggage key-value pair based on caller and recipient agentic status. |
| GetSourceMetadataBaggagePairs(ITurnContext) |
Extracts source metadata baggage key-value pairs from the provided turn context. |
| GetTargetAgentBaggagePairs(ITurnContext) |
Extracts target agent-related baggage key-value pairs from the provided turn context. |
| GetTenantIdPair(ITurnContext) |
Extracts the tenant ID baggage key-value pair, attempting to retrieve from ChannelData if necessary. |
| InjectObservabilityContext(ITurnContext, OpenTelemetryScope) |
Injects observability context into the turn context. |