Replies: 1 comment 3 replies
-
|
Hello @vij-06! I'm Dosu, a bot here to help you solve bugs, answer questions, and become a contributor. I'm ready to assist you while we wait for a human maintainer. How can I help you today? To ensure that the main agent in LangFlow does not alter or degrade the correct responses from the tool agents, you can use the Here is a relevant code snippet from the class PassMessageComponent(Component):
display_name = "Pass"
description = "Forwards the input message, unchanged."
name = "Pass"
icon = "arrow-right"
inputs = [
MessageInput(
name="input_message",
display_name="Input Message",
info="The message to be passed forward.",
required=True,
),
MessageInput(
name="ignored_message",
display_name="Ignored Message",
info="A second message to be ignored. Used as a workaround for continuity.",
advanced=True,
),
]
outputs = [
Output(display_name="Output Message", name="output_message", method="pass_message"),
]
def pass_message(self) -> Message:
self.status = self.input_message
return self.input_messageThis component can be used to maintain the integrity of the responses from the tool agents by passing them through without modification. Additionally, the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
In our LangFlow setup, we have multiple agents, each handling specific tasks. These individual agents are added as tool components to a main agent. The main agent is responsible for routing queries to the appropriate agent based on the user input.
The issue we're facing is that the responses generated by the individual agents are correct and accurate. However, when these responses are passed back to the main agent, the final output is often incorrect, inconsistent, or changes when the same question is asked multiple times.
We’re looking for suggestions or best practices on how to ensure the main agent doesn’t alter or degrade the correct responses from the tool agents. Has anyone encountered this behavior or found a workaround to preserve the original response?
Any help or guidance would be greatly appreciated!
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions