|
24 | 24 | ]); |
25 | 25 |
|
26 | 26 | $tool = new SearchDocs($roster); |
27 | | - $result = $tool->handle(['queries' => 'authentication###testing']); |
| 27 | + $result = $tool->handle(['queries' => ['authentication', 'testing']]); |
28 | 28 |
|
29 | 29 | expect($result)->toBeInstanceOf(ToolResult::class); |
30 | 30 |
|
|
57 | 57 | ]); |
58 | 58 |
|
59 | 59 | $tool = new SearchDocs($roster); |
60 | | - $result = $tool->handle(['queries' => 'authentication']); |
| 60 | + $result = $tool->handle(['queries' => ['authentication']]); |
61 | 61 |
|
62 | 62 | expect($result)->toBeInstanceOf(ToolResult::class); |
63 | 63 |
|
|
77 | 77 | ]); |
78 | 78 |
|
79 | 79 | $tool = new SearchDocs($roster); |
80 | | - $result = $tool->handle(['queries' => 'test### ###*### ']); |
| 80 | + $result = $tool->handle(['queries' => ['test', ' ', '*', ' ']]); |
81 | 81 |
|
82 | 82 | expect($result)->toBeInstanceOf(ToolResult::class); |
83 | 83 |
|
|
106 | 106 | ]); |
107 | 107 |
|
108 | 108 | $tool = new SearchDocs($roster); |
109 | | - $result = $tool->handle(['queries' => 'test']); |
| 109 | + $result = $tool->handle(['queries' => ['test']]); |
110 | 110 |
|
111 | 111 | expect($result)->toBeInstanceOf(ToolResult::class); |
112 | 112 |
|
|
129 | 129 | ]); |
130 | 130 |
|
131 | 131 | $tool = new SearchDocs($roster); |
132 | | - $result = $tool->handle(['queries' => 'nonexistent']); |
| 132 | + $result = $tool->handle(['queries' => ['nonexistent']]); |
133 | 133 |
|
134 | 134 | expect($result)->toBeInstanceOf(ToolResult::class); |
135 | 135 |
|
|
149 | 149 | ]); |
150 | 150 |
|
151 | 151 | $tool = new SearchDocs($roster); |
152 | | - $result = $tool->handle(['queries' => 'test', 'token_limit' => 5000]); |
| 152 | + $result = $tool->handle(['queries' => ['test'], 'token_limit' => 5000]); |
153 | 153 |
|
154 | 154 | expect($result)->toBeInstanceOf(ToolResult::class); |
155 | 155 |
|
|
169 | 169 | ]); |
170 | 170 |
|
171 | 171 | $tool = new SearchDocs($roster); |
172 | | - $result = $tool->handle(['queries' => 'test', 'token_limit' => 2000000]); |
| 172 | + $result = $tool->handle(['queries' => ['test'], 'token_limit' => 2000000]); |
173 | 173 |
|
174 | 174 | expect($result)->toBeInstanceOf(ToolResult::class); |
175 | 175 |
|
|
0 commit comments