Skip to content

Python: New Feature: Let on_intermediate_message callback function modify function args and response #13265

@julienlambert706

Description

@julienlambert706

Currently the on_intermediate_message callback function can only see the args and response of the called plugins.

It would be great to be able to modify the args sent to the plugin, and modify its response.
As local plugins often use an llm, it would be really usefull for saving token usages returned by the plugin.

Many thanks


Metadata

Metadata

Assignees

No one assigned

    Labels

    pythonPull requests for the Python Semantic Kerneltriage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions