Package io.agentscope.core.agui.adapter
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.
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 Summary
Modifier and TypeMethodDescriptioncreate(io.agentscope.core.agent.Agent agent, AguiAdapterConfig config) Create an adapter for a resolved agent.static AguiAgentAdapterFactoryReturn the default factory.
-
Method Details
-
create
Create an adapter for a resolved agent.- Parameters:
agent- The resolved agentconfig- The AG-UI adapter configuration- Returns:
- The adapter to use for the request
-
defaultFactory
Return the default factory.- Returns:
- A factory that creates the standard
AguiAgentAdapter
-