Commit graph

1570 commits

Author SHA1 Message Date
Haiping Chen 5ff7079470 Optimize InstructLoop 2025-05-02 20:02:37 -05:00
Jicheng Lu d703477b4b refine error and warn logging 2025-05-02 11:31:28 -05:00
geffzhang 5087b46e66 rename MCPFunctionExecutor 2025-05-01 17:14:02 +08:00
geffzhang 927184efee Refactor InvokeFunction code
Refactor the InvokeFunction code by categorizing the dummy function, function callback, and MCP tool invocation logic into three distinct  classes
2025-05-01 16:47:16 +08:00
Jicheng Lu c1004df986 Merge branch 'master' of https://github.com/SciSharp/BotSharp into test/realtime-chat 2025-04-30 15:00:08 -05:00
Jack 91dda91ee1
Update AgentService.GetAgents.cs
fix can't find agent issue
2025-04-30 17:13:53 +08:00
Jack ba827378f0
Update AgentService.GetAgents.cs
can't not find agent throw exception
2025-04-30 15:51:09 +08:00
nick.yi d5148cb811 optimize HooKEmitter 2025-04-29 14:08:08 +08:00
nick.yi 34658d4468 GetConversations() add channelId query condition 2025-04-29 13:35:48 +08:00
Jicheng Lu d05fa40bb7 add agent links 2025-04-28 14:53:32 -05:00
Haiping Chen 4298e466db remove output format 2025-04-27 16:25:46 -05:00
Haiping Chen 6fa6aa180d Deprecate routing handler. 2025-04-26 13:05:15 -05:00
Jicheng Lu 13ed40b3cc revert 2025-04-25 14:00:33 -05:00
Jicheng Lu 8de7e699a7 resolve conflict 2025-04-25 13:48:42 -05:00
Jicheng Lu de12724371 temp save 2025-04-24 17:52:58 -05:00
Haiping Chen fe82939733 response_to_user 2025-04-23 23:10:07 -05:00
Jicheng Lu 3ab3edd52a Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refactor-llm-cost 2025-04-21 11:19:59 -05:00
Jicheng Lu fd89a995d1 refactor llm cost 2025-04-21 11:19:56 -05:00
nick.yi 1fc3e1b9d0 optimize naming, ConfigureAwait 2025-04-21 20:05:36 +08:00
Haiping Chen 948b0bb337 Add agent routing mode 2025-04-20 21:18:56 -05:00
Haiping Chen a791600c40 Allow hook to intercept function. 2025-04-20 18:24:13 -05:00
Haiping Chen 8131f7f47b Remove unnecessary agent load 2025-04-18 20:44:42 -05:00
Haiping Chen 7b5c889068 ResponseDoneStatusDetail 2025-04-18 16:34:46 -05:00
Haiping 532c8da6e8
Disable load agent cache 2025-04-16 16:17:34 -05:00
Haiping e017c21dd3
rollback set conversation id 2025-04-16 15:35:42 -05:00
Haiping 7fe2f0c3a3
Set _conversationId 2025-04-16 14:26:32 -05:00
Jicheng Lu 98e0142fc3 fix to string 2025-04-15 17:58:33 -05:00
Jicheng Lu 71ea333eae merge code 2025-04-14 14:45:33 -05:00
Haiping Chen 4d64b06570 Change to modelType when getting realtime model. 2025-04-02 12:02:02 -05:00
Haiping Chen 8cbd82a0ff optimize twilio 2025-04-02 10:35:03 -05:00
Jicheng Lu 530e01c5d8 refine mcp settings 2025-04-01 10:24:48 -05:00
Jicheng Lu c84410b823 fix file selection 2025-03-31 21:21:45 -05:00
Jicheng Lu adfb8f4fc4 fix startup and use camel case 2025-03-31 20:59:19 -05:00
Jicheng Lu 74476030e1 refine mcp 2025-03-31 16:43:42 -05:00
Jicheng Lu 5eca6b484f refine instruction 2025-03-31 15:16:46 -05:00
geffzhang 1a1f56fdc6
Merge branch 'master' into mcp 2025-03-22 10:07:35 +08:00
geffzhang 994da497a4
Merge branch 'SciSharp:master' into master 2025-03-22 10:03:16 +08:00
Haiping Chen 2d710d4f50 Merge branch 'master' of https://github.com/hchen2020/BotSharp 2025-03-21 19:29:38 -05:00
Haiping Chen 21aab66826 IAudioSynthesis 2025-03-21 19:28:22 -05:00
Jicheng Lu bdc1529686 minor change 2025-03-21 17:34:00 -05:00
Jicheng Lu ba12125a1e add additional llm cost 2025-03-21 17:32:29 -05:00
Jicheng Lu c3e0270c10 Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/call-dummy-func 2025-03-21 14:38:33 -05:00
Haiping Chen e506fda585 Merge branch 'master' of https://github.com/hchen2020/BotSharp 2025-03-21 09:20:46 -05:00
nick.yi e310084db2 realtime model not suppot v1/chat/completions 2025-03-21 17:03:23 +08:00
nick.yi afe9d27e99 realtime model not suppot v1/chat/completions 2025-03-21 16:56:25 +08:00
geffzhang 7a9d7ffc75 feat:switch official sdk ModelContextProtocol
mcpdotnet now is mcp offical sdk
2025-03-21 13:14:19 +08:00
Haiping Chen f392b7f326 WaitingForAiResponse 2025-03-20 17:54:49 -05:00
Jicheng Lu cbd5185f51 minor change 2025-03-18 23:32:06 -05:00
Jicheng Lu eb078d121b Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/call-dummy-func 2025-03-18 09:32:49 -05:00
Haiping Chen a80ecd9bb4 Fix PizzaBot compile issue. 2025-03-17 20:30:15 -05:00
Jicheng Lu f562152b78 add instruct hooks 2025-03-17 17:02:24 -05:00
Jicheng Lu fe63875315 minor change 2025-03-17 14:26:39 -05:00
Jicheng Lu bcadc7e940 add execute template utility 2025-03-17 14:13:31 -05:00
geffzhang 213d39349e Merge branch 'mcp' of https://github.com/Ai4c-AI/BotSharp 2025-03-17 07:50:35 +08:00
Jicheng Lu 5d4dcc3e13 refine state loading 2025-03-14 17:04:54 -05:00
Jicheng Lu 995b71e145 call dummy func 2025-03-14 11:13:13 -05:00
Jicheng Lu f4cc8f41fa refine update conv tags 2025-03-13 15:36:14 -05:00
Jicheng Lu 9a8f559785 temp save 2025-03-13 13:06:00 -05:00
Jicheng Lu 85cf382adc refine chat log 2025-03-12 10:13:57 -05:00
Jicheng Lu 25a9c77cdd refine agent task 2025-03-10 17:03:23 -05:00
Jicheng Lu 9f71816177 refine state key search 2025-03-10 12:14:44 -05:00
Jicheng Lu eb81ad212a add instruction log setting and state search 2025-03-09 22:21:34 -05:00
iceljc 8fd5ac1315
Merge pull request #918 from iceljc/master
refine instruction log
2025-03-06 17:02:26 -06:00
Jicheng Lu 1275053d66 migrate conv latest states 2025-03-06 16:46:38 -06:00
Haiping Chen c8a565f585 Seperate realtime in a new project 2025-03-06 12:01:43 -06:00
Jicheng Lu c4d2f5b026 relocate 2025-03-06 11:31:53 -06:00
Jicheng Lu ae84088b5f refine instruction log 2025-03-06 11:11:45 -06:00
nick.yi af01567fae hotfix duplicate welcome message 2025-03-06 20:23:40 +08:00
nick.yi 5d10f3d305 optimize RealTime 2025-03-06 17:03:30 +08:00
Jicheng Lu 6ed0afe439 Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/add-latest-state 2025-03-05 17:23:28 -06:00
Jicheng Lu 366e1339c6 refactor instruction 2025-03-05 17:22:46 -06:00
Haiping Chen 89fc99f4e1 prevent initial response interruption 2025-03-05 16:57:58 -06:00
Haiping Chen 9c50824369 Support DTMF in realtime 2025-03-05 16:57:34 -06:00
Haiping Chen d69f19bd41 refactor realtime code. 2025-03-05 12:29:28 -06:00
Haiping a205b9b407
Merge pull request #912 from kerryjiang/centralpackversion
Use ManagePackageVersionsCentrally for more projects
2025-03-05 08:13:18 -06:00
nick.yi d78c77141b 1.hotfix timestamp,mark and interruption handling
2.Hotfix message persistence
2025-03-05 21:48:06 +08:00
Jicheng Lu 263ec44517 refine 2025-03-04 23:25:12 -06:00
Jicheng Lu e0fffe191c add latest state 2025-03-04 17:25:35 -06:00
Haiping Chen b4862837da Mak initial audio is not interruptable 2025-03-03 15:30:06 -06:00
geffzhang 8b467891fc
Merge branch 'master' into mcp 2025-03-03 07:28:24 +08:00
Kerry Jiang c0a15f87e3 remove ManagePackageVersionsCentrally from individual projects and add it in Directory.Packages.props 2025-03-01 19:57:50 -08:00
Haiping Chen c096b63656 Output input audio transcript. 2025-02-28 20:42:03 -06:00
Haiping Chen e3036ef3ba add welcome for realtime 2025-02-28 18:19:44 -06:00
Jicheng Lu 235d972ca1 remove data 2025-02-28 16:47:03 -06:00
Jicheng Lu 64831f5b3a minor change 2025-02-28 15:35:46 -06:00
Jicheng Lu ac76a08524 Merge branch 'master' of https://github.com/SciSharp/BotSharp 2025-02-28 15:35:00 -06:00
Jicheng Lu 2851851657 refine lock key 2025-02-28 15:34:53 -06:00
hchen2020 284c588df3
Merge branch 'SciSharp:master' into master 2025-02-28 15:27:40 -06:00
Haiping Chen 606026130a rollback reset states 2025-02-28 15:26:45 -06:00
iceljc 5c90f2cd8a
Merge pull request #905 from iceljc/master
add agent id in resource key
2025-02-28 13:03:44 -06:00
Haiping Chen 265d439938 Merge branch 'master' of https://github.com/hchen2020/BotSharp 2025-02-28 12:45:13 -06:00
Haiping Chen 14b6d41ce5 OnSessionUpdated log 2025-02-28 12:44:59 -06:00
Jicheng Lu 152811cc72 add agent id in resource key 2025-02-28 10:00:58 -06:00
Haiping 2ab73ead56
Update agent.json 2025-02-28 09:51:48 -06:00
Haiping Chen a15821061f Upgrade package 2025-02-27 21:19:20 -06:00
Haiping Chen 9d570311d1 realtime route to agent 2025-02-26 22:40:50 -06:00
geffzhang ffcb1e3b52 feat : test pizza with mcp 2025-02-27 12:39:07 +08:00
Haiping Chen 1468c01f46 Remove call_sid from function util-twilio-hangup_phone_call 2025-02-26 13:16:57 -06:00
Haiping Chen 20563d28f5 Merge branch 'master' into routing-utility 2025-02-26 11:52:41 -06:00
Haiping Chen e68f245f2a Add Twilio HangupPhoneCallFn 2025-02-26 11:41:52 -06:00
Jicheng Lu 2428349247 remove limit 2025-02-25 19:50:11 -06:00
geffzhang cca509dbcb
Merge branch 'mcp' into mergecode 2025-02-26 07:05:47 +08:00
geffzhang 69993bdca8 feat:Migrate MCP to the independent BotSharp.MCP package 2025-02-25 22:57:22 +08:00
Haiping Chen 51d933e3db lazy routing (WIP) 2025-02-24 22:35:22 -06:00
geffzhang 731355d110 feat: Rename Agent Context Protocols 2025-02-24 09:04:44 +08:00
geffzhang 9b662168ff feat : Agent add mcp property 2025-02-23 22:55:35 +08:00
Jicheng Lu ed8b3aa717 add llm configs 2025-02-21 11:37:36 -06:00
Jicheng Lu 37aa85af36 refine chat instruction 2025-02-20 22:52:02 -06:00
Jicheng Lu 816abe9310 clean execution log 2025-02-20 11:59:59 -06:00
Jicheng Lu 8048524a31 refine state 2025-02-20 11:26:49 -06:00
Haiping Chen 6bd2af4151 Remove IConversationSideCar dependency 2025-02-20 09:33:47 -06:00
Jicheng Lu 48967e2910 merge with upstream 2025-02-19 13:58:13 -06:00
Jicheng Lu a3344c6caf refine 2025-02-19 12:20:35 -06:00
Jicheng Lu fcb07becdc Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-agent-call-stats 2025-02-19 10:26:35 -06:00
iceljc 29c8b023b5
Merge pull request #884 from zfchai/style-MongoDbContext
Code style adjustment and partial optimization
2025-02-19 10:26:23 -06:00
Jicheng Lu 25502b3dcb Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-agent-call-stats 2025-02-19 10:11:52 -06:00
Jicheng Lu 448d9a2a53 disable state load and save in sidecar 2025-02-18 13:25:51 -06:00
Jicheng Lu eee93541ec store dialog data 2025-02-17 11:56:53 -06:00
Jicheng Lu ad7d9a128d reso 2025-02-15 19:32:53 -06:00
Jicheng Lu 172e316c31 refine conv state key search 2025-02-14 11:19:39 -06:00
chait d824d16e69 [style] Code style adjustment. 2025-02-14 18:29:51 +08:00
Jicheng Lu 115477f3ea add agent id as ref 2025-02-13 12:06:15 -06:00
chait ccd7c23da9 [update] Non empty code style constraint (default value constraint), change CreateTime to CreatedTime. 2025-02-13 11:42:16 +08:00
chait 513007b7ce [update] Non empty code style constraint (default value constraint), unified optimization of the CreatedTime field and MongoDBContext methods; 2025-02-13 11:25:32 +08:00
hchen2020 6894349b63
Merge branch 'SciSharp:master' into master 2025-02-12 09:08:47 -06:00
Jicheng Lu 00c8e8cc46 rename and add cache 2025-02-11 19:16:49 -06:00
Haiping Chen fd08718831 Merge branch 'master' of https://github.com/hchen2020/BotSharp 2025-02-11 17:27:19 -06:00
Haiping Chen 572205d628 onInputAudioTranscriptionCompleted 2025-02-11 17:27:07 -06:00
hchen2020 4a61d61615
Merge branch 'SciSharp:master' into master 2025-02-11 17:26:39 -06:00
Jicheng Lu 96b23e4244 sort 2025-02-11 15:16:54 -06:00
Jicheng Lu f423a40f53 refine state search 2025-02-11 14:27:53 -06:00
Haiping Chen 65c2c0f893 message.Role = clonedMessage.Role 2025-02-10 21:51:45 -06:00
Haiping Chen bbc2325ddc realtime outbound call 2025-02-10 17:28:03 -06:00
Haiping Chen 2c41ddc042 realtime function call output 2025-02-10 15:52:10 -06:00
Haiping Chen d9480fb0d3 RealtimeHub & Tool use 2025-02-09 17:31:46 -06:00
Haiping Chen 738d87de53 IRealtimeHub 2025-02-07 16:40:57 -06:00
Haiping Chen e45c6c0287 init conversation for stream 2025-02-07 13:41:20 -06:00
Jicheng Lu 9b9c58845c add cpvm 2025-02-06 13:33:16 -06:00
iceljc 1c7cbbdcf5
Revert "Centralized package version for some projects" 2025-02-06 13:15:36 -06:00
iceljc 9d1767c4c4
Merge pull request #860 from kerryjiang/centralpackversion
Centralized package version for some projects
2025-02-06 10:10:31 -06:00
Haiping 641e9dd974
Merge branch 'master' into master 2025-02-05 18:56:23 -06:00
Jicheng Lu e208d1d8ff refine global stats 2025-02-04 15:32:26 -06:00
Jicheng Lu 034846bf02 refine statistics 2025-02-03 20:16:01 -06:00
Jicheng Lu 00fc065233 revert 2025-02-03 18:02:31 -06:00
Jicheng Lu 16bea297fc add routing dialogs 2025-02-03 15:12:36 -06:00
Jicheng Lu 377c4e42c8 fix 2025-02-03 13:03:21 -06:00
Haiping Chen 3f33182cf8 realtime test 2025-02-03 04:02:36 +00:00
Kerry Jiang 6fb7c14685 centralized package version for some projects 2025-02-01 13:31:32 -08:00
Jicheng Lu d6ebf80a7b fix dashboard 2025-01-31 14:49:38 -06:00
Jicheng Lu 169cb95e62 refine 2025-01-30 15:58:57 -06:00
Jicheng Lu d34284eddf Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-agent-filter 2025-01-30 11:15:00 -06:00
Jicheng Lu 4d7a9c6aee refine agent filter 2025-01-30 11:14:52 -06:00
Haiping Chen 166988c41f Refactor Agemt Task 2025-01-30 11:10:15 -06:00
Jicheng Lu 80df2555fe fix cost calculation 2025-01-29 14:07:51 -06:00
Haiping Chen aef830deba remove redis dependency from CrontabEventSubscription 2025-01-29 06:45:49 -06:00
Jicheng Lu ae8796e8c5 relocate 2025-01-28 23:37:06 -06:00
hchen2020 97b6cd24d3
Merge branch 'SciSharp:master' into master 2025-01-28 17:02:01 -06:00
Haiping Chen 85d3275b9c Allow append states in RuleTrigger. 2025-01-28 17:00:08 -06:00
Jicheng Lu db8afebc5c refine global stats 2025-01-28 16:46:59 -06:00
Jicheng Lu dac15cee26 rename 2025-01-28 10:56:45 -06:00
Haiping 8d8284f5c4
Merge branch 'SciSharp:master' into master 2025-01-28 21:35:32 +08:00
Haiping c2f4de14fe
Merge pull request #844 from hchen2020/master
Support distributed crontab workers
2025-01-28 21:34:29 +08:00
Jicheng Lu 453d4bc38f refine global stats 2025-01-27 23:10:37 -06:00
Jicheng Lu a8fa46eff5 add deep seek 2025-01-27 18:23:33 -06:00
hchen2020 7585e35749
Merge branch 'SciSharp:master' into master 2025-01-27 08:40:27 -06:00
Haiping 4da1b90c07
Merge branch 'SciSharp:master' into master 2025-01-26 21:07:37 -06:00
Haiping Chen 7bae527025 Move StatisticsSettings to agent 2025-01-27 11:06:11 +08:00
Haiping 7113eafb33
Merge branch 'SciSharp:master' into master 2025-01-26 10:15:05 -06:00
hchen2020 24a6031de5
Merge branch 'SciSharp:master' into master 2025-01-24 16:04:01 -06:00
Haiping Chen fc8d8d92b2 Support distributed crontab workers. 2025-01-24 15:50:28 -06:00
Jicheng Lu 66e77a0078 refine 2025-01-24 15:22:23 -06:00
Jicheng Lu 7e38b4a9b5 clean inner agents after update 2025-01-24 13:56:15 -06:00
Jicheng Lu 3e45a6f6dc refine 2025-01-24 13:42:17 -06:00
Jicheng Lu 3e2d7dda42 add global stats 2025-01-23 23:45:43 -06:00
Haiping 7af0261a82
Merge pull request #70 from Qtoss-AI/hdongDev
Fix userName can't login in email type.
2025-01-23 08:23:35 -06:00
Haiping 3459c963af
Merge branch 'SciSharp:master' into master 2025-01-23 08:21:41 -06:00
nick.yi 1462309693 optimize RedisCache 2025-01-23 09:48:45 +08:00
Haiping Chen 920e9d0341 #838 2025-01-22 10:00:20 -06:00
nick.yi 4a68bca981 remove Aspects.Cache 2025-01-22 21:47:16 +08:00
YouWeiDH 136f7eab67 hdong: roll back type user and remain new logic. 2025-01-22 18:53:10 +08:00
nick.yi 6d21ba2c0a Replace CacheCache with SharpCache 2025-01-22 13:47:32 +08:00
nick.yi 84e4b4bf0d refactor cache add perInstanceCache 2025-01-22 11:17:38 +08:00
nick.yi e72a1f1613 refactor cache 2025-01-21 22:43:38 +08:00
YouWeiDH 9ea04ecd78 hdong:fix default source. 2025-01-21 20:25:23 +08:00
YouWeiDH 931c738f06 Fix userName can't login in email type. 2025-01-21 14:52:03 +08:00
YouWeiDH d48dd07eeb hdong: add search user logic. 2025-01-20 19:44:33 +08:00
Haiping fe381066a5
Merge branch 'SciSharp:master' into master 2025-01-17 18:50:47 -06:00
Haiping Chen 5f0f4f7276 Fix compile issue. 2025-01-17 15:23:17 +00:00
Haiping a0935627a6
Merge branch 'SciSharp:master' into master 2025-01-16 19:48:29 -06:00
YouWeiDH e17d8525bf hdong: split event to update verification code and send. 2025-01-15 19:13:04 +08:00
YouWeiDH 30dfcda15e Merge branch 'master' into hdongDev 2025-01-14 19:35:17 +08:00
YouWeiDH 43cf8743b5 hdong: clean up code. 2025-01-14 19:34:34 +08:00
hchen2020 da402f5eb0
Merge branch 'SciSharp:master' into master 2025-01-13 11:21:17 -06:00
Haiping 0e9dd8a85e
Merge pull request #66 from Qtoss-AI/hdongDev
hdong: add simple login API for new login type.
2025-01-13 09:15:35 -06:00
Haiping 7df494dc67
Merge branch 'SciSharp:master' into master 2025-01-13 09:13:50 -06:00
YouWeiDH 3f64f36753 hdong: add simple login API for new login type. 2025-01-13 20:17:28 +08:00
Jicheng Lu 6e9f2c93e4 add conv append 2025-01-13 01:14:36 -06:00
Jicheng Lu c5c2117fd0 refine idle conv 2025-01-10 12:58:16 -06:00
Haiping Chen fb58ac3c46 Undo LoadAgent cache 2025-01-09 16:34:21 -06:00
Haiping Chen a6ed69c355 Generate Indication from LLM 2025-01-09 16:30:25 -06:00