skill-http 0.3.0

HTTP streaming server for Skill - REST API and web interface support
docs.rs failed to build skill-http-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

Skill HTTP Server - High-performance REST API with streaming

This crate provides a complete HTTP REST API for the Skill Engine.

Features

  • Skills Management: List, install, uninstall skills
  • Tool Execution: Execute skill tools with arguments
  • Search: Semantic search across skills and tools
  • Configuration: Runtime configuration management
  • Health Checks: Monitor server and component health

API Endpoints

Skills

  • GET /api/skills - List all installed skills
  • POST /api/skills - Install a new skill
  • GET /api/skills/{name} - Get skill details
  • DELETE /api/skills/{name} - Uninstall a skill

Execution

  • POST /api/execute - Execute a tool
  • GET /api/executions - List execution history
  • GET /api/executions/{id} - Get execution details

Search

  • POST /api/search - Semantic search for skills/tools
  • GET /api/search/config - Get search configuration
  • PUT /api/search/config - Update search configuration

Configuration

  • GET /api/config - Get application configuration
  • PUT /api/config - Update application configuration

Health

  • GET /api/health - Health check
  • GET /api/version - Version information

Example

use skill_http::{HttpServer, HttpServerConfig};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let config = HttpServerConfig {
        host: "127.0.0.1".to_string(),
        port: 3000,
        enable_cors: true,
        enable_tracing: true,
    };

    let server = HttpServer::with_config(config)?;
    server.run().await
}