1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! HTTP API handlers for the Bamboo agent server.
//!
//! This module contains all HTTP request handlers for the Bamboo API,
//! providing unified endpoint handling for all API types.
//!
//! # Handler Organization
//!
//! - **agent/** - Core agent API handlers (chat, execute, events, etc.)
//! - **command.rs** - Command execution endpoints
//! - **openai/** - OpenAI-compatible API endpoints
//! - **anthropic/** - Anthropic Claude API endpoints
//! - **gemini.rs** - Google Gemini API endpoints
//! - **settings/** - Configuration management
//! - **skill.rs** - Skill management endpoints
//! - **tools.rs** - Tool execution endpoints
//! - **workspace.rs** - Workspace management
//! - **copilot_auth/** - GitHub Copilot authentication
//!
//! # API Architecture
//!
//! Bamboo uses a two-step execution model for better reliability:
//!
//! 1. **Create Chat**: `POST /api/v1/chat` creates a session and adds messages
//! 2. **Execute**: `POST /api/v1/execute/{session_id}` starts agent execution
//! 3. **Subscribe**: `GET /api/v1/events/{session_id}` receives real-time events
// Agent API handlers (core functionality)
// Re-export core agent handlers at the top level for backward compatibility.
// Historically these lived at `crate::handlers::{chat, execute, ...}`.
pub use ;
// Multi-provider API handlers