objectiveai_cli/command/tools/
install.rs1use objectiveai_sdk::cli::command::tools::install::{Request, Response};
5
6use crate::context::Context;
7use crate::error::Error;
8
9pub async fn execute(_ctx: &Context, _request: Request) -> Result<Response, Error> {
10 Ok(Response {
11 instructions: include_str!(
12 "../../../assets/tools/install/filesystem/INSTRUCTIONS.md"
13 )
14 .to_string(),
15 })
16}
17
18pub mod request_schema {
19 use objectiveai_sdk::cli::command::tools::install as sdk;
20 use objectiveai_sdk::cli::command::tools::install::request_schema::{Request, Response};
21
22 use crate::context::Context;
23 use crate::error::Error;
24
25 pub async fn execute(_ctx: &Context, _request: Request) -> Result<Response, Error> {
26 Ok(objectiveai_sdk::cli::command::ResponseSchema(schemars::schema_for!(sdk::Request)))
27 }
28}
29
30pub mod response_schema {
31 use objectiveai_sdk::cli::command::tools::install as sdk;
32 use objectiveai_sdk::cli::command::tools::install::response_schema::{Request, Response};
33
34 use crate::context::Context;
35 use crate::error::Error;
36
37 pub async fn execute(_ctx: &Context, _request: Request) -> Result<Response, Error> {
38 Ok(objectiveai_sdk::cli::command::ResponseSchema(schemars::schema_for!(sdk::Response)))
39 }
40}