Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: dataset segment not exist return agent response (#1329)
takatost2d1cb076c623
diff --git a/api/core/agent/agent/multi_dataset_router_agent.py b/api/core/agent/agent/multi_dataset_router_agent.pyindex 57f054f7f40..5636d91b51f 100644--- a/api/core/agent/agent/multi_dataset_router_agent.py+++ b/api/core/agent/agent/multi_dataset_router_agent.py@@ -79,6 +79,8 @@ class MultiDatasetRouterAgent(OpenAIFunctionsAgent):if isinstance(tool_inputs, dict) and 'query' in tool_inputs:tool_inputs['query'] = kwargs['input']agent_decision.tool_input = tool_inputs+ else:+ agent_decision.return_values['output'] = ''return agent_decisionexcept Exception as e:new_exception = self.model_instance.handle_exceptions(e)diff --git a/api/core/agent/agent/structed_multi_dataset_router_agent.py b/api/core/agent/agent/structed_multi_dataset_router_agent.pyindex 6b2889f45a8..0ba774a88fc 100644--- a/api/core/agent/agent/structed_multi_dataset_router_agent.py+++ b/api/core/agent/agent/structed_multi_dataset_router_agent.py@@ -107,6 +107,8 @@ class StructuredMultiDatasetRouterAgent(StructuredChatAgent):if isinstance(tool_inputs, dict) and 'query' in tool_inputs:tool_inputs['query'] = kwargs['input']agent_decision.tool_input = tool_inputs+ else:+ agent_decision.return_values['output'] = ''return agent_decisionexcept OutputParserException:return AgentFinish({"output": "I'm sorry, the answer of model is invalid, "