Crate oxyde

Crate oxyde 

Source
Expand description

§Oxyde

Oxyde is a Rust-based SDK for integrating AI-powered NPCs into games. It provides real-time inference capabilities and supports multiple game engines including Unity, Unreal Engine, and WebAssembly for browser-based games.

§Core Features

  • AI-driven NPCs that understand player intent and adapt behavior
  • Cross-platform engine support (Unity, Unreal, WASM)
  • Real-time inference layer with async support
  • Developer-facing tools for testing and configuration

§Example

use oxyde::agent::Agent;
use oxyde::config::AgentConfig;

#[tokio::main]
async fn main() {
    // Load agent configuration
    let config = AgentConfig::from_file("npc_config.json").unwrap();
     
    // Create and initialize agent
    let mut agent = Agent::new(config);
     
    // Start the agent
    agent.start().await.unwrap();
}

Re-exports§

pub use agent::Agent;
pub use config::AgentConfig;
pub use inference::InferenceEngine;
pub use memory::MemorySystem;

Modules§

agent
Agent module for the Oxyde SDK
audio
config
Configuration for Oxyde agents and systems
inference
Inference engine for the Oxyde SDK
memory
Memory system for Oxyde agents
oxyde_game
Game-specific agent utilities for the Oxyde SDK

Enums§

OxydeError
Main error type for the Oxyde SDK

Constants§

VERSION
Current version of the Oxyde SDK

Functions§

init
Initialize the Oxyde SDK

Type Aliases§

AgentContext
Agent context (environment state)
Result
Type alias for Results that use OxydeError