INNER CODE UNIT · Python

main

SpartanJ/eepp · projects/scripts/acp_mock_agent.py:15

def main():
    last_req_id = 1000
    
    for line in sys.stdin:
        try:
            req = json.loads(line)
            method = req.get("method")
            msg_id = req.get("id")

            if not method and "result" in req:
                # This is a response to one of our requests (like terminal/create)
                result = req.get("result")
                if "terminalId" in result:
                    term_id = result["terminalId"]
                    # Now link this terminal to our tool call
                    send_notification("session/update", {
                        "sessionId": "test-session",
                        "update": {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…