Interface AguiAgentAdapterFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AguiAgentAdapterFactory
Factory for creating AguiAgentAdapter instances for AG-UI requests.

Applications can provide a custom factory when they need to replace the default adapter, for example to use an AguiAgentAdapter subclass that customizes runtime context creation.

  • Method Details

    • create

      AguiAgentAdapter create(io.agentscope.core.agent.Agent agent, AguiAdapterConfig config)
      Create an adapter for a resolved agent.
      Parameters:
      agent - The resolved agent
      config - The AG-UI adapter configuration
      Returns:
      The adapter to use for the request
    • defaultFactory

      static AguiAgentAdapterFactory defaultFactory()
      Return the default factory.
      Returns:
      A factory that creates the standard AguiAgentAdapter