Commit graph

921 commits

Author SHA1 Message Date
Jicheng Lu 8cca7361b2 refine agent update functions 2023-10-25 15:56:50 -05:00
Jicheng Lu 2e3fbc98a9 remove test code 2023-10-25 15:11:15 -05:00
Jicheng Lu 6f7f143e7d add impact 2023-10-25 15:09:21 -05:00
Jicheng Lu 975b5720c7 add impact in agent functions 2023-10-25 13:02:50 -05:00
Haiping 209a009aa1
Merge pull request #190 from hchen2020/master
Add SelfId in IInstructHook.
2023-10-25 11:18:59 -05:00
hchen a36f3e4b6c Allow empty SelfId 2023-10-25 10:55:12 -05:00
hchen 4c54a62557 Add SelfId in IInstructHook. 2023-10-25 10:48:25 -05:00
Haiping Chen 2bc2367536 Show text completion verbose log. 2023-10-25 07:48:11 -05:00
Haiping Chen 5d7dd09801 Allow IInstructService to StopCompletion. 2023-10-24 22:41:08 -05:00
Haiping 87089a0af5
Merge pull request #189 from hchen2020/master
Return states in InstructResult.
2023-10-24 20:07:56 -05:00
hchen2020 684b35eb55
Merge branch 'SciSharp:master' into master 2023-10-24 19:46:48 -05:00
hchen eb13994180 Return states in InstructResult. 2023-10-24 19:36:02 -05:00
Haiping 41a0b35b7b
Merge pull request #188 from hchen2020/master
Add SelfId to IAgentHook.
2023-10-24 16:40:01 -05:00
hchen 11176f3539 Add SelfId to IAgentHook. 2023-10-24 16:38:34 -05:00
Haiping ea3bf3e711
Merge pull request #187 from hchen2020/master
Use text completion for instruct mode.
2023-10-23 18:22:40 -05:00
Haiping cf98805048
Merge pull request #186 from iceljc/features/add-execution-log
add execution log
2023-10-23 18:22:30 -05:00
Haiping Chen 8c60e6ae78 Use text completion for instruct mode. 2023-10-23 18:20:18 -05:00
Jicheng Lu 9f6f0e2d92 add execution log 2023-10-23 15:33:24 -05:00
Haiping Chen 7fb9440011 Fix GetAgents list. 2023-10-23 12:41:44 -05:00
Haiping Chen 758cfd556e Bump version to v0.17.0 2023-10-23 11:13:16 -05:00
Haiping Chen 8672214c39 Support states for instruct mode. 2023-10-22 19:37:33 -05:00
Haiping Chen a4c1b56740 Add executor of evaluation. 2023-10-22 19:31:49 -05:00
Haiping Chen 13e17acc76 Fix CurrentRecursionDepth bug in Testing mode. 2023-10-20 18:57:45 -05:00
Haiping Chen 8fcada182f Optimize router prompt. 2023-10-19 22:47:14 -05:00
Haiping bdfcbd9a0a
Merge pull request #182 from iceljc/features/fix-mongo-serialization-add-samples
Features/fix mongo serialization add samples
2023-10-19 19:45:08 -05:00
Jicheng Lu 5d93a38bda remove serializor setting 2023-10-19 17:28:51 -05:00
Jicheng Lu 60d9f47356 1. use string id in mongo collection.
2. add samples
3. refine repo api
2023-10-19 17:27:51 -05:00
Haiping 4a7d20cf42
Merge pull request #181 from hchen2020/master
Remove LoadAgent cache.
2023-10-19 15:59:36 -05:00
hchen2020 9350b551ce
Merge branch 'SciSharp:master' into master 2023-10-19 15:58:37 -05:00
hchen f895be0b70 Merge branch 'master' of https://github.com/hchen2020/BotSharp 2023-10-19 15:58:10 -05:00
hchen 5e65d833ea Remove LoadAgent cache. 2023-10-19 15:57:56 -05:00
Haiping 0799b065dc
Merge pull request #180 from hchen2020/master
human_intervention_needed prompt.
2023-10-19 13:31:11 -05:00
hchen2020 136ed463fa
Merge branch 'SciSharp:master' into master 2023-10-19 13:30:36 -05:00
hchen 581678f1fe human_intervention_needed prompt. 2023-10-19 13:28:29 -05:00
Jicheng Lu c336571a8c Merge branch 'master' into features/fix-mongo-serialization-add-samples 2023-10-19 13:17:21 -05:00
Jicheng Lu 931149fc9d fix mongo serilaization 2023-10-19 13:15:49 -05:00
Haiping 97384e8e90
Merge pull request #179 from hchen2020/master
Allow agent to use few-shot learning.
2023-10-19 12:32:03 -05:00
hchen bf9bb2b6d3 Allow agent to use few-shot learning. 2023-10-19 12:24:00 -05:00
Haiping 5009b97327
Merge pull request #178 from hchen2020/master
Fix typo.
2023-10-18 12:00:23 -05:00
hchen f58decde0d Fix typo. 2023-10-18 11:59:10 -05:00
Haiping 09ea77b73a
Merge pull request #176 from xbotter/patch-file-repository
Refactor FileRepository to handle non-existent directories
2023-10-18 10:56:45 -05:00
Haiping 67a445a4e0
Merge pull request #177 from hchen2020/master
Refactor FixMalformedResponse.
2023-10-18 10:55:41 -05:00
hchen 5ced9f6da4 Refactor FixMalformedResponse. 2023-10-18 10:54:03 -05:00
Haiping Chen 2f3e71ef09 Add EvaluatingService. 2023-10-18 06:58:36 -05:00
xbotter 1d468e0d18
🔧 Update FileRepository to handle missing directories
- The FileRepository class in the BotSharp.Core.Repository namespace has been updated to handle cases where the "users" and agent directories are missing.
- Previously, the code would throw an exception if the directories were not found, but now it checks for their existence before attempting to read files from them.
- This change ensures that the repository can gracefully handle missing directories and continue execution without errors.
- The update includes changes to the GetUserAgents, GetAgents, and GetConversations methods, as well as the UpdateAgent, UpdateInstruction, and UpdateFunctions methods.
- Additionally, the code now properly checks for the existence of the "agents.json" file before attempting to read from it.
- These changes improve the robustness and reliability of the FileRepository class.
2023-10-18 12:58:56 +08:00
Haiping a69cb49044
Merge pull request #175 from iceljc/features/add-refresh-agents
add bulk insert agents and user agents
2023-10-17 15:41:22 -05:00
Jicheng Lu 336a98d22a add bulk insert agents and user agents 2023-10-17 15:29:40 -05:00
Haiping 6de53c4233
Merge pull request #174 from hchen2020/master
Fix bug of next_step_prompt with args.
2023-10-17 10:50:20 -05:00
hchen 8c43de14e9 Fix bug of next_step_prompt with args. 2023-10-17 10:49:07 -05:00
Haiping eb7529cf01
Merge pull request #173 from iceljc/master
use BotSharpMongoDb
2023-10-16 18:38:26 -05:00