290 Commits

Author SHA1 Message Date
Jacob Alber
43e9c266c1
feat: Enable queueing and step mode in InProcessRuntime (#5239)
Moves the semantics of message delivery in .NET to be closer to Python
(up to vagaries of differences in Threading)

* Creates a message delivery queue in InProcessRuntime
* Creates Start/Stop/WaitForIdle APIs on InProcessRuntime
* Creates API to step individual messages
* Updates InProcessRuntime to play well with IHost as an IHostedService
2025-01-28 20:28:05 +00:00
XiaoYun Zhang
91249c4b33 update debugType option 2025-01-28 09:24:16 -05:00
Jack Gerrits
caa33124bf remove unported things from the solution
formatting
2025-01-28 09:24:16 -05:00
Jacob Alber
235a3bfab3 feat: Enable Services mapping without passing in HostApplicationBuilder
* update getting-started sample
2025-01-28 09:24:16 -05:00
Jacob Alber
7a6f4ded2e fix: Crash when sending message an agent does not listen to 2025-01-28 09:24:16 -05:00
Jacob Alber
34d34142b3 fix: Remember to register the IAgentRuntime in the DI AppBuilder 2025-01-28 09:24:16 -05:00
Jacob Alber
22d8f449fb fixup: IHandler.HandleAsync 2025-01-28 09:24:16 -05:00
Jacob Alber
69f7c6bc45 fix: Update BaseAgent to use HandlerInvoker
* Fixes issues around SendMessage
2025-01-28 09:24:16 -05:00
Jacob Alber
c930251ebc fix: Increase MethodGroup type precision
* Fixes stackoverflow when calling InMemoryRutnime.RegisterAgentFactoryAsync()
2025-01-28 09:24:16 -05:00
Jacob Alber
d9e0013975 feat: Implement mechanism to abstract over IHandle implementations 2025-01-28 09:24:16 -05:00
Jack Gerrits
a4d8d571b0 getting started sample 2025-01-28 09:24:16 -05:00
Jack Gerrits
d48b54fcaf rename Handle to HandleAsync 2025-01-28 09:24:16 -05:00
Jack Gerrits
e9d4dcae64 remove agents project 2025-01-28 09:24:16 -05:00
Jacob Alber
20a47ebd43 feat: Flesh out App Builder APIs 2025-01-28 09:24:16 -05:00
Jacob Alber
b08ce5d1a7 chore: Create a CoreOnly solution configuration 2025-01-28 09:24:16 -05:00
Jack Gerrits
0b850fdbdb add unsub test 2025-01-28 09:24:16 -05:00
Jack Gerrits
fd6a369422 fix handler selection 2025-01-28 09:24:16 -05:00
Jack Gerrits
2fd6eee080 fix namespace 2025-01-28 09:24:16 -05:00
Jack Gerrits
e15b449c16 fix test agent 2025-01-28 09:24:16 -05:00
Jack Gerrits
b16b94feb8 WIP, moved to base namespace 2025-01-28 09:24:16 -05:00
Griffin Bassman
a75892635b add xml comments for TopicId.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
42703dd79c add xml comments for MessageContext.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
e2082875e2 add xml comments for KVStringParseHelper.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
9a5242b973 add xml comments for AgentExceptions.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
08ff47383e add xml comments for IUnboundSubscriptionDefinition.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
b69af4aedf add xml comments for ISubscriptionDefinition.cs 2025-01-28 09:24:16 -05:00
Jack Gerrits
2ba7732220 add subscriptions to host builder 2025-01-28 09:24:16 -05:00
Jack Gerrits
fe8faa9133 empty line 2025-01-28 09:24:16 -05:00
Jack Gerrits
b19374e81d first tests 2025-01-28 09:24:16 -05:00
Jacob Alber
8a342ad9e6 feat: AppBuilder/Host pattern for AgentApp 2025-01-28 09:24:16 -05:00
Griffin Bassman
a4e585e69e add xml comments for ISaveState.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
f968b7b8b1 add xml comments for IAgentRuntime.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
271accbc0e add dotnet exceptions and IAgent xml docs 2025-01-28 09:24:16 -05:00
Jacob Alber
60b06583eb fix: Get InProcessRuntime building
* Sanitize APIs more
2025-01-28 09:24:16 -05:00
Jack Gerrits
9669f8bcd9 fix header 2025-01-28 09:24:16 -05:00
Jack Gerrits
4720efb75e move file 2025-01-28 09:24:16 -05:00
Jack Gerrits
52217ed69b impl base agent 2025-01-28 09:24:16 -05:00
Jacob Alber
468bb42cf8 feat: Initial implementation of InProcessRuntime 2025-01-28 09:24:16 -05:00
Jack Gerrits
35dd8f0d9e default close 2025-01-28 09:24:16 -05:00
Jack Gerrits
b0d268fae2 Add IUnboundSubscriptionDefinition 2025-01-28 09:24:16 -05:00
Griffin Bassman
f8325e5907 add xml comments for AgentType.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
4e7162e808 add typesubscription.cs 2025-01-28 09:24:16 -05:00
Griffin Bassman
e006240676 fix comment and agentProxy -- build succeeds 2025-01-28 09:24:16 -05:00
Jacob Alber
fd2409f5e1 fix: Add missing AgentId in IAgentRuntime methods
* also formatting fix
2025-01-28 09:24:16 -05:00
Griffin Bassman
7543192838 type prefix subscriptions 2025-01-28 09:24:16 -05:00
Griffin Bassman
1a789dfcc4 fix file headers 2025-01-28 09:24:16 -05:00
Jack Gerrits
c5a319e906 nullable return 2025-01-28 09:24:16 -05:00
Jack Gerrits
0497592e8a add python equiv in core 2025-01-28 09:24:16 -05:00
Griffin Bassman
51b992cfd5 add xml comments for AgentProxy.cs 2025-01-28 09:24:16 -05:00
Jacob Alber
51dbe6cd6d feat: Make the python interface more correct 2025-01-28 09:24:16 -05:00