Skip to content

[AI Bundle] Fault tolerant toolbox missing ChainFactory service #775

@chr-hertel

Description

@chr-hertel

With the latest bundle update in #770 or #771 the decoration for fault tolerant toolbox is broken

The service "ai.fault_tolerant_toolbox.default.inner" has a dependency on a non-existent service "ai.toolbox.default.chain_factory".

Image

Config used:

ai:
    platform:
        openai:
            api_key: '%env(OPENAI_API_KEY)%'
    agent:
        default:
            model:
                class: 'Symfony\AI\Platform\Bridge\OpenAi\Gpt'
                name: 'gpt-4o-mini'

services:
    _defaults:
        autowire: true
        autoconfigure: true

    Symfony\AI\Agent\Toolbox\Tool\Clock: ~
    # Symfony\AI\Agent\Toolbox\Tool\OpenMeteo: ~
    Symfony\AI\Agent\Toolbox\Tool\SerpApi:
        $apiKey: '%env(SERP_API_KEY)%'
    Symfony\AI\Agent\Toolbox\Tool\Wikipedia:
        $locale: 'de'

But cannot reproduce with Demo ... yay 😑

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI BundleIssues & PRs about the AI integration bundleBugSomething isn't workingStatus: Needs Review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions