Skip to main content

skilllite_agent/types/
mod.rs

1//! Shared types for the agent module.
2//!
3//! Organized by domain:
4//! - `string_utils`: UTF-8 safe string helpers
5//! - `config`: Agent configuration
6//! - `chat`: OpenAI-compatible chat types
7//! - `feedback`: Execution feedback (EVO-1)
8//! - `event_sink`: Event sink trait and implementations
9//! - `task`: Task planning types
10//! - `env_config`: Environment config helpers
11
12mod chat;
13mod config;
14mod env_config;
15mod event_sink;
16mod feedback;
17mod string_utils;
18mod task;
19
20// Re-export all public types for backward compatibility.
21pub use chat::{
22    parse_claude_tool_calls, AgentResult, ChatMessage, FunctionCall, FunctionDef, ToolCall,
23    ToolDefinition, ToolFormat, ToolResult,
24};
25pub use config::AgentConfig;
26pub use env_config::{
27    get_chunk_size, get_compact_planning, get_compaction_keep_recent, get_compaction_threshold,
28    get_extract_top_k, get_head_chunks, get_long_text_strategy, get_map_model,
29    get_max_output_chars, get_max_tokens, get_memory_flush_enabled, get_memory_flush_threshold,
30    get_output_dir, get_summarize_threshold, get_tail_chunks, get_tool_result_max_chars,
31    get_tool_result_recovery_max_chars, get_user_input_max_chars, LongTextStrategy,
32};
33pub use event_sink::{
34    ClarificationRequest, ClarificationResponse, EventSink, RunModeEventSink, SilentEventSink,
35    TerminalEventSink,
36};
37pub use feedback::{
38    classify_user_feedback, ExecutionFeedback, FeedbackSignal, SkillAction, ToolExecDetail,
39};
40pub use string_utils::{chunk_str, safe_slice_from, safe_truncate};
41pub use task::{PlanningRule, SourceEntry, SourceRegistry, Task};