Skip to content

Python: .NET:Python: [Bug]: Tool response serialization failure. #4888

@chetantoshniwal

Description

@chetantoshniwal

Description

Carried over from ICM -

The intended flow is:
The LLM calls Function A.
Function A returns a boolean value (true / false).
Based on this return value, the LLM should decide whether to invoke Function B. However, cx observed that Function B is not triggered even when Function A returns true and the condition for invoking the sub-agent function is clearly satisfied. The LLM appears unable to use the runtime result of Function A to conditionally trigger the sub-agent’s tool invocation.

Like below, when requesting a connector restart, it doesn't invoke the restart subagent tool; instead, it checks the connector status.

Image
Image

Code Sample

Error Messages / Stack Traces

Package Versions

unknonw

Python Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETbugSomething isn't workingneed infoAdditional info/context is needed to proceedpython

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions