nv-morpheus / Morpheus

Morpheus SDK
Apache License 2.0
310 stars 119 forks source link

[FEA]: Allow passing `metadata` to `LangChainAgentNode._run_single` #1706

Closed dagardner-nv closed 1 month ago

dagardner-nv commented 1 month ago

Is this a new feature, an improvement, or a change to existing functionality?

Improvement

How would you describe the priority of this feature request

Medium

Please provide a clear description of problem this feature solves

This would allow subclasses of LangChainAgentNode to set custom metadata for langchain agent tools.

Describe your ideal solution

Add metadata as an argument to LangChainAgentNode._run_single

Additional context

Currently LangChainAgentNode._run_single takes arbitrary keyword arguments, however it attempts to unpack them in a way that shouldn't be performed for metadata

Code of Conduct