Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
Merge branch 'worktree-temporal-delegation-perplexity-fix'
trohitg78d51eb0c59f
diff --cc server/services/temporal/agent_workflow.pyindex 3bcd990d,d3c3b9d4..92abdbb8--- a/server/services/temporal/agent_workflow.py+++ b/server/services/temporal/agent_workflow.py@@@ -379,13 -379,22 +381,23 @@@ class AgentWorkflow)try:- tool_result = await workflow.execute_activity(- tool_activity_name,- args=[tool_payload],- activity_id=f"tool-{tool_info['tool_node_id']}-{iteration + 1}",- start_to_close_timeout=TOOL_STEP_TIMEOUT,- heartbeat_timeout=TOOL_HEARTBEAT_TIMEOUT,- )+ if is_delegation and tool_info["node_type"] in AGENT_WORKFLOW_TYPES:+ child_context = {**tool_payload, "parent_node_id": agent_node_id}+ tool_result = await workflow.execute_child_workflow(+ "AgentWorkflow",+ args=[child_context],+ id=f"{workflow.info().workflow_id}-delegate-{tool_info['tool_node_id']}-{iteration}",+ execution_timeout=timedelta(hours=1),+ run_timeout=timedelta(hours=1),+ )+ else:+ tool_result = await workflow.execute_activity(+ tool_activity_name,+ args=[tool_payload],++ activity_id=f"tool-{tool_info['tool_node_id']}-{iteration + 1}",+ start_to_close_timeout=TOOL_STEP_TIMEOUT,+ heartbeat_timeout=TOOL_HEARTBEAT_TIMEOUT,+ )tool_content = _serialise_tool_result(tool_result)await self._emit_phase(agent_node_id,