Refine 2.0.0 concept documentation (#1742)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 782b5bad-4046-49ec-93a6-72768b5b7521 Copilot-Session: 4b938335-418c-4ee7-8287-6c70d9148b89
This commit is contained in:
parent
6e2f285827
commit
314bdb2f49
1 changed files with 178 additions and 63 deletions
|
|
@ -22,7 +22,7 @@ public class LongRunningTools
|
|||
{
|
||||
await Task.Delay(stepDuration * 1000);
|
||||
|
||||
// <snippet_SendProgress >
|
||||
// <snippet_SendProgress>
|
||||
if (progressToken is not null)
|
||||
{
|
||||
await server.SendNotificationAsync("notifications/progress", new ProgressNotificationParams
|
||||
|
|
@ -36,7 +36,7 @@ public class LongRunningTools
|
|||
},
|
||||
});
|
||||
}
|
||||
// </snippet_SendProgress >
|
||||
// </snippet_SendProgress>
|
||||
}
|
||||
|
||||
return $"Long running tool completed. Duration: {duration} seconds. Steps: {steps}.";
|
||||
|
|
|
|||
Loading…
Reference in a new issue