-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ok I think the mail problem was that after the first 1 it was stuff o…
…n the foreach loop
- Loading branch information
Showing
3 changed files
with
8 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,7 @@ public function test_uses_orchestrate() | |
'from' => '[email protected]', | ||
'subject' => 'This is it', | ||
'header' => 'This is header', | ||
'body' => "Test", | ||
'body' => 'Test', | ||
]); | ||
|
||
Client::shouldReceive('getEmails')->once()->andReturn([ | ||
|
@@ -178,14 +178,13 @@ public function tests_creates_chat_and_message() | |
'from' => '[email protected]', | ||
'subject' => 'This is it', | ||
'header' => 'This is header', | ||
'body' => "Test", | ||
'body' => 'Test', | ||
]); | ||
|
||
Client::shouldReceive('getEmails')->once()->andReturn([ | ||
$dto, | ||
]); | ||
|
||
|
||
LlmDriverFacade::shouldReceive('driver->setToolType->chat')->once()->andReturn( | ||
CompletionResponse::from([ | ||
'content' => 'foo bar', | ||
|
@@ -236,14 +235,13 @@ public function test_repeat_tasks() | |
'from' => '[email protected]', | ||
'subject' => 'This is it', | ||
'header' => 'This is header', | ||
'body' => "Test", | ||
'body' => 'Test', | ||
]); | ||
|
||
Client::shouldReceive('getEmails')->once()->andReturn([ | ||
$dto, | ||
]); | ||
|
||
|
||
LlmDriverFacade::shouldReceive('driver->setToolType->chat')->never(); | ||
|
||
$body = <<<'BODY' | ||
|
@@ -256,7 +254,6 @@ public function test_repeat_tasks() | |
|
||
BODY; | ||
|
||
|
||
SourceTask::factory()->create([ | ||
'source_id' => $source->id, | ||
'task_key' => md5($dto->getContent()), | ||
|
@@ -286,15 +283,13 @@ public function test_no_action_required() | |
'from' => '[email protected]', | ||
'subject' => 'This is it', | ||
'header' => 'This is header', | ||
'body' => "Test", | ||
'body' => 'Test', | ||
]); | ||
|
||
Client::shouldReceive('getEmails')->once()->andReturn([ | ||
$dto, | ||
]); | ||
|
||
|
||
|
||
LlmDriverFacade::shouldReceive('driver->setToolType->chat')->once()->andReturn( | ||
CompletionResponse::from([ | ||
'content' => 'False', | ||
|