- ChatService: add tools() method to expose registered tool definitions - RoomService: populate AiRequest.tools from chat_service.tools(), enable tools with max_tool_depth=3 (was always None) - ToolHandler: add pub new() constructor so git_tools modules can register handlers with full schema metadata - Add description + JSON schema params to all 16 git tools: git_log, git_show, git_search_commits, git_commit_info, git_graph, git_reflog, git_branch_list, git_branch_info, git_branches_merged, git_branch_diff, git_diff, git_diff_stats, git_blame, git_file_content, git_tree_ls, git_file_history, git_tag_list, git_tag_info
37 lines
1.1 KiB
Rust
37 lines
1.1 KiB
Rust
pub mod chat;
|
|
pub mod client;
|
|
pub mod compact;
|
|
pub mod embed;
|
|
pub mod error;
|
|
pub mod perception;
|
|
pub mod react;
|
|
pub mod task;
|
|
pub mod tokent;
|
|
pub mod tool;
|
|
pub use task::TaskService;
|
|
pub use tokent::{TokenUsage, resolve_usage};
|
|
pub use perception::{PerceptionService, SkillContext, SkillEntry, ToolCallEvent};
|
|
|
|
use async_openai::Client;
|
|
use async_openai::config::OpenAIConfig;
|
|
pub use chat::{
|
|
AiContextSenderType, AiRequest, AiStreamChunk, ChatService, Mention, RoomMessageContext,
|
|
StreamCallback,
|
|
};
|
|
pub use client::{AiCallResponse, AiClientConfig, call_with_params, call_with_retry};
|
|
pub use compact::{CompactConfig, CompactLevel, CompactService, CompactSummary, MessageSummary};
|
|
pub use embed::{EmbedClient, EmbedService, QdrantClient, SearchResult};
|
|
pub use error::{AgentError, Result};
|
|
pub use react::{
|
|
Hook, HookAction, NoopHook, ReactAgent, ReactConfig, ReactStep, ToolCallAction, TracingHook,
|
|
};
|
|
pub use tool::{
|
|
ToolCall, ToolCallResult, ToolContext, ToolDefinition, ToolError, ToolExecutor, ToolHandler, ToolParam,
|
|
ToolRegistry, ToolResult, ToolSchema,
|
|
};
|
|
|
|
#[derive(Clone)]
|
|
pub struct AgentService {
|
|
pub client: Client<OpenAIConfig>,
|
|
}
|