(request: Request, env: Env)
| 24 | |
| 25 | export default { |
| 26 | async fetch(request: Request, env: Env): Promise<Response> { |
| 27 | return ( |
| 28 | (await routeAgentRequest(request, env)) ?? |
| 29 | new Response( |
| 30 | [ |
| 31 | "minimal think chat example", |
| 32 | "", |
| 33 | " Connect a terminal client with `npm run chat`, or point any", |
| 34 | " Think/agents chat client at /agents/assistant/<name>.", |
| 35 | ].join("\n"), |
| 36 | { headers: { "content-type": "text/plain" } }, |
| 37 | ) |
| 38 | ); |
| 39 | }, |
| 40 | } satisfies ExportedHandler<Env>; |
no outgoing calls
no test coverage detected