Class AgentRuntime

java.lang.Object
ai.narrativetrace.agent.AgentRuntime

public final class AgentRuntime extends Object
Runtime support for the Java agent providing the shared NarrativeContext and ValueRenderer.
  • Method Details

    • setContext

      public static void setContext(ai.narrativetrace.core.context.NarrativeContext ctx)
    • getContext

      public static ai.narrativetrace.core.context.NarrativeContext getContext()
    • enterMethod

      public static void enterMethod(String className, String methodName)
    • enterMethod

      public static void enterMethod(String className, String methodName, String[] paramNames, Object[] paramValues, boolean[] redacted, String narratedTemplate)
    • exitMethodWithReturn

      public static void exitMethodWithReturn(Object returnValue)
    • exitMethodWithException

      public static void exitMethodWithException(Throwable exception)
    • exitMethodWithException

      public static void exitMethodWithException(Throwable exception, String errorContext)
    • resolveErrorContext

      public static String resolveErrorContext(Throwable exception, String[] templates, String[] exceptionDescriptors, String[] paramNames, Object[] paramValues, boolean[] redacted)