You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c275be2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,15 +70,15 @@ If you're on an Intel Mac, you may need to:
70
70
- With Cline open, look below the prompt box and click **Manage MCP Servers**.
71
71
- In the dialog, click **Settings**. The MCP Servers page opens.
72
72
- Click **Configure MCP Servers**. This will open the `cline_mcp_settings.json` file in your editor.
73
-
- In the JSON settings file, add a configuration block for MDK MCP server within the `mcpServers` section, and save the file. The supported schema versions include 26.6 (default), 26.3, 25.9, 25.6, 24.11, and 24.7.
73
+
- In the JSON settings file, add a configuration block for MDK MCP server within the `mcpServers` section, and save the file. The supported schema versions include 26.9 (default), 26.6, 26.3, 25.9, 25.6, 24.11, and 24.7.
74
74
75
75
```json
76
76
{
77
77
"mcpServers": {
78
78
"mdk-mcp": {
79
79
"type": "stdio",
80
80
"command": "mdk-mcp",
81
-
"args": ["--schema-version", "26.6"]
81
+
"args": ["--schema-version", "26.9"]
82
82
}
83
83
}
84
84
}
@@ -106,7 +106,7 @@ If you're on an Intel Mac, you may need to:
106
106
"mdk-mcp": {
107
107
"type": "stdio",
108
108
"command": "mdk-mcp",
109
-
"args": ["--schema-version", "26.6"]
109
+
"args": ["--schema-version", "26.9"]
110
110
}
111
111
}
112
112
}
@@ -138,7 +138,7 @@ If you're on an Intel Mac, you may need to:
"description": "The following describes the common metadata properties applicable for all action types. Note: Failed actions are events that execute with errors. Invalid actions are events that doesn't get executed at all due to validation errors.",
6
+
"properties": {
7
+
"ActionResult": {
8
+
"description": "Refer to the [MDK Guide](https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/getting-started/mdk/development/action-binding-and-result.html#action-results) to understand what an action result is.\n\nContains a name that can be used to look up an action result via target path or rule. Action results are only available for subsequent actions, given that the preceding action result is stored via `OnSuccess` or `OnFailure` actions.",
9
+
"$ref": "definitions/ActionResult"
10
+
},
11
+
"ActivityIndicatorText": {
12
+
"description": "Text that appears on the progress bar.",
13
+
"type": "string",
14
+
"default": "LOADING"
15
+
},
16
+
"OnFailure": {
17
+
"description": "Action or rule that is executed when an action fails. PLT formatter is supported.",
"description": "Messages are logged when an action gets executed successful.",
41
+
"$ref": "definitions/OnActionLog"
42
+
},
43
+
"ShowActivityIndicator": {
44
+
"description": "If set to True, every time an activity or action gets executed, a progress bar appears with the execution status, and it’ll automatically disappear once done.",
45
+
"type": "boolean"
46
+
},
47
+
"ValidationRule": {
48
+
"description": "Rule that validates the current action. The rule will be run before the action is executed. The rule can check values to make sure properties exist and match business criteria or any other business logic needed before executing the action. Return a boolean value to indicate if the validation has passed. If false or non-boolean value is returned, the action will not be executed and OnInvalid event will be triggered.",
"description": "Chat Completions action is used to send a /chats/completions request to the AI Core service.\n\nAll the properties defined under [Action](../../Action.schema.md) are applicable to this action.",
6
+
"properties": {
7
+
"APIVersion": {
8
+
"description": "Specify the API version. For information about the supported API versions, see Chat completions in the [Microsoft documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions).",
9
+
"type": "string",
10
+
"default": "2024-02-01"
11
+
},
12
+
"Headers": {
13
+
"type": "object",
14
+
"description": "Custom headers to be included as part of the request to the AI Core Service in key/value pair format",
15
+
"default": {"content-type": "application/json"}
16
+
},
17
+
"Path": {
18
+
"type": "string",
19
+
"description": "The endpoints such as \"/chat/completions\" are not required if if \"/chat/completions\" is already in the full path of destination"
20
+
},
21
+
"Properties": {
22
+
"$ref": "definitions/ChatCompletionsProperties",
23
+
"description": "A list of the property names and values in key/value pairs format."
24
+
},
25
+
"ResourceGroup": {
26
+
"description": "Specify the resource group. Resource groups represent a virtual collection of related resources within the scope of your AI runtime environment.",
Refer to the [MDK Guide](https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/getting-started/mdk/development/action-binding-and-result.html#action-results) to understand what an action result is.
5
+
6
+
The success ActionResult of this action is of a JS primitive type, object or a JS array. The failure ActionResult is an error message.
7
+
8
+
----
9
+
## Examples
10
+
11
+
Please refer to [AI Core Service Guide](https://help.sap.com/doc/c31b38b32a5d4e07a4488cb0f8bb55d9/CLOUD/en-US/f17fa8568d0448c685f2a0301061a6ee.pdf) for the supported models
12
+
13
+
### Text Input
14
+
15
+
```json
16
+
{
17
+
"_Type": "Action.Type.AICore.Chat.Completions",
18
+
"ResourceGroup": "default",
19
+
"APIVersion": "2023-05-15",
20
+
"Target": {
21
+
"Service": "/MyMDKApp/Services/MyAICore.service",
22
+
"Path": "/chat/completions"
23
+
},
24
+
"Properties" : {
25
+
"Model": "gpt-3.5-turbo",
26
+
"Messages": [
27
+
{
28
+
"role": "user",
29
+
"content": "sample input prompt"
30
+
}
31
+
],
32
+
"MaxTokens": 100,
33
+
"Temperature": 0.0,
34
+
"FrequencyPenalty": 0,
35
+
"PresencePenalty": 0,
36
+
}
37
+
}
38
+
```
39
+
40
+
41
+
### Image Input
42
+
43
+
```json
44
+
{
45
+
"_Type": "Action.Type.AICore.Chat.Completions",
46
+
"APIVersion": "2023-05-15",
47
+
"Target": {
48
+
"Service": "/MyMDKApp/Services/MyAICore.service",
49
+
"Path": "/chat/completions"
50
+
},
51
+
"Properties" : {
52
+
"Model": "gpt-4o",
53
+
"Messages": [
54
+
{
55
+
"role": "user",
56
+
"content": [
57
+
{
58
+
"type": "text",
59
+
"text": "Describe this picture:"
60
+
},
61
+
{
62
+
"type": "image_url",
63
+
"image_url": {
64
+
"url": "https://path/images/image.png"
65
+
}
66
+
},
67
+
{
68
+
"type": "image_url",
69
+
"image_url": {
70
+
"url": "data:image/jpeg;base64,{base64_image}"
71
+
}
72
+
}
73
+
]
74
+
},
75
+
"MaxTokens": 100
76
+
}
77
+
}
78
+
```
79
+
80
+
81
+
### Tools
82
+
83
+
Tools and Tool_choice properties are supported by GPT models.
84
+
85
+
```json
86
+
{
87
+
"_Type": "Action.Type.AICore.Chat.Completions",
88
+
"APIVersion": "2023-05-15",
89
+
"Target": {
90
+
"Service": "/MyMDKApp/Services/MyAICore.service",
91
+
"Path": "/chat/completions"
92
+
},
93
+
"Properties" : {
94
+
"Model": "gpt-4o",
95
+
"Messages": [
96
+
{
97
+
"role": "user",
98
+
"content": "Please fetch the weather data for the city of London.",
99
+
},
100
+
],
101
+
"Tools": [
102
+
{
103
+
"type": "function",
104
+
"function": {
105
+
"name": "fetch_weather_data",
106
+
"description": "Fetch weather data from OpenWeatherMap API",
107
+
"parameters": {
108
+
"type": "object",
109
+
"properties": {
110
+
"city": {
111
+
"type": "string",
112
+
"description": "The name of the city to get weather data for",
"description": "Generate Content action is used to send a generateContent request to the AI Core service.\n\nAll the properties defined under [Action](../../Action.schema.md) are applicable to this action.",
6
+
"properties": {
7
+
"Headers": {
8
+
"type": "object",
9
+
"description": "Custom headers to be included as part of the request to the AI Core Service in key/value pair format",
10
+
"default": {"content-type": "application/json"}
11
+
},
12
+
"Path": {
13
+
"type": "string",
14
+
"description": "The endpoints such as \"/models/gemini-1.5-pro:generateContent\" are not required if \"/models/gemini-1.5-pro:generateContent\" is already in the full path of destination"
15
+
},
16
+
"Properties": {
17
+
"$ref": "definitions/GenerateContentProperties",
18
+
"description": "A list of the property names and values in key/value pairs format."
19
+
},
20
+
"ResourceGroup": {
21
+
"description": "Specify the resource group. Resource groups represent a virtual collection of related resources within the scope of your AI runtime environment.",
0 commit comments