Commit graph

1606 commits

Author SHA1 Message Date
Jicheng Lu a6e9f1de5a Merge branch 'master' of https://github.com/SciSharp/BotSharp into test/google-realtime 2025-05-19 14:54:58 -05:00
Jicheng Lu 82b831d406 add session reconnect 2025-05-19 14:54:40 -05:00
Haiping a6b11f0207
Merge pull request #1057 from iceljc/test/google-realtime
Test/google realtime
2025-05-19 10:01:13 -05:00
Haiping 968bac623d
Update RoutingService.InstructLoop.cs
hotfix GetNextStepPrompt error(can't find naive reasoner template)
2025-05-19 09:48:16 -05:00
nick.yi 278b36785e hotfix GetNextStepPrompt error(can't find naive reasoner template) 2025-05-19 17:49:40 +08:00
Jicheng Lu a4d4f28bc0 resolve conflict 2025-05-15 23:21:01 -05:00
Jicheng Lu d5d03834f1 minor change 2025-05-15 23:02:38 -05:00
Jicheng Lu 0c2ba423d8 refine 2025-05-15 22:59:57 -05:00
nick.yi d10f0a635a hotfix error 2025-05-16 09:32:05 +08:00
nick.yi b17eb86220 fix merge conflict 2025-05-16 09:25:23 +08:00
nick.yi 37f860d897 optimize hook 2025-05-16 09:19:55 +08:00
Jicheng Lu 350c479486 sync and refine 2025-05-15 17:46:36 -05:00
Jicheng Lu 37bef7b8c6 Merge branch 'master' of https://github.com/SciSharp/BotSharp into test/google-realtime 2025-05-15 15:47:06 -05:00
Jicheng Lu b64f22ef8e temp save 2025-05-15 15:46:42 -05:00
Haiping a2fdc769a9
Merge pull request #1044 from SciSharp/mcpdummytools
Refactor InvokeFunction code
2025-05-15 10:52:26 -05:00
nick.yi 9cdf9179c0 optimize hook 2025-05-15 15:25:08 +08:00
Jicheng Lu 4c4dce852d minor change 2025-05-14 23:54:18 -05:00
Jicheng Lu bc40deed54 tool call done; to do session restart 2025-05-14 23:49:36 -05:00
nick.yi b748ce3d9f optimize AgentHook,IInstructHook 2025-05-15 10:48:08 +08:00
Jicheng Lu 04eafedb78 refine transcription 2025-05-14 18:14:01 -05:00
Jicheng Lu da9c3c6ab0 temp save 2025-05-13 15:43:08 -05:00
Jicheng Lu c837dd6611 temp save 2025-05-13 11:45:19 -05:00
geffzhang 1defef62e8 Merge branch 'master' into mcpdummytools 2025-05-11 15:21:49 +08:00
Haiping 872b57fa80
Merge pull request #1050 from iceljc/features/refine-global-stats
refine global stats
2025-05-08 14:03:33 -05:00
Jicheng Lu 0a8519559e refine global stats schema 2025-05-08 11:30:40 -05:00
Jicheng Lu 6141643401 refine global stats 2025-05-08 00:19:19 -05:00
Jicheng Lu 363c9be56b minor change 2025-05-07 22:14:05 -05:00
Jicheng Lu 5c5c643856 resolve conflict 2025-05-07 16:38:55 -05:00
Jicheng Lu e35fbc7439 refine 2025-05-07 16:34:39 -05:00
Haiping Chen 36a387eb3e Avoid duplicated utility templates. 2025-05-07 14:31:53 -05:00
nick.yi 46ad042d32 fix conflict 2025-05-07 09:54:24 +08:00
Haiping Chen cf4ea9cc64 resolve conflict. 2025-05-06 20:39:52 -05:00
Jicheng Lu 684805cada minor change 2025-05-05 16:55:50 -05:00
Haiping Chen 97115c6496 Fix InstructLoop 2025-05-05 10:10:32 -05:00
Haiping Chen 3960381b7f Merge branch 'master' into routing-function-refactor-1 2025-05-05 09:12:14 -05:00
Jicheng Lu 1762675cb0 revert 2025-05-04 23:20:52 -05:00
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