Skip to content

feat(rig-1197): handle llama.cpp tool call (#1408)#1409

Open
inqode-lars wants to merge 1 commit into0xPlaygrounds:mainfrom
inqode-lars:main
Open

feat(rig-1197): handle llama.cpp tool call (#1408)#1409
inqode-lars wants to merge 1 commit into0xPlaygrounds:mainfrom
inqode-lars:main

Conversation

@inqode-lars
Copy link

@inqode-lars inqode-lars commented Feb 19, 2026

handle llama.cpp tool call

closes #1408

Signed-off-by: Lars Weber <lars@inqode.solutions>
Copy link
Collaborator

@joshua-mo-143 joshua-mo-143 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments. Rest looks ok to me

Comment on lines +413 to +424
fn deserialize_arguments<'de, D>(deserializer: D) -> Result<Value, D::Error>
where
D: Deserializer<'de>,
{
let value = Value::deserialize(deserializer)?;

match value {
Value::String(s) => serde_json::from_str(&s).map_err(serde::de::Error::custom),
other => Ok(other),
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add docstring to explain why this is required (it's not immediately clear to anyone who reads this in the future if they don't refer back to this PR)

pub name: String,
#[serde(with = "json_utils::stringified_json")]
#[serde(
serialize_with = "json_utils::stringified_json::serialize",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? It seems to have been perfectly fine before to my knowledge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug/feat: tool call from llama.cpp fails

2 participants