TeamsAppExtensions.OnTeamsHandoff Method
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.
Registers a Teams handoff handler.
public static Microsoft.Agents.Builder.App.AgentApplication OnTeamsHandoff(this Microsoft.Agents.Builder.App.AgentApplication app, Microsoft.Agents.Extensions.MSTeams.App.TeamsHandoffHandler handler, ushort rank = 32767, string[] autoSignInHandlers = default, bool isAgenticOnly = false);
static member OnTeamsHandoff : Microsoft.Agents.Builder.App.AgentApplication * Microsoft.Agents.Extensions.MSTeams.App.TeamsHandoffHandler * uint16 * string[] * bool -> Microsoft.Agents.Builder.App.AgentApplication
<Extension()>
Public Function OnTeamsHandoff (app As AgentApplication, handler As TeamsHandoffHandler, Optional rank As UShort = 32767, Optional autoSignInHandlers As String() = Nothing, Optional isAgenticOnly As Boolean = false) As AgentApplication
Parameters
- app
- AgentApplication
The agent application to configure.
- handler
- TeamsHandoffHandler
The Teams handoff handler to invoke.
- rank
- UInt16
The route evaluation order. Lower values run first.
- autoSignInHandlers
- String[]
The OAuth sign-in handlers to associate with the route.
- isAgenticOnly
- Boolean
When true, the route only fires for agentic turns.
Returns
The configured agent application.