Skip to main content

netget/scripting/
mod.rs

1//! Script-based response handling system
2//!
3//! This module provides support for Python and JavaScript scripts to handle
4//! protocol responses deterministically, with fallback to LLM for complex cases.
5
6pub mod environment;
7pub mod event_handler;
8pub mod executor;
9pub mod highlight;
10pub mod manager;
11pub mod process_io;
12pub mod resident;
13pub mod types;
14
15// Re-export commonly used types
16pub use environment::ScriptingEnvironment;
17pub use event_handler::{
18    EventHandler, EventHandlerConfig, EventHandlerType, EventPattern, DEFAULT_MANUAL_TIMEOUT_SECS,
19};
20pub use executor::{
21    execute_script, execute_script_async, execute_script_with_timeout_async,
22    DEFAULT_SCRIPT_TIMEOUT, SCRIPT_TIMEOUT_SECS,
23};
24pub use manager::ScriptManager;
25pub use resident::{
26    resident_available, resident_language_supported, ResidentScope, ResidentScript,
27    ResidentScriptManager,
28};
29pub use types::{
30    ConnectionContext, ScriptConfig, ScriptInput, ScriptLanguage, ScriptResponse, ScriptSource,
31    ServerContext,
32};