22 Commits

Author SHA1 Message Date
yetone
bd2079a5cc chore: remove dead code and commented out blocks (#2611) 2025-08-16 14:45:27 +08:00
yetone
02aa0a4241 fix: compatible with some incorrect tool results (#2530) 2025-07-24 16:44:05 +08:00
Dmitry Torokhov
aa606b6147 refactor(history): change HistoryMessage:new() to accept role and item
Change the constructor to accept role and a single content item instead
of raw AvanteLLMMessage instance. This will help when we will start
changing message.content from being a string or a list of tables to just
a string or a single table.
2025-07-22 17:49:28 +08:00
Dmitry Torokhov
86e8563125 refactor(llm_tools): use History.Helpers.get_tool_result_data()
Avoid poking into internals of avante.HistoryMessage, and use
appropriate helper instead.
2025-07-22 17:49:28 +08:00
Dmitry Torokhov
e82b159f65 refactor(history): add a helper to fetch text from messages and use it
This adds History.Helpers.get_text_data() helper to fetch contents of a
"text" message. This removes the need to know internals of message
structure outside of history module.
2025-07-22 17:49:28 +08:00
Dmitry Torokhov
b64120749f refactor(history): use get_tool_(result|use_data)() in dispatch_agent.lua
Using these helpers simplifies the code and provides better
encapsulation.
2025-07-16 12:49:15 +08:00
Dmitry Torokhov
34907fc1cd refactor(history): start moving history-related code into avante/history
The utils module has grown too big and contains unrelated functionality.
Start moving code related to managing history messages comprising chat
history into lua/avante/history module to keep the code more manageable.
2025-07-16 12:49:15 +08:00
yetone
b8bb0fd969 refactor: llm tool parameters (#2449) 2025-07-15 16:40:25 +08:00
yetone
203861bb71 feat: init project (#2395) 2025-07-02 18:44:30 +08:00
yetone
801adc4692 feat: delete tool use messages tool (#2158) 2025-06-05 02:51:46 +08:00
yetone
bc403ddcbf feat: ReAct tool calling (#2104) 2025-05-31 08:53:34 +08:00
yetone
0b4775c8f7 fix: attempt completion (#2091) 2025-05-27 17:29:53 +08:00
yetone
60897ee9a6 fix: o1 model (#1992) 2025-05-06 19:32:55 +08:00
yetone
448efbb842 fix: disable compact history messages for dispatch agent (#1954) 2025-05-01 05:19:54 +08:00
yetone
f2330a0701 fix: dispatch agent (#1953) 2025-05-01 05:12:23 +08:00
yetone
f10b8383e3 refactor: history messages (#1934) 2025-04-30 03:07:18 +08:00
yetone
33f95aedde feat: streaming json parser (#1883) 2025-04-16 23:41:38 +08:00
yetone
06757e8bf5 fix: dispatch agent missing tool histories (#1794) 2025-04-01 23:29:51 +08:00
yetone
4c2dd777d6 fix: copilot tool description cannot use long text (#1722) 2025-03-26 14:47:51 +08:00
yetone
d82eb8534e fix: prompts (#1715) 2025-03-25 23:16:03 +08:00
yetone
49ae3c84fd feat: add view_range parameter and remove read_file llm tool (#1690) 2025-03-24 15:07:14 +08:00
yetone
cc966194d0 refactor: llm tools (#1675) 2025-03-22 17:13:42 +08:00