(hit: Hit)
| 662 | }) |
| 663 | |
| 664 | const pull = (hit: Hit) => { |
| 665 | const index = list.findIndex((entry) => !entry.match || entry.match(hit)) |
| 666 | if (index === -1) return |
| 667 | const first = list[index] |
| 668 | list = [...list.slice(0, index), ...list.slice(index + 1)] |
| 669 | return first.item |
| 670 | } |
| 671 | |
| 672 | const handle = Effect.fn("TestLLMServer.handle")(function* (mode: "chat" | "responses") { |
| 673 | const req = yield* HttpServerRequest.HttpServerRequest |
no outgoing calls