refactor: rename llm worker crate to engine
This commit is contained in:
@@ -4,7 +4,7 @@ use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_trait::async_trait;
|
||||
use llm_worker::tool::{Tool, ToolDefinition, ToolError, ToolMeta, ToolOutput};
|
||||
use llm_engine::tool::{Tool, ToolDefinition, ToolError, ToolMeta, ToolOutput};
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::scoped_fs::ScopedFs;
|
||||
@@ -33,7 +33,7 @@ impl Tool for WriteTool {
|
||||
async fn execute(
|
||||
&self,
|
||||
input_json: &str,
|
||||
ctx: llm_worker::tool::ToolExecutionContext,
|
||||
ctx: llm_engine::tool::ToolExecutionContext,
|
||||
) -> Result<ToolOutput, ToolError> {
|
||||
let params: WriteParams = serde_json::from_str(input_json)
|
||||
.map_err(|e| ToolError::InvalidArgument(format!("invalid Write input: {e}")))?;
|
||||
@@ -237,7 +237,7 @@ mod tests {
|
||||
#[tokio::test]
|
||||
async fn write_then_edit_same_file_same_batch_uses_call_order() {
|
||||
use crate::edit::edit_tool;
|
||||
use llm_worker::tool::ToolExecutionContext;
|
||||
use llm_engine::tool::ToolExecutionContext;
|
||||
|
||||
let (dir, fs, tracker) = setup();
|
||||
let file = dir.path().join("ordered.txt");
|
||||
@@ -272,7 +272,7 @@ mod tests {
|
||||
#[tokio::test]
|
||||
async fn failed_same_file_mutation_releases_guard_for_followup() {
|
||||
use crate::edit::edit_tool;
|
||||
use llm_worker::tool::ToolExecutionContext;
|
||||
use llm_engine::tool::ToolExecutionContext;
|
||||
|
||||
let (dir, fs, tracker) = setup();
|
||||
let file = dir.path().join("release.txt");
|
||||
|
||||
Reference in New Issue
Block a user