changes
Browse filesFiles changed (2)
- agents.py+1-2
- format_response.py+1-1
422 unmodified lines423424425426427428429430431432433434435422 unmodified linesyield name, resultexcept Exception as e:yield agent_name, {"error": str(e)}# Execute code combiner after all agents completecode_list = [result['code'] for _, result in completed_results if 'code' in result]with dspy.settings.context(lm=dspy.LM(model="anthropic/claude-3-5-sonnet-latest", max_tokens=8000, temperature=1.0)):combiner_result = self.code_combiner_agent(agent_code_list=str(code_list), dataset=dict_['dataset'])yield 'code_combiner_agent', dict(combiner_result)# Agent to make a Chat history name from a queryclass chat_history_name_agent(dspy.Signature):422 unmodified lines423424425426427428429430431432433434422 unmodified linesyield name, resultexcept Exception as e:yield agent_name, {"error": str(e)}# Execute code combiner after all agents completecode_list = [result['code'] for _, result in completed_results if 'code' in result]with dspy.settings.context(lm=dspy.LM(model="anthropic/claude-3-5-sonnet-latest", max_tokens=8000, temperature=1.0)):combiner_result = self.code_combiner_agent(agent_code_list=str(code_list), dataset=dict_['dataset'])# print("combiner_result", str(combiner_result))yield 'code_combiner_agent', dict(combiner_result)# Agent to make a Chat history name from a queryclass chat_history_name_agent(dspy.Signature):
178 unmodified lines179180181182183184185178 unmodified lineslogger.error(f"Error in format_response_to_markdown: {str(e)}")return f"**Error**: {str(e)}"if not markdown:return "Please provide a valid query..."return '\n'.join(markdown)178 unmodified lines179180181182183184185178 unmodified lineslogger.error(f"Error in format_response_to_markdown: {str(e)}")return f"**Error**: {str(e)}"if not markdown or len(markdown) <= 1:return "Please provide a valid query..."return '\n'.join(markdown)
agents.py+1-2
format_response.py+1-1