kreneskyp / ix

Autonomous GPT-4 agent platform
MIT License
1.01k stars 121 forks source link

Runnable tools #380

Closed kreneskyp closed 10 months ago

kreneskyp commented 10 months ago

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 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

image

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.]