Skip to content

Commit 621f764

Browse files
committed
feature #1072 [Chat] Move InMemory store from Bridge to Chat root (OskarStark)
This PR was squashed before being merged into the main branch. Discussion ---------- [Chat] Move InMemory store from Bridge to Chat root | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | no | Issues | -- | License | MIT Commits ------- 74b9e9e [Chat] Move InMemory store from Bridge to Chat root
2 parents 9c4309e + 74b9e9e commit 621f764

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

docs/components/chat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ To initiate a chat, you need to instantiate the ``Symfony\AI\Chat\Chat`` along
1818
with a ``Symfony\AI\Agent\AgentInterface`` and a ``Symfony\AI\Chat\MessageStoreInterface``::
1919

2020
use Symfony\AI\Agent\Agent;
21-
use Symfony\AI\Chat\Bridge\Memory\Store as InMemoryStore;
2221
use Symfony\AI\Chat\Chat;
22+
use Symfony\AI\Chat\InMemory\Store as InMemoryStore;
2323
use Symfony\AI\Platform\Bridge\OpenAi\Gpt;
2424
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
2525
use Symfony\AI\Platform\Message\Message;

examples/chat/persistent-chat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
*/
1111

1212
use Symfony\AI\Agent\Agent;
13-
use Symfony\AI\Chat\Bridge\Memory\Store as InMemoryStore;
1413
use Symfony\AI\Chat\Chat;
14+
use Symfony\AI\Chat\InMemory\Store as InMemoryStore;
1515
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1616
use Symfony\AI\Platform\Message\Message;
1717
use Symfony\AI\Platform\Message\MessageBag;

examples/commands/message-stores.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
use Symfony\AI\Chat\Bridge\Doctrine\DoctrineDbalMessageStore;
1818
use Symfony\AI\Chat\Bridge\HttpFoundation\SessionStore;
1919
use Symfony\AI\Chat\Bridge\Meilisearch\MessageStore as MeilisearchMessageStore;
20-
use Symfony\AI\Chat\Bridge\Memory\Store as InMemoryStore;
2120
use Symfony\AI\Chat\Bridge\MongoDb\MessageStore as MongoDbMessageStore;
2221
use Symfony\AI\Chat\Bridge\Pogocache\MessageStore as PogocacheMessageStore;
2322
use Symfony\AI\Chat\Bridge\Redis\MessageStore as RedisMessageStore;
2423
use Symfony\AI\Chat\Bridge\SurrealDb\MessageStore as SurrealDbMessageStore;
2524
use Symfony\AI\Chat\Command\DropStoreCommand;
2625
use Symfony\AI\Chat\Command\SetupStoreCommand;
26+
use Symfony\AI\Chat\InMemory\Store as InMemoryStore;
2727
use Symfony\AI\Chat\MessageNormalizer;
2828
use Symfony\Component\Cache\Adapter\ArrayAdapter;
2929
use Symfony\Component\Clock\MonotonicClock;

src/ai-bundle/src/AiBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
use Symfony\AI\Chat\Bridge\Doctrine\DoctrineDbalMessageStore;
4242
use Symfony\AI\Chat\Bridge\HttpFoundation\SessionStore;
4343
use Symfony\AI\Chat\Bridge\Meilisearch\MessageStore as MeilisearchMessageStore;
44-
use Symfony\AI\Chat\Bridge\Memory\Store as InMemoryMessageStore;
4544
use Symfony\AI\Chat\Bridge\MongoDb\MessageStore as MongoDbMessageStore;
4645
use Symfony\AI\Chat\Bridge\Pogocache\MessageStore as PogocacheMessageStore;
4746
use Symfony\AI\Chat\Bridge\Redis\MessageStore as RedisMessageStore;
4847
use Symfony\AI\Chat\Bridge\SurrealDb\MessageStore as SurrealDbMessageStore;
4948
use Symfony\AI\Chat\Chat;
5049
use Symfony\AI\Chat\ChatInterface;
50+
use Symfony\AI\Chat\InMemory\Store as InMemoryMessageStore;
5151
use Symfony\AI\Chat\ManagedStoreInterface as ManagedMessageStoreInterface;
5252
use Symfony\AI\Chat\MessageStoreInterface;
5353
use Symfony\AI\Platform\Bridge\Albert\PlatformFactory as AlbertPlatformFactory;

src/ai-bundle/tests/Profiler/DataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
use Symfony\AI\AiBundle\Profiler\TraceableChat;
1818
use Symfony\AI\AiBundle\Profiler\TraceableMessageStore;
1919
use Symfony\AI\AiBundle\Profiler\TraceablePlatform;
20-
use Symfony\AI\Chat\Bridge\Memory\Store as InMemoryStore;
2120
use Symfony\AI\Chat\Chat;
21+
use Symfony\AI\Chat\InMemory\Store as InMemoryStore;
2222
use Symfony\AI\Platform\Message\Content\Text;
2323
use Symfony\AI\Platform\Message\Message;
2424
use Symfony\AI\Platform\Message\MessageBag;

src/ai-bundle/tests/Profiler/TraceableChatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\AI\Agent\AgentInterface;
1616
use Symfony\AI\AiBundle\Profiler\TraceableChat;
17-
use Symfony\AI\Chat\Bridge\Memory\Store as InMemoryStore;
1817
use Symfony\AI\Chat\Chat;
18+
use Symfony\AI\Chat\InMemory\Store as InMemoryStore;
1919
use Symfony\AI\Platform\Message\Message;
2020
use Symfony\AI\Platform\Message\MessageBag;
2121
use Symfony\AI\Platform\Message\UserMessage;

src/ai-bundle/tests/Profiler/TraceableMessageStoreTest.php

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

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\AI\AiBundle\Profiler\TraceableMessageStore;
16-
use Symfony\AI\Chat\Bridge\Memory\Store as InMemoryStore;
16+
use Symfony\AI\Chat\InMemory\Store as InMemoryStore;
1717
use Symfony\AI\Platform\Message\Message;
1818
use Symfony\AI\Platform\Message\MessageBag;
1919
use Symfony\Component\Clock\MonotonicClock;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\AI\Chat\Bridge\Memory;
12+
namespace Symfony\AI\Chat\InMemory;
1313

1414
use Symfony\AI\Chat\ManagedStoreInterface;
1515
use Symfony\AI\Chat\MessageStoreInterface;

src/chat/tests/ChatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use PHPUnit\Framework\MockObject\MockObject;
1515
use PHPUnit\Framework\TestCase;
1616
use Symfony\AI\Agent\AgentInterface;
17-
use Symfony\AI\Chat\Bridge\Memory\Store as InMemoryStore;
1817
use Symfony\AI\Chat\Chat;
18+
use Symfony\AI\Chat\InMemory\Store as InMemoryStore;
1919
use Symfony\AI\Platform\Message\AssistantMessage;
2020
use Symfony\AI\Platform\Message\Message;
2121
use Symfony\AI\Platform\Message\MessageBag;

src/chat/tests/Bridge/Memory/StoreTest.php renamed to src/chat/tests/InMemory/StoreTest.php

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

12-
namespace Symfony\AI\Chat\Tests\Bridge\Memory;
12+
namespace Symfony\AI\Chat\Tests\InMemory;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\AI\Chat\Bridge\Memory\Store;
15+
use Symfony\AI\Chat\InMemory\Store;
1616
use Symfony\AI\Platform\Message\Content\Text;
1717
use Symfony\AI\Platform\Message\Message;
1818
use Symfony\AI\Platform\Message\MessageBag;

0 commit comments

Comments
 (0)