Skip to content

Commit

Permalink
fix for function output
Browse files Browse the repository at this point in the history
  • Loading branch information
acedward committed Nov 13, 2024
1 parent 2d5f673 commit 9382fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shinkai-libs/shinkai-tools-primitives/src/tools/js_toolkit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl JSToolkit {
vector: meta.embeddings,
}),
result,
output: definition.result["type"].as_str().unwrap_or("object").to_string(),
output: definition.result.to_string(),
}
}

Expand All @@ -82,7 +82,7 @@ impl JSToolkit {
println!("definition: {:?}", definition.name);
println!("definition.result: {:?}", definition.result);
ToolOutputArg {
json: definition.result["type"].as_str().unwrap_or("object").to_string(),
json: definition.result.to_string(),
}
}

Expand Down

0 comments on commit 9382fdf

Please sign in to comment.