Class RealWorldRunContextExample

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

public class RealWorldRunContextExample extends Object
RealWorldRunContextExample demonstrates how RunContext would be used in a production e-commerce application with: - Custom context containing user auth, database connections, and services - Tools that access the context to perform operations - Safety mechanisms using tool approval for sensitive operations - Usage tracking for cost monitoring

This example simulates a customer service agent that can: - Look up orders (safe - auto-approved) - Process refunds (sensitive - requires approval) - Cancel orders (sensitive - requires approval)

  • Constructor Details

    • RealWorldRunContextExample

      public RealWorldRunContextExample()
  • Method Details

    • main

      public static void main(String[] args)