-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from whatagraph/main
Align `GenerativeModelTestResource` with `GenerativeModel`
- Loading branch information
Showing
6 changed files
with
205 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Gemini\Testing\FunctionCalls; | ||
|
||
use Gemini\Enums\ModelType; | ||
|
||
final class TestFunctionCall | ||
{ | ||
/** | ||
* @param array<string, mixed> $args | ||
*/ | ||
public function __construct(protected string $resource, protected string $method, protected array $args, protected ModelType|string|null $model = null) {} | ||
|
||
public function resource(): string | ||
{ | ||
return $this->resource; | ||
} | ||
|
||
public function method(): string | ||
{ | ||
return $this->method; | ||
} | ||
|
||
/** | ||
* @return array<string, mixed> | ||
*/ | ||
public function args(): array | ||
{ | ||
return $this->args; | ||
} | ||
|
||
public function model(): ModelType|string|null | ||
{ | ||
return $this->model; | ||
} | ||
} |
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