Neuro-API Documentation
Welcome to the Neuro-API documentation. This library provides a comprehensive Python interface for integrating games with the Neuro AI system through WebSocket communication.
API Reference:
Overview
The Neuro-API library enables real-time communication between games and the Neuro AI system. It provides:
Command System: Structured command definitions and validation
Client Interface: Abstract and concrete client implementations
Event System: Event-driven component architecture
Server Infrastructure: WebSocket servers for hosting Neuro services
Trio Integration: Async support using the Trio framework
Quick Start
For game developers wanting to integrate with Neuro:
Use
TrioNeuroAPIComponentfor event-driven integrationRegister actions that Neuro can perform in your game
Handle context updates and action requests
Connect to the Neuro WebSocket service
For developers building Neuro-compatible servers:
Extend
AbstractTrioNeuroServerImplement AI decision-making logic
Handle multiple game client connections
Deploy with SSL/TLS for production
Module Overview
Core Modules
command: Command definitions, validation, and protocol messages
api: Abstract base classes for Neuro API communication
client: WebSocket client abstractions and utilities
Integration Modules
event: Event-driven component system for game integration
trio_ws: Trio-based WebSocket implementations
server: WebSocket server infrastructure and implementations