Fix tests
This commit is contained in:
@@ -436,6 +436,7 @@ impl From<&ResolvedLocation> for AgentLocation {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum ToolSource {
|
||||
/// Built-in tool
|
||||
BuiltIn,
|
||||
|
||||
@@ -2268,10 +2268,10 @@ async fn test_tool_updates_to_completion(cx: &mut TestAppContext) {
|
||||
acp::ToolCall::new("1", "Thinking")
|
||||
.kind(acp::ToolKind::Think)
|
||||
.raw_input(json!({}))
|
||||
.meta(acp::Meta::from_iter([(
|
||||
"tool_name".into(),
|
||||
"thinking".into()
|
||||
)]))
|
||||
.meta(acp::Meta::from_iter([
|
||||
("tool_name".into(), "thinking".into()),
|
||||
("tool_source".into(), "built_in".into())
|
||||
]))
|
||||
);
|
||||
let update = expect_tool_call_update_fields(&mut events).await;
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user