Vitali sharp8n
58c85b8dfd
parallel toolcalls
2026-09-29 08:50:29 +03:00
Vitali sharp8n
ce08fc132b
fix(DeepSeekAI): capture and echo reasoning_content for thinking mode tool calls
...
DeepSeek thinking mode (deepseek-v4-flash/pro with reasoning enabled) returns
reasoning_content in every delta. For requests carrying tools, the reasoning_content
of previous assistant messages MUST be passed back in all subsequent requests,
otherwise DeepSeek answers 400 'The reasoning_content ... must be passed back'.
Changes:
- Bump OpenAI SDK 2.5.0 -> 2.12.0 (JsonPatch public API required to read/write
the unknown reasoning_content property; 2.5.0 only stores it internally).
- Fix BotSharp.Plugin.OpenAI image quality enum names for SDK 2.12
(GeneratedImageQuality.Low -> LowQuality, Medium -> MediumQuality).
- Add RoleDialogModel.ReasoningContent (serialized as reasoning_content) and
persist it through DialogElement/DialogMetaData/ConversationStorage.
- DeepSeekAI ChatCompletionProvider:
* capture reasoning_content from non-streaming responses (ExtractReasoningContent)
* capture per-delta reasoning_content in the streaming loop and accumulate it
* set ReasoningContent on assistant/function response messages
* echo reasoning_content back via AssistantChatMessage JsonPatch in PrepareOptions
- RoutingService.InvokeAgent: copy response.ReasoningContent onto the stored
Function/Assistant dialog so the echo survives the tool-call round trip.
2026-09-09 11:06:12 +03:00
Jicheng Lu
96262c35d2
add CodeScript in ProgramCodeTemplateMessage
2025-10-13 11:53:36 -05:00
Jicheng Lu
77a79d9957
fix role content
2025-10-12 22:47:11 -05:00
nick.yi
d91b0a3f63
optimize RoleContent
2025-10-13 10:49:56 +08:00
Jicheng Lu
b99d0b4ece
use role content
2025-09-30 11:16:53 -05:00
Jicheng Lu
57bd04bf7b
refine file handling
2025-09-16 19:20:53 -05:00
Jicheng Lu
98291a5e49
refine multi modal instruct
2025-09-12 11:30:41 -05:00
Jicheng Lu
7ea8d84f74
add message label
2025-09-08 14:29:08 -05:00
Jicheng Lu
4bade23f31
refine naming
2025-09-05 01:49:14 -05:00
Jicheng Lu
8778a5f8ed
1. refine chart handler instruction
...
2. add mechanism to allow sending multiple messages in a single round
2025-09-05 01:17:18 -05:00
Jicheng Lu
62e82afb81
init web search
2025-08-19 13:37:34 -05:00
Jicheng Lu
7d3579c1ec
refine message hub
2025-07-29 13:55:53 -05:00
Jicheng Lu
7008667a1a
support invoke function
2025-06-23 21:43:25 -05:00
Haiping Chen
a791600c40
Allow hook to intercept function.
2025-04-20 18:24:13 -05:00
Jicheng Lu
366e1339c6
refactor instruction
2025-03-05 17:22:46 -06:00
Haiping Chen
a6ed69c355
Generate Indication from LLM
2025-01-09 16:30:25 -06:00
Haiping Chen
8570bda4bb
crontab
2024-12-05 11:11:16 -06:00
Jicheng Lu
1fcd93fd01
add notification and message type
2024-10-07 16:35:39 -05:00
Jicheng Lu
8d5e78a619
refine email sender and image generator prompt
2024-09-04 13:44:05 -05:00
Jicheng Lu
b244e07e1d
remove knowledge confidence
2024-09-04 10:16:12 -05:00
Jicheng Lu
1d704051bd
Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-audio-handler
2024-09-04 10:11:36 -05:00
Haiping Chen
4f6fed56d8
Fix router history dialogs.
2024-09-04 10:01:40 -05:00
Haiping Chen
4b44f43a7b
Undo Payload copy
2024-09-03 23:55:33 -05:00
Jicheng Lu
949a2cce9f
refine knowledge searching
2024-09-03 12:52:33 -05:00
Jicheng Lu
c3f0bdea14
add comments
2024-08-29 15:00:28 -05:00
Joanna Ren
820adcd067
update two stage planner
2024-08-22 10:15:05 -05:00
Haiping Chen
99baebfa7b
copy payload foe message clone.
2024-07-31 05:29:10 -05:00
Haiping Chen
7d66c2de58
remove function return appended to dialogs.
2024-07-16 10:14:35 -05:00
Jicheng Lu
30d976632e
allow multi image generation
2024-07-01 11:03:42 -05:00
Jicheng Lu
4ca70dfdf0
fix log order
2024-05-09 21:37:32 -05:00
Haiping Chen
6554c43dbc
Only show playload to AI.
2024-05-07 17:16:07 -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
2f08a13f05
save file to directory
2024-05-03 14:57:44 -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
Jicheng Lu
970bc4d028
add secondary content
2024-04-18 16:34:18 -05:00
Haiping Chen
3c968bd068
PostbackFunctionName
2024-04-06 18:33:49 -05:00
Haiping Chen
280330bd33
Not trigger if replyMessage.FunctionName is empty.
2024-03-27 11:19:13 -05:00
Haiping Chen
28cf5c0b69
Abstract IWebBrowser.
2024-03-08 07:19:13 -06:00
Haiping Chen
ab0b200406
Change planner setting to agent level.
2024-01-26 19:14:14 -06:00
Haiping Chen
cdae1235da
UnmatchedAgent
2024-01-06 16:24:22 -06:00
Haiping Chen
a1bc56b481
Add more template rich message.
2023-11-24 17:26:33 -06:00
Haiping Chen
89b5cacbe9
Add SenderId to RoleDialogModel
2023-11-14 08:13:54 -06:00
hchen
3483fd42a1
Adjust rich content data structure.
2023-11-08 16:27:42 -06:00
Haiping Chen
a18d1ea5aa
RoleDialogModel.From
2023-10-30 15:06:45 -05:00
Haiping Chen
3caa7a5499
HFPlanner
2023-10-30 11:48:18 -05:00
Yanan Wang
eb4e0b0187
Merge from master into add_richCoontent Branch
2023-10-27 16:21:52 -05:00