feat: remove handoffs

We will register them separately
This commit is contained in:
Shivam Mishra
2025-07-15 14:22:27 +05:30
parent 01ad380822
commit 5e799e7e6b
+2 -6
View File
@@ -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