Runnable components that provide an input_type may now be used as agent tools.
The runnable will be wrapped in a StructuredTool. The input type is used to generate args for the runnable. If there is no type, or a generic Input type (i.e. input type may be just Input without defining fields) then the LLM can't generate args for the function call.
This works best with chain references because they use the chain's input as the schema. Chains that are connected directly in-line won't always have a well defined input_type.
Ingestion Agent updated to use a ingestion chain instead of IngestionTool
Changes
[List out the changes you've made in this pull request. Be as specific as possible.]
How Tested
[Explain how you tested this pull request. Include any relevant steps or scripts.]
TODOs
[List any outstanding TODOs or known issues that still need to be addressed.]
Description
Runnable components that provide an
input_type
may now be used as agent tools.The runnable will be wrapped in a
StructuredTool
. The input type is used to generate args for the runnable. If there is no type, or a genericInput
type (i.e. input type may be justInput
without defining fields) then the LLM can't generate args for the function call.This works best with chain references because they use the chain's input as the schema. Chains that are connected directly in-line won't always have a well defined input_type.
Ingestion Agent updated to use a ingestion chain instead of
IngestionTool
Changes
[List out the changes you've made in this pull request. Be as specific as possible.]
How Tested
[Explain how you tested this pull request. Include any relevant steps or scripts.]
TODOs
[List any outstanding TODOs or known issues that still need to be addressed.]