Skip to content

Commit

Permalink
Add .NET Connector and .NET Agent example (#4)
Browse files Browse the repository at this point in the history
Add .NET connector, taking care of all the details to connect an agent to Semantic Workbench.

Add agent example, showing how to leverage the connector. 

The .NET agent implements a basic "echo" behavior, repeating what the user says in a conversation, and supports a simple `/say` command showing how to leverage commands.
  • Loading branch information
dluc authored Jul 29, 2024
1 parent eadb8ce commit 4ea39b1
Show file tree
Hide file tree
Showing 32 changed files with 3,480 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
*.local
*__local__*
.data/
.idea/
appsettings.*.json

# Dependencies and build cache
node_modules
poetry.lock
__pycache__
.pytest_cache
.cache
bin/
obj/

# Logs
*.log
Expand Down
474 changes: 474 additions & 0 deletions dotnet/.editorconfig

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions dotnet/SemanticWorkbench.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkbenchConnector", "WorkbenchConnector\WorkbenchConnector.csproj", "{F7DBFD56-5A7C-41D1-8F0A-B00E51477E19}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgentExample01", "..\examples\dotnet-example01\AgentExample01.csproj", "{3A6FE36E-B186-458C-984B-C1BBF4BFB440}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F7DBFD56-5A7C-41D1-8F0A-B00E51477E19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7DBFD56-5A7C-41D1-8F0A-B00E51477E19}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7DBFD56-5A7C-41D1-8F0A-B00E51477E19}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7DBFD56-5A7C-41D1-8F0A-B00E51477E19}.Release|Any CPU.Build.0 = Release|Any CPU
{3A6FE36E-B186-458C-984B-C1BBF4BFB440}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A6FE36E-B186-458C-984B-C1BBF4BFB440}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A6FE36E-B186-458C-984B-C1BBF4BFB440}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A6FE36E-B186-458C-984B-C1BBF4BFB440}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
2 changes: 2 additions & 0 deletions dotnet/SemanticWorkbench.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=CORS/@EntryIndexedValue">CORS</s:String></wpf:ResourceDictionary>
Loading

0 comments on commit 4ea39b1

Please sign in to comment.