GenkitRouterAgents extension

Agent support for GenkitRouter.

Lives in an extension (exported only from the experimental package:genkit/experimental_io.dart) so the stable GenkitRouter API never references the experimental Agent type.

on

Methods

addAgent(Agent agent, {String? path, ContextProvider? contextProvider, bool hideGetSnapshot = false, bool hideAbort = false}) → void

Available on GenkitRouter, provided by the GenkitRouterAgents extension

Serves agent using the layout remoteAgent(url: '<base><path>') expects. Companion routes are mounted only when the agent supports them: