Skip to content

v0.11.0: Symfony bundle

Latest

Choose a tag to compare

@skybleak333 skybleak333 released this 12 Nov 05:43

A Symfony bundle for the client.

Register Fedoseev\Hindsight\Symfony\HindsightBundle and configure it under hindsight:

# config/packages/hindsight.yaml
hindsight:
    url: '%env(HINDSIGHT_URL)%'
    api_key: '%env(default::HINDSIGHT_API_KEY)%'

Fedoseev\Hindsight\Hindsight is then autowired, for example into HindsightMemory and the memory tools for Symfony AI agents, and its warnings go to the app's logger. timeout, headers and http_client (a PSR-18 client service) are optional.

Tested with Symfony 7.3+ and 8.x components. Changelog