Skip to content

Commit 6dc4402

Browse files
committed
-
1 parent 6421e4e commit 6dc4402

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/openai/platform-as-tool.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
$agent = new Agent($platform, 'gpt-4o-mini', [$processor], [$processor], logger: logger());
4848

4949
// Ask a question that could benefit from advanced analysis
50-
$messages = new MessageBag(Message::ofUser('Analyze the philosophical implications of artificial consciousness and whether current AI systems exhibit any form of genuine understanding. Provide a detailed analysis.'));
51-
$result = $agent->call($messages);
50+
$result = $agent->call(new MessageBag(Message::ofUser(
51+
'Analyze the philosophical implications of artificial consciousness and whether current AI systems exhibit any form of genuine understanding. Provide a detailed analysis.'
52+
)));
5253

5354
echo $result->getContent().\PHP_EOL;

0 commit comments

Comments
 (0)