From 6240fb9425279178b748a520361adb0cfeb7538e Mon Sep 17 00:00:00 2001 From: Guillaume Sachet Date: Wed, 4 Feb 2026 10:12:23 +0100 Subject: [PATCH] feat(proto): add GetModuleSelectInputRequest and GetModuleSelectInputResponse messages for module input schema retrieval chore(proto): update buf.build/protovalidate dependency to new commit and digest feat(proto): add GetModuleSelectInput RPC for module input retrieval --- .../module/v1/information.proto | 28 +++++++++++++++++++ .../module/v1/module_service.proto | 2 ++ proto/buf.lock | 4 +-- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/proto/agentic_mesh_protocol/module/v1/information.proto b/proto/agentic_mesh_protocol/module/v1/information.proto index 61a0937..88ac1c4 100644 --- a/proto/agentic_mesh_protocol/module/v1/information.proto +++ b/proto/agentic_mesh_protocol/module/v1/information.proto @@ -36,6 +36,21 @@ message GetModuleInputRequest { bool llm_format = 2; } +// GetModuleSelectSchemaRequest +// +// Fields: +// +// - module_id: Database ID of the Module to get select schema +// - llm_format: Define if the select schema should be in LLM format or raw pydantic format +message GetModuleSelectInputRequest { + // module_id: Database ID of the Module to get select input schema + string module_id = 1 [ + (buf.validate.field).string.min_len = 1, + (buf.validate.field).string.prefix = "modules:", + (buf.validate.field).required = true + ]; +} + // GetModuleOutputRequest // // Fields: @@ -100,6 +115,19 @@ message GetModuleInputResponse { google.protobuf.Struct input_schema = 2 [(buf.validate.field).required = true]; } +// GetModuleInputSelectResponse +// +// Returns: +// +// - success: Flag to indicate if the input schema request was successful +// - input_schema: Input schema of the Module +message GetModuleSelectInputResponse { + // success: Flag to indicate if the input schema request was successful + bool success = 1; + // input_schema: Input schema of the Module + google.protobuf.Struct select_input_schema = 2 [(buf.validate.field).required = true]; +} + // GetModuleOutputResponse // // Returns: diff --git a/proto/agentic_mesh_protocol/module/v1/module_service.proto b/proto/agentic_mesh_protocol/module/v1/module_service.proto index e73474b..9b28dcf 100644 --- a/proto/agentic_mesh_protocol/module/v1/module_service.proto +++ b/proto/agentic_mesh_protocol/module/v1/module_service.proto @@ -39,6 +39,8 @@ service ModuleService { rpc GetModuleJobs(GetModuleJobsRequest) returns (GetModuleJobsResponse); // GetModuleInput rpc GetModuleInput(GetModuleInputRequest) returns (GetModuleInputResponse); + // GetModuleSelectInput + rpc GetModuleSelectInput(GetModuleSelectInputRequest) returns (GetModuleSelectInputResponse); // GetModuleOutput rpc GetModuleOutput(GetModuleOutputRequest) returns (GetModuleOutputResponse); // GetModuleSetup diff --git a/proto/buf.lock b/proto/buf.lock index bb66131..069cd88 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -2,5 +2,5 @@ version: v2 deps: - name: buf.build/bufbuild/protovalidate - commit: 52f32327d4b045a79293a6ad4e7e1236 - digest: b5:cbabc98d4b7b7b0447c9b15f68eeb8a7a44ef8516cb386ac5f66e7fd4062cd6723ed3f452ad8c384b851f79e33d26e7f8a94e2b807282b3def1cd966c7eace97 + commit: 2a1774d888024a9b93ce7eb4b59f6a83 + digest: b5:6b7f9bc919b65e5b79d7b726ffc03d6f815a412d6b792970fa6f065cae162107bd0a9d47272c8ab1a2c9514e87b13d3fbf71df614374d62d2183afb64be2d30a