We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f23535 commit 1fc6641Copy full SHA for 1fc6641
examples/openai/platform-as-tool.php
@@ -11,7 +11,7 @@
11
12
use Symfony\AI\Agent\Agent;
13
use Symfony\AI\Agent\Toolbox\AgentProcessor;
14
-use Symfony\AI\Agent\Toolbox\Tool\Platform;
+use Symfony\AI\Agent\Toolbox\Tool\Platform as PlatformTool;
15
use Symfony\AI\Agent\Toolbox\Toolbox;
16
use Symfony\AI\Agent\Toolbox\ToolFactory\ChainFactory;
17
use Symfony\AI\Agent\Toolbox\ToolFactory\MemoryToolFactory;
@@ -34,7 +34,7 @@
34
);
35
36
// Wrap ElevenLabs platform as a tool
37
-$speechToText = new Platform($elevenLabsPlatform, 'scribe_v1');
+$speechToText = new PlatformTool($elevenLabsPlatform, 'scribe_v1');
38
39
// Use MemoryToolFactory to register the tool with metadata
40
$memoryFactory = new MemoryToolFactory();
0 commit comments