MCPcopy
hub / github.com/ax-llm/ax / AxCodeSession

Interface AxCodeSession

tools/axir/internal/axir/templates/java/javaAxCodeSession.java:5–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import java.util.Map;
4
5public interface AxCodeSession {
6 Object execute(String code, Map<String, Object> options);
7 default Object inspectGlobals(Map<String, Object> options) {
8 return "[runtime state inspection unavailable: runtime session does not implement inspectGlobals()]";
9 }
10 default Object snapshotGlobals(Map<String, Object> options) {
11 throw new RuntimeException("AxCodeSession.snapshotGlobals() is required to export AxAgent state");
12 }
13 default Object patchGlobals(Object snapshot, Map<String, Object> options) {
14 throw new RuntimeException("AxCodeSession.patchGlobals() is required to restore AxAgent state");
15 }
16 default Object exportState(Map<String, Object> options) { return snapshotGlobals(options); }
17 default Object restoreState(Object snapshot, Map<String, Object> options) { return patchGlobals(snapshot, options); }
18 Object close();
19}

Callers 14

selfTestMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
selfTestMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
selfTestMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95

Implementers 2

ScriptedCodeSessiontools/axir/internal/axir/templates/jav
ScriptedCodeSessionpackages/java/dev/axllm/ax/Conformance

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…