Commit graph

341 commits

Author SHA1 Message Date
Yanan Wang e43b3e6fa1 Add RichContent field and PostBackUrl for QuickReplies 2023-10-27 17:16:53 -05:00
Yanan Wang eb4e0b0187 Merge from master into add_richCoontent Branch 2023-10-27 16:21:52 -05:00
Yanan Wang 35cbc90e60 Add JsonPropertyName 2023-10-27 15:54:16 -05:00
Yanan Wang f709bb1795 Add SenderActionModel 2023-10-27 15:38:37 -05:00
Haiping Chen 58051e2db0 Merge branch 'master' of https://github.com/SciSharp/BotSharp 2023-10-27 15:36:34 -05:00
Haiping Chen 933fc3febd Share one message instance through the conversation. 2023-10-27 15:36:26 -05:00
Yanan Wang d26d8308d5 Allow MessageingType Nullable 2023-10-27 15:25:16 -05:00
Yanan Wang 8f7b4c7925 Correct TemplateMessage Model 2023-10-27 15:13:58 -05:00
Yanan Wang 46710c14cc Add richContent for future UI rendering 2023-10-27 14:05:18 -05:00
hchen2020 0cbb0183cf
Merge branch 'SciSharp:master' into master 2023-10-27 10:36:46 -05:00
Haiping Chen 492a1d70ee ITrackableMessage 2023-10-27 10:18:48 -05:00
Haiping Chen cee91acaaa Fix OriginAgentId 2023-10-26 20:23:06 -05:00
hchen 2cd3dfcd29 JsonContent<T> 2023-10-26 13:52:44 -05:00
Haiping Chen 012158470f PerInstanceCache = true 2023-10-26 09:18:14 -05:00
Haiping Chen 2a52e30ba8 change description of human_intervention_needed. 2023-10-25 22:05:12 -05:00
hchen2020 7482339e02
Merge branch 'SciSharp:master' into master 2023-10-25 19:31:00 -05:00
Haiping Chen d7ef99d034 Render assistant role as specific agent name. 2023-10-25 19:30:23 -05:00
hchen2020 bab74e5993
Merge branch 'SciSharp:master' into master 2023-10-25 19:27:40 -05:00
Jicheng Lu 4041ca8de7 remove code 2023-10-25 16:40:36 -05:00
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
hchen 26b738ef64 Populate states for ResponseTemplateService 2023-10-25 14:44:27 -05:00
Jicheng Lu 975b5720c7 add impact in agent functions 2023-10-25 13:02:50 -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
hchen eb13994180 Return states in InstructResult. 2023-10-24 19:36:02 -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 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 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 60d9f47356 1. use string id in mongo collection.
2. add samples
3. refine repo api
2023-10-19 17:27:51 -05:00
hchen 5e65d833ea Remove LoadAgent cache. 2023-10-19 15:57:56 -05:00
hchen bf9bb2b6d3 Allow agent to use few-shot learning. 2023-10-19 12:24:00 -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
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
Jicheng Lu 336a98d22a add bulk insert agents and user agents 2023-10-17 15:29:40 -05:00
hchen 8c43de14e9 Fix bug of next_step_prompt with args. 2023-10-17 10:49:07 -05:00
Jicheng Lu 1be6531409 use BotSharpMongoDb 2023-10-16 17:52:48 -05:00
Haiping Chen 2dd8b9a3ff Bumb version to v0.16.2. 2023-10-16 16:56:32 -05:00
Haiping 346e081ad6
Merge pull request #172 from iceljc/features/refine-fetch-agent
refine agent data fetching
2023-10-16 16:39:38 -05:00
Jicheng Lu 541b8fde50 refine agent data fetching 2023-10-16 16:37:01 -05:00
Haiping 8531d8ab09 Add IContentGeneratingHook. 2023-10-16 15:07:07 -05:00
Jicheng Lu 0ea469b29f relocate agent template in file repository 2023-10-15 23:12:17 -05:00
Haiping Chen 8ea6b0f814 Add ConversationEnding to IConversationHook 2023-10-15 19:08:24 -05:00
Haiping 1c0fe993ba Move next step prompt to liquid template. 2023-10-13 18:36:57 -05:00
Haiping Chen bf151a0d09 Bump to v0.16.1. 2023-10-13 15:15:27 -05:00
Haiping Chen 1a54f17440 Auto test. 2023-10-13 15:08:59 -05:00
hchen 985e0501de Add user_goal_agent to track user's original task. 2023-10-12 16:42:39 -05:00
Haiping Chen 34e22ce35f Add Name/ Desc to IBotSharpPlugin 2023-10-12 06:36:36 -05:00
Haiping Chen 4e2d00611b Move router profile to liquid. 2023-10-12 06:30:13 -05:00
Haiping Chen 8003fc39f0 Rollback. 2023-10-11 22:26:27 -05:00
Haiping Chen fbd3c6f0ca Fix #167 2023-10-11 19:59:09 -05:00
Haiping Chen 7fbff8c777 PluginController 2023-10-10 23:11:06 -05:00
hchen 578362c411 Allow retry 3 times for format response in Routing. 2023-10-10 16:53:04 -05:00
Haiping Chen c9822dd7ee TextCompletion of google-ai 2023-10-09 17:28:17 -05:00
Haiping Chen 5d481c2bac fix #164 2023-10-08 19:05:17 -05:00
Haiping Chen 0cd0b32e9a Add Google PaLM 2. 2023-10-08 15:46:42 -05:00
Haiping Chen b7d19ee789 Bump to v0.15.1. 2023-10-02 15:40:15 -05:00
hchen d165897069 Add RoutingContext to manage redirection stack automatically. 2023-10-02 15:16:35 -05:00
hchen2020 62e6e3b507 Add timer to ITokenStatistics and update docs. 2023-09-29 13:08:42 -05:00
hchen2020 e047963c59 remove routing injection. 2023-09-28 12:42:14 -05:00
Jicheng Lu 28a5bbb929 decouple mongo element with domain element 2023-09-28 12:16:39 -05:00
hchen2020 7b45a27f13
Merge branch 'SciSharp:master' into master 2023-09-27 22:33:16 -05:00
hchen 649cba561e print functions in verbose. 2023-09-27 22:31:58 -05:00
hchen 6ce664d618 Format LLM functions. 2023-09-27 15:49:44 -05:00
Jicheng Lu 9a9cc1d52a remove token user id 2023-09-27 13:25:36 -05:00
Haiping 3740a8cc7a Add GetChatCompletions and clean routing code. 2023-09-27 07:51:15 -05:00
hchen2020 ffdb33e234 Improve TokenStatistics. 2023-09-26 11:18:42 -05:00
hchen2020 3eaccfbe6a Add TokenStatsModel. 2023-09-25 22:04:04 -05:00
Haiping Chen 3b00d2309c Release v0.14.9. 2023-09-25 18:18:09 -05:00
hchen2020 0a11b516fb Change RoutingArgs. 2023-09-25 17:46:00 -05:00
hchen2020 6c052f8f40 Add TokenStatistics for cost control. 2023-09-24 16:32:58 -05:00
Haiping Chen c46fa843cd Clean code. 2023-09-24 11:20:02 -05:00
hchen2020 dd346571b4 Add Execute Once. 2023-09-23 16:33:05 -05:00
hchen2020 4d449ff7d7 Re-define FunctionCallFromLlm. 2023-09-22 15:38:58 -05:00
Haiping Chen 8abc002f14 route_to_agent fallback 2023-09-21 14:21:59 -05:00
Haiping Chen f0e9ac50bf Make router agent be the first. 2023-09-21 12:12:45 -05:00
Haiping Chen 040d583c87 Add router description. 2023-09-21 11:40:54 -05:00
Haiping Chen 8b135e8c32 Add router name. 2023-09-21 11:23:43 -05:00
Haiping Chen 25ac948510 Fix package bug. 2023-09-21 10:10:24 -05:00
Haiping Chen 1ff154c682 Update router instruction. 2023-09-21 08:08:27 -05:00
hchen 18eb9d677c RoutingSettings.Provider and Model. 2023-09-20 17:08:14 -05:00
Haiping Chen a56d770e27 Add make_payment to PizzaBot. 2023-09-20 05:59:27 -05:00
Haiping Chen a7b6c4083f Build-in routing prompt. 2023-09-20 05:31:50 -05:00
Haiping 6ced7a0c7e
Merge pull request #149 from iceljc/features/update-agent-structure
Features/update agent structure
2023-09-19 16:58:05 -05:00
Jicheng Lu d238064af9 refine agent and update 2023-09-19 13:18:29 -05:00
hchen ba49e672ce Fix instruction mode. 2023-09-19 13:05:51 -05:00
Jicheng Lu 88f45927a9 Merge remote-tracking branch 'upstream/master' into features/update-agent-structure 2023-09-19 11:39:36 -05:00