File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,16 @@ You can configure the method to be called by the LLM with the `#[AsTool]` attrib
177
177
``` php
178
178
use PhpLlm\LlmChain\ToolBox\Attribute\AsTool;
179
179
180
- #[AsTool(name: 'weather_current', description: 'get current weather for a location', method: 'current')]
181
- #[AsTool(name: 'weather_forecast', description: 'get weather forecast for a location', method: 'forecast')]
180
+ #[AsTool(
181
+ name: 'weather_current',
182
+ description: 'get current weather for a location',
183
+ method: 'current',
184
+ )]
185
+ #[AsTool(
186
+ name: 'weather_forecast',
187
+ description: 'get weather forecast for a location',
188
+ method: 'forecast',
189
+ )]
182
190
final readonly class OpenMeteo
183
191
{
184
192
public function current(float $latitude, float $longitude): array
You can’t perform that action at this time.
0 commit comments