InteractsWithFakeReranking
trait InteractsWithFakeReranking
Properties
| protected FakeRerankingGateway|null | $fakeRerankingGateway | The fake reranking gateway instance. |
|
| protected array | $recordedRerankings | All of the recorded rerankings. |
Methods
Assert that a reranking was performed matching a given truth test.
Assert that a reranking was not performed matching a given truth test.
Assert that no rerankings were performed.
Determine if reranking is faked.
Get the fake reranking gateway.
Details
at line 31
FakeRerankingGateway
fakeReranking(Closure|array $responses = [])
Fake reranking operations.
On the shared manager, the fake gateway affects every request.
at line 42
InteractsWithFakeReranking
recordReranking(RerankingPrompt $prompt)
Record a reranking.
Recorded prompts remain on the worker-shared manager.
at line 53
InteractsWithFakeReranking
assertReranked(Closure $callback)
Assert that a reranking was performed matching a given truth test.
at line 66
InteractsWithFakeReranking
assertNotReranked(Closure $callback)
Assert that a reranking was not performed matching a given truth test.
at line 79
InteractsWithFakeReranking
assertNothingReranked()
Assert that no rerankings were performed.
at line 94
bool
rerankingIsFaked()
Determine if reranking is faked.
at line 102
FakeRerankingGateway|null
fakeRerankingGateway()
Get the fake reranking gateway.