Commit graph

832 commits

Author SHA1 Message Date
Jicheng Lu 0b56a18aa6 summarize multiple conversations 2024-05-28 21:50:16 -05:00
C. Oceania 5acc6c89e8
Merge pull request #457 from iceljc/features/add-agent-user-role
Features/add agent user role
2024-05-28 20:55:25 -05:00
C. Oceania 2f5f920e2c
Merge pull request #471 from iceljc/features/add-conversation-summary
Features/add conversation summary
2024-05-28 20:55:11 -05:00
C. Oceania 9835e367d7
Merge pull request #466 from iceljc/features/add-user-avatar
user avatar
2024-05-28 20:54:52 -05:00
YouWeiDH c32c4f57b1 Merge branch 'master' into hdongDev 2024-05-28 20:00:17 +08:00
C. Oceania bcf4198791
Merge branch 'SciSharp:master' into master 2024-05-28 06:51:15 -05:00
YouWeiDH 0ffabd35aa hdong: #65. 2024-05-28 19:47:48 +08:00
Haiping Chen d6ac3c09ea Fix current agent id for routing rule. 2024-05-27 21:06:05 -05:00
Jicheng Lu 520b91507c minor change 2024-05-27 12:51:00 -05:00
Jicheng Lu 6693c7cff2 resolve conflict 2024-05-27 12:15:44 -05:00
Jicheng Lu a5dad4dee4 refine summary prompt 2024-05-27 12:12:39 -05:00
C. Oceania 1d0a7e8196
Merge pull request #472 from yileicn/master
optimize UpdateBreakPoint
2024-05-27 08:19:50 -05:00
LAPTOP-3CFGGVOS\rabbit ad7b3a41eb optimize UpdateBreakpoint 2024-05-27 21:17:50 +08:00
LAPTOP-3CFGGVOS\rabbit 245384e8d2 optimize UpdateBreakPoint 2024-05-27 20:44:01 +08:00
Jicheng Lu b8becca945 minor change 2024-05-26 22:20:56 -05:00
Jicheng Lu 6c5be6da63 clean code 2024-05-26 22:20:27 -05:00
Jicheng Lu 953a53c4bc clean code 2024-05-26 22:19:06 -05:00
Jicheng Lu 6b5d77604e add conversation summary 2024-05-26 21:30:57 -05:00
C. Oceania 76451bf47f
Merge branch 'SciSharp:master' into master 2024-05-26 20:50:16 -05:00
Jicheng Lu 24fdefce98 Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/add-conversation-summary 2024-05-26 20:40:28 -05:00
Jicheng Lu 2a456df846 temp save 2024-05-26 20:40:24 -05:00
Jicheng Lu c49fcc5dcf minor change 2024-05-26 20:09:18 -05:00
Haiping Chen e8656a99c0 Add new user verification code. 2024-05-25 20:34:29 -05:00
Haiping Chen f584c3190f Fix UserService. 2024-05-23 07:05:36 -05:00
Jicheng Lu 948a3981a6 Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/add-user-avatar 2024-05-22 10:39:11 -05:00
Jicheng Lu 9dad9ae80b split file service 2024-05-22 10:39:04 -05:00
C. Oceania 3fd43964b7
Merge branch 'SciSharp:master' into master 2024-05-22 09:47:22 -05:00
C. Oceania e75fd5db12
Merge pull request #469 from yileicn/master
Update TranslationService.cs
2024-05-22 07:22:58 -05:00
易磊 80a60b23eb
Update TranslationService.cs
add using
2024-05-22 20:12:15 +08:00
易磊 6f8c840dcd
Update translation_prompt.liquid
optimize translation prompt
1.Enrich the translation examples.
2.Add necessary validation conditions for "output_count".
2024-05-22 15:08:13 +08:00
易磊 adc6486345
Update TranslationService.cs
hotfix json escaped question
error:
[ERR] [] '<' is not a hex digit following '\u' within a JSON string. The string should be correctly escaped. Path: $.texts[0].text | LineNumber: 0 | BytePositionInLine: 411.

