Class RunContextExample

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

public class RunContextExample extends Object
RunContextExample demonstrates the three primary use cases of RunContext: 1. User Context Storage - Passing application data to tools 2. Usage Tracking - Accumulating token costs across API calls 3. Tool Approval Management - Controlling which tools can execute

This example shows the basic patterns without requiring a real agent or API calls.

  • Constructor Details

    • RunContextExample

      public RunContextExample()
  • Method Details

    • main

      public static void main(String[] args)