Fix
CI / check (push) Successful in 3m13s
CI / test (push) Successful in 3m53s
CI / clippy (push) Failing after 3m15s
CI / deploy (push) Has been skipped

This commit is contained in:
2026-04-25 18:59:24 +02:00
parent fe148fda4e
commit b6a5618f78
7 changed files with 70 additions and 103 deletions
+8 -6
View File
@@ -1,5 +1,6 @@
// nazarick-core/src/llm/traits.rs
use std::str::FromStr;
use crate::types::Result;
use crate::llm::types::{LlmRequest, LlmResponse};
@@ -13,13 +14,14 @@ pub enum SkillFormat {
None,
}
impl SkillFormat {
/// Parsed aus config.toml String
pub fn from_str(s: &str) -> Self {
impl FromStr for SkillFormat {
type Err = ();
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
match s {
"tool_use" => Self::ToolUse,
"none" => Self::None,
_ => Self::Xml, // default
"tool_use" => Ok(Self::ToolUse),
"none" => Ok(Self::None),
_ => Ok(Self::Xml),
}
}
}