Skip to content

Commit 0fdccfa

Browse files
authored
Merge pull request #259 from code0-tech/feat/#258
Changes to FunctionDefinition and RuntimeFunctionDefinition
2 parents e77a127 + 7ccf800 commit 0fdccfa

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

proto/shared/shared.function.proto

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ message FunctionDefinition {
2727
string display_icon = 13;
2828
// Identifier of the service that defines this definition
2929
string definition_source = 14;
30+
string runtime_definition_name = 15;
3031
}
3132

3233
// Definition of a parameter used for execution
3334
message ParameterDefinition {
3435
string runtime_name = 1;
3536
optional shared.Value default_value = 2;
36-
repeated Translation name = 3;
37-
repeated Translation description = 4;
38-
repeated Translation documentation = 5;
37+
optional bool optional = 3;
38+
optional bool hidden = 4;
39+
repeated Translation name = 5;
40+
repeated Translation description = 6;
41+
repeated Translation documentation = 7;
42+
string runtime_definition_name = 8;
3943
}

proto/shared/shared.runtime_function.proto

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ message RuntimeFunctionDefinition {
3333
message RuntimeParameterDefinition {
3434
string runtime_name = 1;
3535
optional shared.Value default_value = 2;
36-
repeated Translation name = 3;
37-
repeated Translation description = 4;
38-
repeated Translation documentation = 5;
36+
optional bool optional = 3;
37+
optional bool hidden = 4;
38+
repeated Translation name = 5;
39+
repeated Translation description = 6;
40+
repeated Translation documentation = 7;
3941
}

0 commit comments

Comments
 (0)