28 Commits

Author SHA1 Message Date
Christopher Hertel
0dc65a355f Add chroma recipe to demo app 2025-12-29 21:04:14 +01:00
Oskar Stark
5f2c5af6aa Exclude demo/mate from PHP CS Fixer
The demo/mate directory contains user-facing configuration files
that should not be auto-formatted, similar to src/mate/resources/mate.
2025-12-29 00:06:30 +01:00
Christopher Hertel
d7eaf1498a Fix Mate resource exclusion on php-cs-fixer config 2025-12-22 21:07:46 +01:00
Christopher Hertel
36775c8116 minor #1247 [Mate] Consolidate .mate/ and mate/ directories into single mate/ directory (wachterjohannes)
This PR was squashed before being merged into the main branch.

Discussion
----------

[Mate] Consolidate .mate/ and mate/ directories into single mate/ directory

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Docs?         | no
| Issues        | none
| License       | MIT

Merged the separate .mate/ (configuration) and mate/ (user code) directories into a unified mate/ structure with the following layout:

mate/
├── config.php          # User service configuration
├── .env                # Environment variables
├── .gitignore          # Git ignore (.env.local only)
├── bridges.php         # Bridge configuration
└── Capabilities/       # User-defined MCP tools/resources
    └── .gitkeep

Commits
-------

a14abfce [Mate] Consolidate .mate/ and mate/ directories into single mate/ directory
2025-12-22 20:13:49 +01:00
Johannes Wachter
a14abfce89 [Mate] Consolidate .mate/ and mate/ directories into single mate/ directory 2025-12-22 20:10:58 +01:00
Oskar Stark
80678bf08e [CS] Exclude demo/config/reference.php from PHP CS Fixer 2025-12-10 21:21:34 +01:00
Grégoire Pineau
0ce836ee34 Update PHP-CS-Fixer to support PHP 8.5 2025-12-02 14:17:16 +01:00
Grégoire Pineau
2705302b78 [Meta] Allow to use PHP 8.5 with php-cs-fixer 2025-11-27 18:07:52 +01:00
Oskar Stark
2f064975ec Add ordered_class_elements rule to PHP-CS-Fixer config
The @Symfony ruleset doesn't enforce method ordering by default.
Added explicit configuration to ensure public methods come before
private methods, along with proper ordering for all class elements.
2025-08-07 23:17:44 +02:00
Oskar Stark
b0a4306254 Include .phpstan/ folder in PHP-CS-Fixer configuration 2025-08-01 15:02:51 +02:00
Oskar Stark
2f97be945d Remove void return type from tests 2025-07-30 10:54:53 +02:00
Christopher Hertel
679e964532 Use $this for test assertion calls 2025-07-25 09:27:57 +02:00
Christopher Hertel
c83ccdc25f docs: fix example scripts for docker, class names and env var names 2025-07-08 09:03:43 +02:00
Christopher Hertel
4cce670227 fix: test location and codestyle 2025-07-04 21:29:02 +02:00
Christopher Hertel
03dcf053b1 feat: integrate demo app
* demo-repo/restructure: (31 commits)
  refactor: restructure into demo folder
  chore: update to llm-chain 0.22 (#27)
  refactor: more error handling in vidoe example
  chore: symfony 7.3 update
  fix: pin chroma db version and clean up (#26)
  feat: add demo of GPT vision capabilities based on video stream (#22)
  chore: dependecy update (#23)
  feat: extend wikipedia system prompt by tools (#21)
  chore: update to lib v0.19 (#20)
  refactor: optimize audio chat ui (#19)
  feat: audio example (#18)
  chore: updating dependencies (#17)
  chore: composer update incl twig cve patch (#16)
  chore: llm chain update with system_prompt support (#15)
  chore: install bundle 0.12 (#14)
  chore: update to llm-chain 0.11.0 (#13)
  chore: library update (#12)
  refactor: follow up on example structure to have them cleaner and more separated (#11)
  fix: typed animation only on xhr responses (#10)
  refactor: moving classes to a more component like structure (#9)
  ...
2025-06-23 20:22:02 +02:00
Christopher Hertel
571513db57 refactor: restructure into demo folder 2025-06-22 22:06:58 +02:00
Christopher Hertel
c26add7bbb chore: move example runner into examples folder including composer setup for examples 2025-06-13 12:34:10 +02:00
Christopher Hertel
7b7dc8ceaf refactor: rework LLM Chain into Symfony AI 2025-06-07 15:28:50 +02:00
Christopher Hertel
5a64eaa527 refactor: Major Library Refactoring (#326)
- [x] Introducing global model class to be more agnostic with explicit
`Capability` class
- [x] Introducing Contract with Normalizers to solve Base Contract
(OpenAI) vs. Model/Platform specific differences
- [x] Reshape into three major components `Chain`, `Platform` and
`Store`
- [x] Adoption of Symfony-style for CS Fixer and `Interface` &
`Exception` suffix

Replaces #301 and #305 

# Breaking Changes
* Sorting into three main sub compontents `Platform`, `Chain` and
`Store`
* High level implementation also went into those components, see
`ChainInterface` as example
  * `Model` namespace went into `Platform`
  * Bridges got sorted into `Platform` or `Store`
  * Tool metadata moved from `Chain` to `Platform\Contract` 
* Implementation of `JsonSerializable` was dropped in favor of Symfony's
serializer/normalizer
* Removal of `LanguageModel` and `EmbeddingsModel` interface in favor of
base `Model` and `Capabilities`
* Renaming of `StructuredResponse` to `ObjectResponse` 
* Slimming down the `supports()` method of `ModelClient` and
`ResponseConverter`
* Changing signature of `ModelClient` to already accepting the
normalized request payload
* Renaming interfaces to always contain the `Interface` suffix
* Renaming exceptions to always contain the `Exception` suffix
2025-06-01 14:57:13 +02:00
Christopher Hertel
1736953be9 chore: removing irrelevant or default cs config 2025-05-30 11:08:38 +02:00
Fabien Potencier
ab555a044a Remove declare() calls 2025-05-29 21:32:27 +02:00
Tobias Nyholm
da16b7cd4d add readme and license headers 2025-05-29 15:40:43 +02:00
Tobias Nyholm
d937e789c7 Move to new file structure 2025-05-29 12:54:29 +02:00
Christopher Hertel
5bfd6bf757 feat: MCP SDK with server implementation 2025-03-07 21:18:34 +01:00
Oskar Stark
9ef0740b3d style: enable heredoc_indentation with start_plus_one rule (#234)
* [PHP-CS-Fixer] Enable `heredoc_indentation` rule

* -
2025-03-06 18:28:57 +01:00
Christopher Hertel
68822da326 feat: initial setup of demo app 2024-12-10 01:00:31 +01:00
Christopher Hertel
2687a4355d ci: execute php cs fixer with parallel processes (#147) 2024-11-23 11:41:02 +01:00
Christopher Hertel
4804cf0fc7 Kicking off LlmChain 2024-01-21 22:18:11 +01:00