Skip to content

Commit 946ee35

Browse files
committed
chore(cs): fixing cs
1 parent 40e5e82 commit 946ee35

File tree

3 files changed

+15
-20
lines changed

3 files changed

+15
-20
lines changed

src/platform/src/Bridge/Bedrock/Anthropic/ClaudeModelClient.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,10 @@
1313

1414
use AsyncAws\BedrockRuntime\BedrockRuntimeClient;
1515
use AsyncAws\BedrockRuntime\Input\InvokeModelRequest;
16-
use AsyncAws\BedrockRuntime\Result\InvokeModelResponse;
1716
use Symfony\AI\Platform\Bridge\Anthropic\Claude;
1817
use Symfony\AI\Platform\Bridge\Bedrock\RawBedrockResult;
19-
use Symfony\AI\Platform\Exception\RuntimeException;
2018
use Symfony\AI\Platform\Model;
2119
use Symfony\AI\Platform\ModelClientInterface;
22-
use Symfony\AI\Platform\Result\TextResult;
23-
use Symfony\AI\Platform\Result\ToolCall;
24-
use Symfony\AI\Platform\Result\ToolCallResult;
2520

2621
/**
2722
* @author Björn Altmann

src/platform/src/Bridge/Bedrock/Tests/Anthropic/ClaudeModelClientTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function setUp(): void
4242

4343
public function testPassesModelId()
4444
{
45-
$this->bedrockClient->expects(self::once())
45+
$this->bedrockClient->expects($this->once())
4646
->method('invokeModel')
4747
->with($this->callback(function ($arg) {
4848
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -62,7 +62,7 @@ public function testPassesModelId()
6262

6363
public function testUnsetsModelName()
6464
{
65-
$this->bedrockClient->expects(self::once())
65+
$this->bedrockClient->expects($this->once())
6666
->method('invokeModel')
6767
->with($this->callback(function ($arg) {
6868
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -84,7 +84,7 @@ public function testUnsetsModelName()
8484

8585
public function testSetsAnthropicVersion()
8686
{
87-
$this->bedrockClient->expects(self::once())
87+
$this->bedrockClient->expects($this->once())
8888
->method('invokeModel')
8989
->with($this->callback(function ($arg) {
9090
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -106,7 +106,7 @@ public function testSetsAnthropicVersion()
106106

107107
public function testSetsToolOptionsIfToolsEnabled()
108108
{
109-
$this->bedrockClient->expects(self::once())
109+
$this->bedrockClient->expects($this->once())
110110
->method('invokeModel')
111111
->with($this->callback(function ($arg) {
112112
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -123,7 +123,7 @@ public function testSetsToolOptionsIfToolsEnabled()
123123
$this->modelClient = new ClaudeModelClient($this->bedrockClient, self::VERSION);
124124

125125
$options = [
126-
'tools' => ['Tool']
126+
'tools' => ['Tool'],
127127
];
128128

129129
$response = $this->modelClient->request($this->model, ['message' => 'test'], $options);

src/platform/src/Bridge/Bedrock/Tests/Nova/NovaModelClientTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function setUp(): void
4040

4141
public function testPassesModelId()
4242
{
43-
$this->bedrockClient->expects(self::once())
43+
$this->bedrockClient->expects($this->once())
4444
->method('invokeModel')
4545
->with($this->callback(function ($arg) {
4646
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -60,7 +60,7 @@ public function testPassesModelId()
6060

6161
public function testUnsetsModelName()
6262
{
63-
$this->bedrockClient->expects(self::once())
63+
$this->bedrockClient->expects($this->once())
6464
->method('invokeModel')
6565
->with($this->callback(function ($arg) {
6666
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -82,7 +82,7 @@ public function testUnsetsModelName()
8282

8383
public function testSetsToolOptionsIfToolsEnabled()
8484
{
85-
$this->bedrockClient->expects(self::once())
85+
$this->bedrockClient->expects($this->once())
8686
->method('invokeModel')
8787
->with($this->callback(function ($arg) {
8888
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -99,7 +99,7 @@ public function testSetsToolOptionsIfToolsEnabled()
9999
$this->modelClient = new NovaModelClient($this->bedrockClient);
100100

101101
$options = [
102-
'tools' => ['Tool']
102+
'tools' => ['Tool'],
103103
];
104104

105105
$response = $this->modelClient->request($this->model, ['message' => 'test'], $options);
@@ -108,7 +108,7 @@ public function testSetsToolOptionsIfToolsEnabled()
108108

109109
public function testPassesTemperature()
110110
{
111-
$this->bedrockClient->expects(self::once())
111+
$this->bedrockClient->expects($this->once())
112112
->method('invokeModel')
113113
->with($this->callback(function ($arg) {
114114
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -126,7 +126,7 @@ public function testPassesTemperature()
126126
$this->modelClient = new NovaModelClient($this->bedrockClient);
127127

128128
$options = [
129-
'temperature' => 0.35
129+
'temperature' => 0.35,
130130
];
131131

132132
$response = $this->modelClient->request($this->model, ['message' => 'test'], $options);
@@ -135,7 +135,7 @@ public function testPassesTemperature()
135135

136136
public function testPassesMaxTokens()
137137
{
138-
$this->bedrockClient->expects(self::once())
138+
$this->bedrockClient->expects($this->once())
139139
->method('invokeModel')
140140
->with($this->callback(function ($arg) {
141141
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -153,7 +153,7 @@ public function testPassesMaxTokens()
153153
$this->modelClient = new NovaModelClient($this->bedrockClient);
154154

155155
$options = [
156-
'max_tokens' => 1000
156+
'max_tokens' => 1000,
157157
];
158158

159159
$response = $this->modelClient->request($this->model, ['message' => 'test'], $options);
@@ -162,7 +162,7 @@ public function testPassesMaxTokens()
162162

163163
public function testPassesBothTemperatureAndMaxTokens()
164164
{
165-
$this->bedrockClient->expects(self::once())
165+
$this->bedrockClient->expects($this->once())
166166
->method('invokeModel')
167167
->with($this->callback(function ($arg) {
168168
$this->assertInstanceOf(InvokeModelRequest::class, $arg);
@@ -181,7 +181,7 @@ public function testPassesBothTemperatureAndMaxTokens()
181181

182182
$options = [
183183
'max_tokens' => 1000,
184-
'temperature' => 0.35
184+
'temperature' => 0.35,
185185
];
186186

187187
$response = $this->modelClient->request($this->model, ['message' => 'test'], $options);

0 commit comments

Comments
 (0)