Crate kotoba_handler

Crate kotoba_handler 

Source
Expand description

Kotoba Unified Handler

このクレートはKotobaエコシステム全体の統合的なhandlerを提供します。 既存のkotoba-jsonnetとkotoba-kotobasの機能を統合し、 サーバー、CLI、WASM実行を統一的に扱います。

Re-exports§

pub use error::HandlerError;
pub use error::Result;
pub use handler::UnifiedHandler;
pub use executor::HandlerExecutor;
pub use types::*;

Modules§

error
Handler error types
executor
Handler executor for different execution environments
handler
Unified Handler implementation
integration
Integration with existing Kotoba crates
runtime
Runtime management for different execution environments
types
Common types for handler operations

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.

Traits§

KeyValueStore
A generic key-value store trait.

Functions§

execute_simple_handler_with_storage
最もシンプルなhandler実行関数 (ジェネリックバージョン) 使用例: execute_simple_handler_with_storage(&storage, content, context).await