ITurnContext Interface
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.
Provides context for a turn of an Agent.
public interface ITurnContext
type ITurnContext = interface
Public Interface ITurnContext
- Derived
Remarks
Context provides information needed to process an incoming IActivity. The context object is created by a IChannelAdapter and persists for the length of the turn.
Properties
| Activity |
Gets the Activity for this Turn. This is the incoming IActivity. |
| Adapter |
Gets the Adapter that created this context object. |
| Identity | |
| Responded |
Gets a value indicating whether at least one response was sent for the current turn. |
| Services | |
| StackState | |
| StreamingResponse |
Provides access to the IStreamingResponse to allow streaming of chunked messages (for example, via streaming AI responses). |
Methods
Extension Methods
| GetDebugger(ITurnContext) |
Extension method to get IDialogDebugger from TurnContext. |