Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ use napi_ohos::threadsafe_function::ThreadsafeFunctionCallMode;

pub fn call_calender(args: String) -> Result<String, String>{
let result = Ok(args);
match JS_THREADSAFE_FUNCTION.write().get("call_calender") {
match JS_THREADSAFE_FUNCTION.write().get("call_calendar") {
None => {
return Err("The Arkts has not register the functions".to_string());
}
Expand Down
2 changes: 2 additions & 0 deletions src/crates/core/src/agentic/tools/product_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

use crate::agentic::agents::{get_agent_registry, AgentToolPolicyOverrides};
use crate::agentic::tools::framework::{Tool, ToolExposure, ToolResult, ToolUseContext};
use crate::agentic::tools::implementations::calendar_tool::CalendarTool;
use crate::agentic::tools::implementations::*;
use crate::agentic::tools::registry::{
get_global_tool_registry, ProductToolDecoratorRef, ToolRef, ToolRegistry,
Expand Down Expand Up @@ -133,6 +134,7 @@ fn materialize_tool(tool_name: &str) -> Arc<dyn Tool> {
"ControlHub" => Arc::new(ControlHubTool::new()),
"ComputerUse" => Arc::new(ComputerUseTool::new()),
"Playbook" => Arc::new(PlaybookTool::new()),
"Calendar" => Arc::new(CalendarTool::new()),
_ => panic!("unknown product tool provider plan entry: {tool_name}"),
}
}
Expand Down
1 change: 1 addition & 0 deletions src/crates/tool-packs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const PRODUCT_TOOL_PROVIDER_GROUP_PLAN: &[ToolProviderGroupPlan] = &[
"GetToolSpec",
"GetFileDiff",
"Log",
"Calendar",
],
},
ToolProviderGroupPlan {
Expand Down
Loading