Skip to content

Commit 1fc6641

Browse files
committed
-
1 parent 5f23535 commit 1fc6641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/openai/platform-as-tool.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
use Symfony\AI\Agent\Agent;
1313
use Symfony\AI\Agent\Toolbox\AgentProcessor;
14-
use Symfony\AI\Agent\Toolbox\Tool\Platform;
14+
use Symfony\AI\Agent\Toolbox\Tool\Platform as PlatformTool;
1515
use Symfony\AI\Agent\Toolbox\Toolbox;
1616
use Symfony\AI\Agent\Toolbox\ToolFactory\ChainFactory;
1717
use Symfony\AI\Agent\Toolbox\ToolFactory\MemoryToolFactory;
@@ -34,7 +34,7 @@
3434
);
3535

3636
// Wrap ElevenLabs platform as a tool
37-
$speechToText = new Platform($elevenLabsPlatform, 'scribe_v1');
37+
$speechToText = new PlatformTool($elevenLabsPlatform, 'scribe_v1');
3838

3939
// Use MemoryToolFactory to register the tool with metadata
4040
$memoryFactory = new MemoryToolFactory();

0 commit comments

Comments
 (0)