Skip to content

Commit 655244e

Browse files
committed
bug #256 [Examples] Fix gemini server-tools example to actually use AgentProcessor (DrauzJu)
This PR was merged into the main branch. Discussion ---------- [Examples] Fix gemini server-tools example to actually use AgentProcessor | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | | License | MIT Fix the Gemini server-tools example to make use of the created `AgentProcessor` in the `Agent`. Commits ------- e91ed57 Fix gemini server-tools example to use AgentProcessor
2 parents 9265cbc + e91ed57 commit 655244e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/gemini/server-tools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
$toolbox = new Toolbox([new Clock()], logger: logger());
2929
$processor = new AgentProcessor($toolbox);
30-
$agent = new Agent($platform, $llm, logger: logger());
30+
$agent = new Agent($platform, $llm, [$processor], [$processor], logger());
3131

3232
$messages = new MessageBag(
3333
Message::ofUser(

0 commit comments

Comments
 (0)