Skip to main content

Crate sokuto_server

Crate sokuto_server 

Source
Expand description

§sokuto-server

Axum をベースとした TypeSafe AI Jev 互換 HTTP API サーバーを提供するクレート。

§概要

  • POST /v1/systemone 推論エンドポイントの実装。
  • OpenAPI 3.1 仕様書のコンパイル時自動導出と Swagger UI (GET /swagger-ui) の統合。
  • 運用監視 (GET /health, GET /ready, GET /metrics)。
  • Tokio 非同期ワーカースレッドのストールを防止するブロッキング分離。

Re-exports§

pub use error::ErrorResponse;
pub use error::ServerError;
pub use guardrails::GuardrailConfig;
pub use guardrails::GuardrailPipeline;
pub use openapi::export_openapi_json;
pub use openapi::generate_openapi_spec;
pub use schema::dag::DagRequest;
pub use schema::dag::DagResponse;
pub use service::InferenceOutput;
pub use service::InferenceService;
pub use state::AppState;
pub use sokuto_core as core;
pub use sokuto_runtime as runtime;

Modules§

error
エラーハンドリングモジュール
guardrails
前処理ガードレール統括パイプラインモジュール
handlers
エンドポイントハンドラ集約モジュール
metrics
Prometheus 監視メトリクスモジュール
openapi
OpenAPI 3.1 仕様統合モジュール
schema
API スキーマおよび DTO モジュール
service
共通サービス層モジュール
state
アプリケーション共有状態管理モジュール

Functions§

create_router
Jev HTTP API サーバーのルーターを構築する。
run_server
指定されたアドレスで HTTP サーバーを起動する。
version
サーバーのバージョン情報を取得する。