Skip to content

Commit ab0f877

Browse files
committed
ref
1 parent 0965572 commit ab0f877

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

examples/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"probots-io/pinecone-php": "^1.0",
1818
"psr/http-factory-implementation": "*",
1919
"symfony/ai-agent": "@dev",
20+
"symfony/ai-chat": "@dev",
2021
"symfony/ai-platform": "@dev",
2122
"symfony/ai-store": "@dev",
2223
"symfony/cache": "^7.3|^8.0",

src/chat/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"keywords": [
77
"ai",
88
"llm",
9-
"agent"
9+
"agent",
10+
"chat"
1011
],
1112
"authors": [
1213
{

src/chat/src/Bridge/Local/InMemoryStore.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\AI\Chat\Bridge\Local;
1413

15-
use MessageStoreInterface;
14+
use Symfony\AI\Chat\MessageStoreInterface;
1615
use Symfony\AI\Platform\Message\MessageBag;
1716

1817
/**

src/chat/src/Bridge/Symfony/SessionStore.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525
private SessionInterface $session;
2626

2727
public function __construct(
28-
RequestStack $requestStack,
28+
RequestStack $requestStack,
2929
private string $sessionKey = 'messages',
30-
)
31-
{
30+
) {
3231
if (!class_exists(RequestStack::class)) {
3332
throw new RuntimeException('For using the SessionStore as message store, the symfony/http-foundation package is required. Try running "composer require symfony/http-foundation".');
3433
}

src/chat/src/Chat.php

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

1212
namespace Symfony\AI\Chat;
1313

14-
use ChatInterface;
15-
use MessageStoreInterface;
14+
use Symfony\AI\Agent\AgentInterface;
1615
use Symfony\AI\Platform\Message\AssistantMessage;
1716
use Symfony\AI\Platform\Message\Message;
1817
use Symfony\AI\Platform\Message\MessageBag;

src/chat/tests/ChatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use PHPUnit\Framework\MockObject\MockObject;
1515
use PHPUnit\Framework\TestCase;
1616
use Symfony\AI\Agent\AgentInterface;
17-
use Symfony\AI\Agent\Chat;
17+
use Symfony\AI\Chat\Chat;
1818
use Symfony\AI\Chat\MessageStoreInterface;
1919
use Symfony\AI\Platform\Message\AssistantMessage;
2020
use Symfony\AI\Platform\Message\Message;

0 commit comments

Comments
 (0)