lib/bristow/agents/supervisor.rb in bristow-0.2.0 vs lib/bristow/agents/supervisor.rb in bristow-0.2.1

- old
+ new

@@ -44,12 +44,20 @@ def delegate_function Function.new( name: "delegate_to", description: "Delegate a task to a specialized agent", parameters: { - agent_name: String, - message: String + properties: { + agent_name: { + type: "string", + description: "The name of the agent to delegate to" + }, + message: { + type: "string", + description: "The instructions for the agent being delegated to" + } + } } ) do |agent_name:, message:| raise "No agency set for supervisor" unless agency if agent_name == name @@ -64,6 +72,6 @@ end end end end end -end \ No newline at end of file +end