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
@@ -17,11 +19,9 @@ public override async Task Run()
17
19
if(!string.IsNullOrEmpty(Ollama.SelectedModel))
18
20
{
19
21
varkeepChatting=true;
20
-
varmcpServersAdded=false;
22
+
varmcpAdded=false;
21
23
varsystemPrompt=ReadInput($"Define a system prompt [{HintTextColor}](optional)[/]");
22
24
23
-
vartools=awaitGetTools(false);
24
-
25
25
do
26
26
{
27
27
AnsiConsole.MarkupLine("");
@@ -30,7 +30,7 @@ public override async Task Run()
30
30
AnsiConsole.MarkupLine("If any tool is used, the intended usage information is printed.");
31
31
WriteChatInstructionHint();
32
32
33
-
if(!mcpServersAdded)
33
+
if(!mcpAdded)
34
34
{
35
35
AnsiConsole.MarkupLine($"[{HintTextColor}]Enter [{AccentTextColor}]{USE_MCP_SERVER_COMMAND}[/] to use tools from MCP servers. Caution, please install following MCP servers for this demo: [/]");
Copy file name to clipboardExpand all lines: docs/tool-support.md
+3
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,7 @@ OllamaSharp will automatically match tool calls from the AI model with the provi
146
146
- the tool implementation itself is not duplicated but gets executed from the generated tool. This allows easy debugging.
147
147
- the tool's result value will automatically be back-propagated to the chat so that the AI model can continue working.
148
148
- the entire tool invocation behavior can be modified by changing the `Chat.ToolInvoker` instance.
149
+
- the project containing the tools **must generate a documentation file**, otherwise the tools' summaries are lost after compilation. Add `<GenerateDocumentationFile>true</GenerateDocumentationFile>` to the corresponding project file.
149
150
150
151
#### Limitations
151
152
@@ -154,6 +155,8 @@ OllamaSharp will automatically match tool calls from the AI model with the provi
154
155
- cannot be used with non-static instance methods <sup>**_planned_**</sup>
155
156
- cannot be used with interfaces to only define the meta data without providing an implementation <sup>**_planned_**</sup>
156
157
- only available for C#. Visual Basic and F# are not supported <sup>**_not planned_**</sup>
158
+
159
+
> The project containing the Ollama tools must generate a documentation file, see "Important details".
0 commit comments