From 5e799e7e6bd9460ad1532a9412cbda98d645eac5 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 14 Jul 2025 23:22:43 +0530 Subject: [PATCH] feat: remove handoffs We will register them separately --- enterprise/app/models/captain/assistant.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/enterprise/app/models/captain/assistant.rb b/enterprise/app/models/captain/assistant.rb index deb5bb4e6..33027ad59 100644 --- a/enterprise/app/models/captain/assistant.rb +++ b/enterprise/app/models/captain/assistant.rb @@ -69,15 +69,11 @@ class Captain::Assistant < ApplicationRecord } end - def agent(user) - # Get enabled scenario agents as handoff agents - handoff_agents = scenarios.enabled.map { |scenario| scenario.agent(user) } - - # Create the main assistant agent with scenario agents as handoffs + def agent(_user) Agents::Agent.new( name: name, instructions: agent_instructions, - handoff_agents: handoff_agents + model: 'gpt-4.1-mini' ) end