Skip to content

Commit a5b0315

Browse files
authored
docs: better readability (#240)
![CleanShot 2025-03-07 at 08 24 24@2x](https://github.com/user-attachments/assets/e05fa09a-0121-43b9-83c8-290663cff190)
1 parent e8ce5d5 commit a5b0315

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,16 @@ You can configure the method to be called by the LLM with the `#[AsTool]` attrib
177177
```php
178178
use PhpLlm\LlmChain\ToolBox\Attribute\AsTool;
179179

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+
)]
182190
final readonly class OpenMeteo
183191
{
184192
public function current(float $latitude, float $longitude): array

0 commit comments

Comments
 (0)