agentHandler<T extends Json = Json>(agents: AgentSpec<T>[]): (req: Request) => Promise<Response>
Create standard fetch handler for an agent.
Takes a list of agents and returns a handler that can be used to create an agent http endpoint. The handler implements the standard fetch interface and can be used with a variety of different http server libraries.
To see how to write the agent functions, see the Connect4Agent and PokerAgent