File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ pub struct ToolCallResult {
5050// ============================================================================
5151
5252/// Optional per-session overrides.
53- #[ derive( Clone ) ]
53+ #[ derive( Clone , Default ) ]
5454pub struct SessionOptions {
5555 /// Override the default model. Format: `"provider/model"` (e.g., `"openai/gpt-4o"`).
5656 pub model : Option < String > ,
@@ -208,23 +208,6 @@ impl SessionOptions {
208208 }
209209}
210210
211- impl Default for SessionOptions {
212- fn default ( ) -> Self {
213- Self {
214- model : None ,
215- agent_dirs : Vec :: new ( ) ,
216- queue_config : None ,
217- security_provider : None ,
218- context_providers : Vec :: new ( ) ,
219- confirmation_manager : None ,
220- permission_checker : None ,
221- planning_enabled : false ,
222- goal_tracking : false ,
223- skill_registry : None ,
224- }
225- }
226- }
227-
228211// ============================================================================
229212// Agent
230213// ============================================================================
Original file line number Diff line number Diff line change @@ -247,6 +247,7 @@ pub trait MemoryStore: Send + Sync {
247247// ============================================================================
248248
249249/// Sort memory items by relevance score (highest first)
250+ #[ allow( dead_code) ]
250251fn sort_by_relevance ( items : & mut [ MemoryItem ] ) {
251252 let now = Utc :: now ( ) ;
252253 items. sort_by ( |a, b| {
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ pub const CONTEXT_SUMMARY_PREFIX: &str =
4848// ============================================================================
4949
5050/// User template for session title generation. Placeholder: `{conversation}`
51+ #[ allow( dead_code) ]
5152pub const TITLE_GENERATE : & str = include_str ! ( "../prompts/title_generate.md" ) ;
5253
5354// ============================================================================
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ impl Tool for WebSearchTool {
153153 if let Some ( url) = proxy_url {
154154 // Parse proxy URL into ProxyConfig
155155 if let Some ( config) = parse_proxy_url ( url) {
156- let pool = ProxyPool :: with_proxies ( vec ! [ config] ) ;
156+ let _pool = ProxyPool :: with_proxies ( vec ! [ config] ) ;
157157 // TODO: a3s-search API changed, need to update
158158 // search.set_proxy_pool(pool);
159159 tracing:: warn!( "Proxy configuration is temporarily disabled due to API changes" ) ;
You can’t perform that action at this time.
0 commit comments