json:
{"input_lang":"English", "output_count":3, "output_lang":"Spanish", "texts":[{"id":1,"text":"Aquí hay un resumen de los horarios que ha indicado que está disponible. Las fechas no están confirmadas. El técnico revisará y se pondrá en contacto para programar.\u003Cp\u003E\u003Cb\u003EJueves, 23 de mayo de 2024\u003C/b\u003E\u003C/br\u003ETodo el día (08:00 AM - 08:00 PM)\u003C/p\u003E\u003Cp\u003E\u003<b>Viernes, 24 de mayo de 2024\u003C/b\u003E\u003C/br\u003EMañana (08:00 AM - 01:00 PM)\u003C/p\u003E\u003Cp\u003E\u003<b>Lunes, 27 de mayo de 2024\u003C/b\u003E\u003C/br\u003ETarde (01:00 PM - 08:00 PM)\u003C/p\u003E"},{"id":2,"text":"Se ve bien"},{"id":3,"text":"Empezar de nuevo"}]}
2024-05-22 14:53:36 +08:00
Jicheng Lu c93511065a refine file storage 2024-05-21 23:33:31 -05:00
Haiping Chen 343f3b91ab Retry language translation. 2024-05-21 22:07:26 -05:00
Jicheng Lu effd44eb7c add agent delete 2024-05-21 15:55:12 -05:00
Haiping Chen 6a0a400500 Fix SSE response format. 2024-05-21 12:02:06 -05:00
Jicheng Lu 02f4cbd6a1 merge with dev 2024-05-21 11:19:06 -05:00
Jicheng Lu 8a8e7d0726 Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/add-http-handler 2024-05-21 10:03:14 -05:00
Haiping Chen 018d889ad3 Add UserCreated hook. 2024-05-21 05:51:38 -05:00
Haiping Chen 2147d69ecf translation improvement. 2024-05-20 21:13:12 -05:00
Jicheng Lu d901fff30f add http handler 2024-05-20 16:50:45 -05:00
hchen2020 a538f9d338
Merge branch 'SciSharp:master' into master 2024-05-20 12:55:59 -05:00
Haiping Chen efdf5a30da Improve translation. 2024-05-20 12:54:38 -05:00
Jicheng Lu b35f0e6536 refine log in 2024-05-20 11:35:45 -05:00
Haiping Chen 57122f7833 Fix llm selection bug. 2024-05-16 16:32:58 -05:00
Jicheng Lu 6625b3ec08 minor change 2024-05-16 12:58:37 -05:00
Jicheng Lu 04e90a3664 rename function 2024-05-16 10:41:59 -05:00
Jicheng Lu ca5407f97c add user role in menu 2024-05-15 17:53:39 -05:00
Jicheng Lu 394d607163 add user role limit 2024-05-15 17:30:45 -05:00
Jicheng Lu 66e233a11c add user role filter 2024-05-15 15:54:08 -05:00
C. Oceania 3bf73bec4a
Update RoutingService.cs 2024-05-15 14:32:59 -05:00
C. Oceania 842f1e788e
Update translation_prompt.liquid 2024-05-15 14:09:38 -05:00
C. Oceania d305e42cac
Merge pull request #454 from iceljc/features/add-fetch-conv-files
add chat files
2024-05-15 07:20:48 -05:00
C. Oceania 151ec1986c
Merge branch 'SciSharp:master' into master 2024-05-14 21:50:21 -05:00
C. Oceania c29e76c184
Update TranslationService.cs 2024-05-14 15:28:24 -05:00
Haiping Chen 535e20ea90 Fix map key. 2024-05-14 14:47:36 -05:00
Haiping Chen ed9e6457fe Fix translation issue. 2024-05-14 13:45:20 -05:00
Jicheng Lu 3d3359cb95 filter by model id and multi-modal 2024-05-14 13:34:10 -05:00
Jicheng Lu 83a78d2b5a add instruct multi modal 2024-05-14 11:51:39 -05:00
Jicheng Lu f3bbb0259f remove test code 2024-05-14 10:14:08 -05:00
Jicheng Lu c2554509ae Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/add-fetch-conv-files 2024-05-13 16:54:18 -05:00
Jicheng Lu f9e63097a9 add chat files 2024-05-13 16:53:41 -05:00
C. Oceania 81d556cf47
Merge branch 'SciSharp:master' into master 2024-05-13 16:02:40 -05:00
C. Oceania 8cdab6b356
Merge branch 'SciSharp:master' into master 2024-05-13 13:16:08 -05:00
Jicheng Lu 8c2b77b45d change name 2024-05-13 11:51:33 -05:00
Jicheng Lu 3b68ef75b6 fix truncate breakpoint 2024-05-13 11:32:11 -05:00
Haiping Chen d12954824b All exclude some states when cleaning states. 2024-05-13 08:58:26 -05:00
Haiping Chen 8e2a97e39f Add UserLanguage to IUserIdentity 2024-05-11 22:22:14 -05:00
Haiping Chen e620d5d161 Not set language if exists. 2024-05-10 21:59:51 -05:00
Haiping Chen 5699842b49 Save payload only when it's not empty. 2024-05-10 18:27:41 -05:00
Haiping Chen 41da7d6627 Remove language detection from router. 2024-05-10 17:48:55 -05:00
Jicheng Lu 8ce51d4f6f fix invoke function 2024-05-10 14:29:46 -05:00
C. Oceania 2fca75d9d8
Merge pull request #449 from iceljc/features/add-agent-template-update
add agent template update endpoint
2024-05-09 17:53:10 -05:00
Jicheng Lu 1360adbb46 add agent template update endpoint 2024-05-09 17:06:03 -05:00
Haiping Chen 76dc9080ad Fix translator. 2024-05-09 15:59:59 -05:00
C. Oceania bdcf8c5a2a
Update TranslationResponseHook.cs 2024-05-09 12:11:30 -05:00
Haiping Chen f97cb0e8a4 Fix translation plugin. 2024-05-09 11:09:21 -05:00
LAPTOP-3CFGGVOS\rabbit b30aa58aa6 optimize translation 2024-05-09 19:42:05 +08:00
Jicheng Lu 0ab2e4d041 unite json serializer 2024-05-08 11:47:21 -05:00
C. Oceania 2a5d0ac4ef
Update ConversationService.SendMessage.cs 2024-05-07 17:23:17 -05:00
Haiping Chen 6554c43dbc Only show playload to AI. 2024-05-07 17:16:07 -05:00
Jicheng Lu c753fd88dd refactor file dialog structure 2024-05-07 15:31:39 -05:00
C. Oceania a67c4ab698
Merge pull request #439 from hchen2020/master
Fallback Agent.
2024-05-07 12:21:42 -05:00
Haiping Chen c0523a118f Fallback Agent. 2024-05-07 12:19:55 -05:00
Jicheng Lu 91093f6a04 add payload 2024-05-07 11:55:44 -05:00
Jicheng Lu 8310fcfacd resolve conflict 2024-05-06 17:35:31 -05:00
Jicheng Lu 2a31af5911 refine file service 2024-05-06 17:31:52 -05:00
Jicheng Lu 8d90b3a7e2 add file controller 2024-05-06 02:59:03 -05:00
Jicheng Lu 67aa9ed0ae refine file storage 2024-05-06 01:51:59 -05:00
Jicheng Lu 2ecc0206aa temp save 2024-05-03 17:24:18 -05:00
Jicheng Lu 2f08a13f05 save file to directory 2024-05-03 14:57:44 -05:00
Haiping Chen c01b21baa9 Downgrade Fluid.Core 2024-05-03 13:53:47 -05:00
Haiping Chen 6ad8a3e076 Fix compile error. 2024-05-03 13:17:14 -05:00
Haiping Chen 2a3e50aabb Merge branch 'master' into anthropic-ai 2024-05-03 11:22:42 -05:00
Haiping Chen 7fb386f176 Anthropic AI 2024-05-02 17:07:12 -05:00
C. Oceania 991582372d
Fix SecondaryContent null issue for FileRepository. 2024-05-02 10:33:23 -05:00
Haiping Chen 0ae2c4ba99 Server-sent Events. 2024-04-30 16:25:58 -05:00
Haiping Chen 1cfa6a8618 DistributedLocker 2024-04-30 07:50:01 -05:00
C. Oceania 7cfe1a1c01
Merge branch 'SciSharp:master' into master 2024-04-26 09:37:22 -05:00
C. Oceania 3ab3bc8652
Merge pull request #430 from hchen2020/master
Fix language detection.
2024-04-25 11:29:41 -05:00
Haiping Chen b43dfbac01 Fix language detection. 2024-04-25 11:27:51 -05:00
Jicheng Lu bb0884e4cc refine type check 2024-04-25 10:58:28 -05:00
C. Oceania 46704e9fa4
Merge branch 'SciSharp:master' into master 2024-04-25 06:46:16 -05:00
Haiping Chen 42b0e37ff3 EntityFrameworkCore 8.2.1 2024-04-24 23:08:46 -05:00
C. Oceania 875821ec6f
Merge pull request #428 from hchen2020/master
Return reason from HasMissingRequiredField.
2024-04-24 16:46:40 -05:00
Haiping Chen ce7b495475 Return reason from HasMissingRequiredField. 2024-04-24 16:45:18 -05:00
Jicheng Lu 349cc7e44b minor change 2024-04-23 23:47:38 -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
Jicheng Lu ba854c2dec minor change 2024-04-23 11:27:20 -05:00
Jicheng Lu 9381fa951d add translate service 2024-04-23 11:25:05 -05:00
Jicheng Lu 0161987b4d Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/add-translation 2024-04-23 10:52:40 -05:00
C. Oceania b37c72f339
Merge pull request #419 from sylviachency/patch-1
Update agent.json
2024-04-23 04:28:05 -05:00
sylviachency bac6888934
Update agent.json 2024-04-23 00:19:34 -05:00
sylviachency b8baf14d63
Update instruction.liquid 2024-04-23 00:17:06 -05:00
sylviachency d54eb271b3
Update instruction.liquid 2024-04-23 00:16:43 -05:00
C. Oceania c073937682
Merge branch 'SciSharp:master' into master 2024-04-22 18:52:13 -05:00
Haiping Chen 9d1525837b Merge branch 'master' into human_agent 2024-04-22 15:47:35 -05:00
Haiping Chen 4307d7711d Refactor human intervention needed. 2024-04-22 15:46:47 -05:00
Jicheng Lu f09c22b90c temp save 2024-04-22 14:29:21 -05:00
Jicheng Lu 72c0f06d93 minor change 2024-04-18 16:40:50 -05:00
Jicheng Lu 970bc4d028 add secondary content 2024-04-18 16:34:18 -05:00
Jicheng Lu 59958bcf8b refine json 2024-04-18 13:54:43 -05:00
Jicheng Lu 8af7466ecf use value kind 2024-04-16 14:48:55 -05:00
Jicheng Lu 46fdf455ee refine save state by args 2024-04-16 14:31:51 -05:00
Haiping Chen 70b3e96c0a Click element by position. 2024-04-15 23:48:22 -05:00
Jicheng Lu 668df3e1ba fix file serialization 2024-04-13 10:23:20 -05:00
Jicheng Lu e319992206 add repository enum 2024-04-12 10:00:55 -05:00
sylviachency a7cfa002ed
Merge branch 'SciSharp:master' into master 2024-04-11 16:00:40 -05:00
sylviachency d7524162d8
Update planner_prompt.naive.liquid
address transfer to person issue
2024-04-11 12:43:43 -05:00
sylviachency 4aa5b92b92
Update HumanInterventionNeededHandler.cs
address transfer to person issue
2024-04-11 12:41:48 -05:00
Jicheng Lu 2af4102b65 add log in agent refresh 2024-04-11 10:19:57 -05:00
Jicheng Lu e4e3ee5668 minor change 2024-04-11 02:04:54 -05:00
Jicheng Lu 32a084289e refine agent refresh 2024-04-11 02:00:17 -05:00
C. Oceania 5564287871
Agent Name is contaminated. 2024-04-10 15:02:19 -05:00
Jicheng Lu 84220a8a71 minor change 2024-04-10 12:49:12 -05:00
Jicheng Lu cb812171e6 revert code 2024-04-10 12:47:51 -05:00
Jicheng Lu 4dff5356e6 Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/add-visible-property 2024-04-10 12:45:42 -05:00
Jicheng Lu 45fd30aaf8 add readonly load state 2024-04-10 12:45:35 -05:00
jli238 90c0ef014d
Update args definition for router agent
Update args definition for router agent, to provide a more stable args response output from agent. Tested solid on GPT Playground.
2024-04-09 16:17:55 -05:00
Jicheng Lu ed729bf18d minor change 2024-04-09 16:00:53 -05:00
Jicheng Lu f6cf392267 add visible property 2024-04-09 15:52:21 -05:00
Jicheng Lu 4723c64e3c clean code 2024-04-08 09:58:25 -05:00
Haiping Chen ca262e7ec3 ConversationBreakpoint.Reason 2024-04-07 22:15:51 -05:00
Jicheng Lu 76de65e8f5 clean code 2024-04-07 13:38:56 -05:00
Jicheng Lu 8fd6f6a99e add hook 2024-04-07 13:37:16 -05:00
Haiping Chen 7c061af7f5 ConversationStorage.Append 2024-04-06 22:24:55 -05:00
Haiping Chen 491452ece1 Restore Append 2024-04-06 19:00:58 -05:00
Haiping Chen 3c968bd068 PostbackFunctionName 2024-04-06 18:33:49 -05:00
Haiping Chen b7c80cf11b Upgrade EntityFrameworkCore.BootKit 2024-04-04 21:43:13 -05:00
Jicheng Lu 575d298401 enable agent id 2024-04-04 19:14:09 -05:00
Jicheng Lu a432e3ca9e enable plugin by dependency 2024-04-04 17:41:52 -05:00
Jicheng Lu d2d28be378 optimize state 2024-04-03 12:12:31 -05:00
Haiping Chen 551c2f8ed4 check field type in routing. 2024-04-03 09:47:32 -05:00
C. Oceania 3b248c3d6b
Merge pull request #387 from iceljc/features/refine-conv-states
Features/refine conv states
2024-04-02 22:21:41 -05:00
Haiping Chen fcb761976b Handle output routing exception. 2024-04-02 17:27:36 -05:00
Jicheng Lu 40bafdc327 add readonly 2024-04-02 15:39:14 -05:00
Jicheng Lu da42be0477 minor change 2024-04-02 14:24:04 -05:00
Jicheng Lu 8168b22707 refine element button 2024-04-02 14:09:42 -05:00
Jicheng Lu 7ae9e3ef60 refine states 2024-04-02 11:38:18 -05:00
C. Oceania 6f93347b08
Merge pull request #385 from iceljc/features/refine-json-converter
refine json converter
2024-04-02 06:02:14 -05:00
Jicheng Lu 1f80192bf3 refine json converter 2024-04-01 22:33:42 -05:00
Haiping Chen 601b64b50a Prevent duplicate record to be inserted 2024-04-01 21:10:21 -05:00
Jicheng Lu a649b658e4 add agent queue changed event 2024-03-31 23:55:13 -05:00
Haiping Chen f1999f32e7 GetProviders only when the setting has value. 2024-03-31 16:54:22 -05:00
Haiping Chen f5eaa716ea Add featuer of VisibilityExpression 2024-03-31 14:28:16 -05:00
Haiping Chen 15291fa6f0 Fix OnRoutingInstructionRevised 2024-03-31 11:12:20 -05:00
C. Oceania a245d71ca7
Merge pull request #381 from iceljc/features/refine-state-change
add active round log
2024-03-31 07:27:29 -05:00
Jicheng Lu f61ee50014 add active round log 2024-03-30 22:43:45 -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 48cae89ac7 OnConversationEnding 2024-03-29 19:51:22 -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
Jicheng Lu fc7a82de01 refine state node 2024-03-29 16:37:35 -05:00
Jicheng Lu fd96a38818 refine state node 2024-03-29 16:01:13 -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 25a4ec3949 Merge branch 'master' of https://github.com/hchen2020/BotSharp 2024-03-28 14:10:07 -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
Jicheng Lu bd7d3ffafa add state change event 2024-03-28 13:16:16 -05:00
Jicheng Lu 78ef7b6c37 refine rc options 2024-03-28 10:32:09 -05:00
Jicheng Lu 364414fdcf fix cur message id 2024-03-27 22:21:34 -05:00
C. Oceania 777c10a426
Merge pull request #368 from iceljc/features/refine-breakpoint
add active rounds to state
2024-03-27 14:15:29 -05:00
Jicheng Lu 55480a97ea add active rounds to state 2024-03-27 13:50:27 -05:00
Haiping Chen 280330bd33 Not trigger if replyMessage.FunctionName is empty. 2024-03-27 11:19:13 -05:00
C. Oceania de2f4ee5b1
Merge pull request #365 from iceljc/features/refine-breakpoint
refine state
2024-03-27 06:49:38 -05:00
Haiping Chen ac6ad99975 GetAgent perInstanceCache 2024-03-26 19:26:11 -05:00
Jicheng Lu 50d1c43cf0 minor change 2024-03-26 17:09:49 -05:00
Jicheng Lu d572f90502 refine state 2024-03-26 16:57:13 -05:00
C. Oceania 747eb2dc2c
Clone message when received 2024-03-26 14:19:56 -05:00
Jicheng Lu fc74da3eb0 Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-breakpoint 2024-03-26 12:40:39 -05:00
Jicheng Lu 1ee3c4eb14 add breakpoint 2024-03-26 12:10:34 -05:00
Haiping Chen 691c3b2654 Delay persisting message to allow message content to be changed in hook. 2024-03-26 11:10:27 -05:00
C. Oceania d33bd37615
Merge pull request #361 from iceljc/features/refine-conversation-functionality
Features/refine conversation functionality
2024-03-25 17:31:54 -05:00
Jicheng Lu a918b88937 refine background service 2024-03-25 17:29:08 -05:00