mirror of
https://github.com/symfony/ai.git
synced 2026-03-23 23:42:18 +01:00
97246afb16475ebbd5da991beab9dcdbb384b506
This PR was merged into the main branch.
Discussion
----------
Fix outdated code references across documentation
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| Docs? | yes
| Issues |
| License | MIT
Fixes outdated code references across 12 documentation files, covering:
- **Renamed classes**: `CachedPlatform`→`CachePlatform`, `OllamaApiCatalog`→`ModelCatalog`, `Indexer`→`DocumentIndexer`/`SourceIndexer`, `Store\Vector`→`Platform\Vector\Vector`
- **Wrong namespaces**: `TokenUsage`, `MemoryInputProcessor`, `ConfiguredSourceIndexer`, `SourceIndexer`, `DocumentIndexer`, `StructuredOutputSerializer`
- **Incorrect method calls**: `asText()`→`getContent()`, private property access→getter methods (`getMetadata()`, `getId()`, `getScore()`)
- **Outdated API signatures**: `StoreInterface::query()` now requires `QueryInterface`, `ChromaDb\Store` constructor updated, Ollama `PlatformFactory` simplified
- **Unused imports**: `Gpt`, `Embeddings`, VertexAi `Model`
- **Wrong file/link references**: `_model-listing.php`→`_model.php`, Crawler Tool link→`firecrawl-crawl.php`
- **Non-existent interface**: `MessageBagInterface`→`MessageBag`
Commits
-------
17eaefb7 Fix outdated code references across documentation
feature #1682 [Mate] Add Codex wrappers and refresh agent instructions on discover (wachterjohannes)
Symfony AI is a set of components that integrate AI capabilities into PHP applications.
Components & Bundles
Symfony AI consists of several lower and higher level components and the respective integration bundles:
- Components
- Agent: Framework for building AI agents that can interact with users and perform tasks.
- Chat: A unified interface to send messages to agents and store long-term context.
- Mate: MCP development server enabling AI assistants to interact with PHP applications through standardized tools.
- Platform: A unified interface to various AI platforms like OpenAI, Anthropic, Azure, Gemini, VertexAI, and more.
- Store: Data storage abstraction with indexing and retrieval for AI applications.
- Bundles
- AI Bundle: Symfony integration for AI Platform, Store and Agent components.
- MCP Bundle: Symfony integration for official MCP SDK, allowing them to act as MCP servers or clients.
Examples & Demo
To get started with Symfony AI, you can either check out the examples to see how to use the components in smaller snippets, or you can run the demo application to see the components work together in a full Symfony web application.
Resources
Sponsor
Help Symfony by sponsoring its development!
Contributing
Thank you for considering contributing to Symfony AI! You can find the contribution guide here.
Languages
PHP
97.4%
Twig
1.9%
CSS
0.4%
JavaScript
0.3%