Class AgentHandoffExample

java.lang.Object
ai.acolite.agentsdk.examples.AgentHandoffExample

public class AgentHandoffExample extends Object
AgentHandoffExample

Example demonstrating agent handoff for multi-agent conversations.

This example shows: - Creating specialized agents for different tasks - Configuring agent handoffs - Triggering handoffs based on conversation context - Tracking agent switches during execution

The example implements a simple customer service scenario: - A triage agent that directs users to specialists - A billing agent that handles payment inquiries - A support agent that handles technical issues

Usage: OPENAI_API_KEY=sk-... java ai.acolite.agentsdk.examples.AgentHandoffExample

  • Constructor Details

    • AgentHandoffExample

      public AgentHandoffExample()
  • Method Details

    • main

      public static void main(String[] args)