inline tool calling

This commit is contained in:
Dhanji Prasanna
2025-09-09 10:02:16 +10:00
parent a69054cb2b
commit 0c92a7c6b4
2 changed files with 378 additions and 85 deletions

View File

@@ -133,7 +133,7 @@ impl CodeExecutor {
}
/// Execute code in the specified language
async fn execute_code(&self, language: &str, code: &str) -> Result<ExecutionResult> {
pub async fn execute_code(&self, language: &str, code: &str) -> Result<ExecutionResult> {
match language.to_lowercase().as_str() {
"python" | "py" => self.execute_python(code).await,
"bash" | "shell" | "sh" => self.execute_bash(code).await,