Package ai.narrativetrace.agent
Class AgentRuntime
java.lang.Object
ai.narrativetrace.agent.AgentRuntime
Runtime support for the Java agent providing the shared NarrativeContext and ValueRenderer.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidenterMethod(String className, String methodName) static voidenterMethod(String className, String methodName, String[] paramNames, Object[] paramValues, boolean[] redacted, String narratedTemplate) static voidexitMethodWithException(Throwable exception) static voidexitMethodWithException(Throwable exception, String errorContext) static voidexitMethodWithReturn(Object returnValue) static ai.narrativetrace.core.context.NarrativeContextstatic StringresolveErrorContext(Throwable exception, String[] templates, String[] exceptionDescriptors, String[] paramNames, Object[] paramValues, boolean[] redacted) static voidsetContext(ai.narrativetrace.core.context.NarrativeContext ctx)
-
Method Details
-
setContext
public static void setContext(ai.narrativetrace.core.context.NarrativeContext ctx) -
getContext
public static ai.narrativetrace.core.context.NarrativeContext getContext() -
enterMethod
-
enterMethod
-
exitMethodWithReturn
-
exitMethodWithException
-
exitMethodWithException
-
resolveErrorContext
-