Skip to content

Unable to Pass Custom Component Result to Agent #5625

Answered by JeraldPeter
JeraldPeter asked this question in Q&A
Discussion options

You must be logged in to vote

@dosu

The solution also didnt work. Actually the problem lies on return type; In a tool chain method. The response will be accepted as "String" or "Object". In the current implemenation I am sending the data as json string which is unable to parse it using "Tool Chain" Implemention.

To over come this issue we need to implement "LCToolCompontent" from "langchain_utilities" and redirect the output as is to Agent.

Here is the new fix for "curlExecutorCompontent"

`# from langflow.field_typing import Data
from langflow.custom import Component
from langflow.io import MessageTextInput, Output
from langflow.schema import Data
from langflow.schema.dotdict import dotdict
from langflow.base.curl.par…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Comment options

You must be logged in to vote
5 replies
@dosubot
Comment options

@JeraldPeter
Comment options

@dosubot
Comment options

@JeraldPeter
Comment options

Answer selected by JeraldPeter
@dosubot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant