Commit graph

283 commits

Author SHA1 Message Date
LAPTOP-3CFGGVOS\rabbit b30aa58aa6 optimize translation 2024-05-09 19:42:05 +08:00
Haiping Chen 6554c43dbc Only show playload to AI. 2024-05-07 17:16:07 -05:00
Haiping Chen c0523a118f Fallback Agent. 2024-05-07 12:19:55 -05:00
Haiping Chen 7fb386f176 Anthropic AI 2024-05-02 17:07:12 -05:00
Haiping Chen 0ae2c4ba99 Server-sent Events. 2024-04-30 16:25:58 -05:00
Haiping Chen b43dfbac01 Fix language detection. 2024-04-25 11:27:51 -05:00
Haiping Chen ce7b495475 Return reason from HasMissingRequiredField. 2024-04-24 16:45:18 -05:00
Joanna Ren ab3c6089a6 update language detection 2024-04-23 17:13:38 -05:00
Haiping Chen e93fa66bcc update language. 2024-04-23 15:30:38 -05:00
Haiping Chen 2add4a6ae8 Fix localization return issue. 2024-04-23 14:48:30 -05:00
Haiping Chen 36e569ea28 Update language prompt. 2024-04-23 14:27:14 -05:00
Haiping Chen 06974977e7 translation prompt. 2024-04-23 14:02:00 -05:00
Haiping Chen 4307d7711d Refactor human intervention needed. 2024-04-22 15:46:47 -05:00
sylviachency 4aa5b92b92
Update HumanInterventionNeededHandler.cs
address transfer to person issue
2024-04-11 12:41:48 -05:00
C. Oceania 5564287871
Agent Name is contaminated. 2024-04-10 15:02:19 -05:00
Haiping Chen ca262e7ec3 ConversationBreakpoint.Reason 2024-04-07 22:15:51 -05:00
Haiping Chen 3c968bd068 PostbackFunctionName 2024-04-06 18:33:49 -05:00
Haiping Chen 551c2f8ed4 check field type in routing. 2024-04-03 09:47:32 -05:00
Haiping Chen fcb761976b Handle output routing exception. 2024-04-02 17:27:36 -05:00
Haiping Chen 15291fa6f0 Fix OnRoutingInstructionRevised 2024-03-31 11:12:20 -05:00
Haiping Chen 8f9e2adcc3 Save to Storage as well 2024-03-30 19:48:13 -05:00
Haiping Chen bed33c82fb Remove agent required args based on latest states. 2024-03-30 07:51:11 -05:00
Haiping Chen 52d542cafa response_to_user 2024-03-29 19:07:09 -05:00
Haiping Chen d8368ef83e Provide conversation_end flat in response_to_user 2024-03-29 18:36:05 -05:00
Haiping Chen 56e204c3ad expected_user_goal_agent 2024-03-29 11:46:48 -05:00
C. Oceania ffe9fb81b0
Update RoutingService.InvokeFunction.cs 2024-03-28 16:44:57 -05:00
Haiping Chen 3d7fb18ab0 optimize naive. 2024-03-28 15:38:16 -05:00
Haiping Chen 16e3a70ce7 human_intervention_needed 2024-03-28 14:09:53 -05:00
Haiping Chen 9f79dcf4a8 Save function result to Storage 2024-03-28 14:09:13 -05:00
Haiping Chen 5f5afada70 Remove task_completed 2024-03-24 23:38:00 -05:00
Haiping Chen fee89ffb96 Conversation rate limit. 2024-03-24 12:33:41 -05:00
Haiping Chen 33df282add task completed hook. 2024-03-22 14:06:20 -05:00
Haiping Chen 3a28a72f6c Skip routing rule check if current agent is empty. 2024-03-22 08:24:58 -05:00
Haiping Chen dccc345bcd Check routing rule after poping agent. 2024-03-21 17:04:45 -05:00
Haiping Chen 0609011650 RouteToAgentRoutingHandler 2024-03-20 10:38:56 -05:00
Haiping Chen d0e492820f expected_next_action_agent 2024-03-14 23:48:32 -05:00
Haiping Chen be7b5a9849 Fix InvokeFunction name. 2024-03-14 19:52:58 -05:00
Haiping Chen a36347ea42 Syn latest state before rendering prompt. 2024-03-12 11:54:20 -05:00
Haiping Chen 1bccb15058 Syn agent template dict once states has been changed. 2024-03-11 13:26:49 -05:00
Haiping Chen 7d5959f387 OnRoutingInstructionRevised 2024-03-11 11:03:42 -05:00
Haiping Chen 656b533523 Emit OnRoutingInstructionRevised 2024-03-11 09:49:17 -05:00
Haiping Chen 96bf9d2fa0 Add user_goal_description to router.
Improve stream log.
2024-03-05 11:36:48 -06:00
Haiping Chen 885097ff3d Add conversation summary for human_intervention_needed 2024-03-03 13:29:10 -06:00
Haiping Chen fb0adadf6a Unified InvokeFunction. 2024-02-29 23:44:57 -06:00
Haiping Chen beb82c855a fix GetCurrentAgentId 2024-02-28 20:45:01 -06:00
Haiping Chen 0f6a183ed4 Fix Pop agent bug. 2024-02-28 20:41:21 -06:00
Haiping Chen 72c5ec7bd9 Improve IRoutingHook. 2024-02-28 14:40:59 -06:00
Haiping Chen ac40aa645f Stream Routing context log. 2024-02-28 10:21:14 -06:00
Haiping Chen a0bf65698f Add required flag. 2024-02-27 21:15:21 -06:00
Haiping Chen 18721a6b8f Auto restore function name in InvokeFunction. 2024-02-27 14:59:08 -06:00
Haiping Chen 2582ecd578 Add TwoStagePlanner. 2024-02-27 07:19:05 -06:00
Haiping Chen c67d0cc68f Add hook of OnConversationRouting. 2024-02-22 19:53:00 -06:00
Haiping Chen f4b4ca4329 OnConversationRedirected 2024-02-22 15:14:13 -06:00
Haiping Chen 1a0e5bea57 SQL Driver 2024-02-19 16:55:41 -06:00
Haiping Chen 0473923fed improve webdrive action response. 2024-02-08 15:39:56 -06:00
Haiping Chen 4a1ae030dd Add more dialog history for SequentialPlanner 2024-02-05 23:58:38 -06:00
Haiping Chen 19ee935c29 Abstract IWebBrowser. 2024-02-05 23:05:52 -06:00
Haiping Chen 8aa7158932 Fix sequential planning infinite loop. 2024-02-04 22:22:43 -06:00
Haiping Chen c5f15b8340 Allow WebDriver use persistent context. 2024-02-04 16:55:46 -06:00
Haiping Chen a8c2b49d6f AgentTask 2024-02-02 16:36:05 -06:00
Haiping Chen 2ad0f23d8c Optimize WebDriver. 2024-02-01 22:16:57 -06:00
Haiping Chen a3c6a6b93c planner get remaining task. 2024-02-01 12:32:16 -06:00
Haiping Chen 67fd6f79fd Allow agent to inherit from other agent. 2024-01-29 12:08:49 -06:00
Haiping Chen ab0b200406 Change planner setting to agent level. 2024-01-26 19:14:14 -06:00
Haiping Chen e1a948c9c7 Allow task agent to fallback to predefined router. 2024-01-26 16:23:10 -06:00
Haiping Chen 8558e46ee1 resolve conflict 2024-01-25 22:44:42 -06:00
Haiping Chen 36e1ba4813 MaxRecursionDepth 2024-01-25 22:42:57 -06:00
Haiping Chen 69633c8a20 Standarderize agent type. 2024-01-25 22:32:48 -06:00
Haiping Chen 9d3cd6b6e9 Support multi-agent with different profile. 2024-01-24 17:02:59 -06:00
Haiping Chen 091e7b4212 SequentialPlanner draft. 2024-01-23 17:14:57 -06:00
Haiping Chen 8748db4fde Complete plugin name and description. 2024-01-16 13:23:45 -06:00
Haiping Chen 6286393242 Plugin settings with interaction with UI. 2024-01-15 13:15:18 -06:00
Haiping Chen e456cdb83a Chang GetChatCompletions to async. 2024-01-13 22:48:26 -06:00
Haiping Chen 3022cf50cb Support to set multiple routers. 2024-01-13 15:17:40 -06:00
Haiping Chen cdae1235da UnmatchedAgent 2024-01-06 16:24:22 -06:00
hchen 1c03789a38 Fix config priority. 2023-12-15 11:54:44 -06:00
Haiping Chen 89af1d72a6 Set default LlmConfig for Agent level. 2023-12-13 17:16:34 -06:00
Haiping Chen 538753571a Unify the LLM Provider Settings #234 2023-12-13 12:12:25 -06:00
Haiping Chen 61c1f9623b Fix StopCompletion issue for hook.OnMessageReceived. 2023-12-12 08:16:34 -06:00
Haiping Chen 6e88cc6f2c Set FunctionName of InvokeFunction. 2023-12-11 17:15:37 -06:00
Jicheng Lu fabbd8bcef add invoke function in routing service 2023-12-06 21:06:09 -06:00
Jicheng Lu 801b49181f add filters for conversation and agent 2023-11-27 16:20:49 -06:00
Jicheng Lu bd4ec132d5 revert change 2023-11-26 21:44:17 -06:00
Jicheng Lu e3b0a7f075 get channel from conversation 2023-11-26 21:04:48 -06:00
Haiping Chen 2a0c54a915 Use current agent id as template search dir. 2023-11-21 20:27:43 -06:00
Haiping Chen ab70a4d447 Allow override model for ExecutingDirectly. 2023-11-20 09:51:57 -06:00
hchen 0bf2fe58fc Fix ExecuteOnce fetch dialogs. 2023-11-16 12:20:43 -06:00
hchen e44423570d Update next action agent's name 2023-11-14 14:56:51 -06:00
hchen 3483fd42a1 Adjust rich content data structure. 2023-11-08 16:27:42 -06:00
Haiping Chen 5d49b1b0e2 Fix CurrentAgentId. 2023-11-03 16:32:27 -05:00
Haiping Chen 9c488358e4 Fix current agent id. 2023-11-03 15:45:58 -05:00
hchen 73331bbb1d Add states to chat message result 2023-11-03 09:16:16 -05:00
hchen ed5049ccb2 Fix RichContent pass alway bug. 2023-11-01 16:30:39 -05:00
hchen 8ed35691f9 Clean code. 2023-10-31 20:48:12 -05:00
Haiping Chen a18d1ea5aa RoleDialogModel.From 2023-10-30 15:06:45 -05:00
Haiping Chen 5d78e83e7c Fix InvokeFunction dialog message. 2023-10-30 14:27:12 -05:00
Haiping Chen df7743e37d Separate required and optional args. 2023-10-30 12:44:53 -05:00
Haiping Chen 3caa7a5499 HFPlanner 2023-10-30 11:48:18 -05:00
Haiping Chen c7ff0e4c2e Rename to ReasoningPlanner. 2023-10-28 20:54:10 -05:00
Haiping Chen 513ad5814e NaivePlanner 2023-10-28 15:59:26 -05:00
Haiping Chen 933fc3febd Share one message instance through the conversation. 2023-10-27 15:36:26 -05:00
Haiping Chen 492a1d70ee ITrackableMessage 2023-10-27 10:18:48 -05:00
hchen 2cd3dfcd29 JsonContent<T> 2023-10-26 13:52:44 -05:00
Haiping Chen 2a52e30ba8 change description of human_intervention_needed. 2023-10-25 22:05:12 -05:00
Haiping Chen d7ef99d034 Render assistant role as specific agent name. 2023-10-25 19:30:23 -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 Chen 7fb9440011 Fix GetAgents list. 2023-10-23 12:41:44 -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
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 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
hchen 5ced9f6da4 Refactor FixMalformedResponse. 2023-10-18 10:54:03 -05:00
Haiping Chen 2dd8b9a3ff Bumb version to v0.16.2. 2023-10-16 16:56:32 -05:00
Haiping 8531d8ab09 Add IContentGeneratingHook. 2023-10-16 15:07:07 -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 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
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 0cd0b32e9a Add Google PaLM 2. 2023-10-08 15:46:42 -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
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
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 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