Skip to content

Commit fbbc4eb

Browse files
committed
feature #948 [Agent][OpenMeteo] Add symfony/ai-openmeteo-tool (OskarStark)
This PR was squashed before being merged into the main branch. Discussion ---------- [Agent][OpenMeteo] Add `symfony/ai-openmeteo-tool` | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | yes | Issues | Follows #944 | License | MIT ### Needs - [ ] A new repo `symfony/ai-openmeteo-tool` - [ ] Add Packagist configuration - [ ] Create a new label `OpenMeteo` Commits ------- e178d1d [Agent][OpenMeteo] Add `symfony/ai-openmeteo-tool`
2 parents a2399ee + e178d1d commit fbbc4eb

File tree

17 files changed

+396
-7
lines changed

17 files changed

+396
-7
lines changed

.github/workflows/integration-tests.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,15 @@ jobs:
9595
- name: Install root dependencies
9696
uses: ramsey/composer-install@v3
9797

98+
- name: Build root packages
99+
run: php .github/build-packages.php
100+
98101
- name: Install demo dependencies
99102
uses: ramsey/composer-install@v3
100103
with:
101104
composer-options: "--no-scripts"
102105
working-directory: demo
103106

104-
- name: Link demo
105-
working-directory: demo
106-
run: ../link
107-
108107
- run: composer run-script auto-scripts --no-interaction
109108
working-directory: demo
110109

demo/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"php-http/discovery": "^1.20",
1515
"runtime/frankenphp-symfony": "^0.2.0",
1616
"symfony/ai-bundle": "@dev",
17+
"symfony/ai-openmeteo-tool": "@dev",
1718
"symfony/asset": "~7.3.0",
1819
"symfony/asset-mapper": "~7.3.0",
1920
"symfony/clock": "~7.3.0",

demo/config/packages/ai.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ services:
106106
autoconfigure: true
107107

108108
# Symfony\AI\Agent\Toolbox\Tool\Clock: ~
109-
# Symfony\AI\Agent\Toolbox\Tool\OpenMeteo: ~
109+
# Symfony\AI\Agent\Bridge\OpenMeteo\OpenMeteo: ~
110110
# Symfony\AI\Agent\Toolbox\Tool\SerpApi:
111111
# $apiKey: '%env(SERP_API_KEY)%'
112112
Symfony\AI\Agent\Toolbox\Tool\Wikipedia: ~

docs/bundles/ai-bundle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ To use existing tools, you can register them as a service:
781781
autoconfigure: true
782782
783783
Symfony\AI\Agent\Toolbox\Tool\Clock: ~
784-
Symfony\AI\Agent\Toolbox\Tool\OpenMeteo: ~
784+
Symfony\AI\Agent\Bridge\OpenMeteo\OpenMeteo: ~
785785
Symfony\AI\Agent\Toolbox\Tool\SerpApi:
786786
$apiKey: '%env(SERP_API_KEY)%'
787787
Symfony\AI\Agent\Toolbox\Tool\SimilaritySearch: ~

examples/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"symfony/ai-agent": "@dev",
2121
"symfony/ai-brave-tool": "@dev",
2222
"symfony/ai-chat": "@dev",
23+
"symfony/ai-openmeteo-tool": "@dev",
2324
"symfony/ai-platform": "@dev",
2425
"symfony/ai-store": "@dev",
2526
"symfony/ai-tavily-tool": "@dev",

examples/toolbox/weather-event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
*/
1111

1212
use Symfony\AI\Agent\Agent;
13+
use Symfony\AI\Agent\Bridge\OpenMeteo\OpenMeteo;
1314
use Symfony\AI\Agent\Toolbox\AgentProcessor;
1415
use Symfony\AI\Agent\Toolbox\Event\ToolCallsExecuted;
15-
use Symfony\AI\Agent\Toolbox\Tool\OpenMeteo;
1616
use Symfony\AI\Agent\Toolbox\Toolbox;
1717
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1818
use Symfony\AI\Platform\Message\Message;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/Tests export-ignore
2+
/phpunit.xml.dist export-ignore
3+
/.git* export-ignore
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Close Pull Request
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: superbrothers/close-pull-request@v3
12+
with:
13+
comment: |
14+
Thanks for your Pull Request! We love contributions.
15+
16+
However, you should instead open your PR on the main repository:
17+
https://github.com/symfony/ai
18+
19+
This repository is what we call a "subtree split": a read-only subset of that main repository.
20+
We're looking forward to your PR there!
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
vendor/
2+
composer.lock
3+
phpunit.xml
4+
.phpunit.result.cache
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CHANGELOG
2+
=========
3+
4+
0.1
5+
---
6+
7+
* Add the bridge

0 commit comments

Comments
 (0)