discourse-ai/spec/lib/modules/ai_bot
Sam 823e8ef490
FEATURE: partial tool call support for OpenAI and Anthropic (#908)
Implement streaming tool call implementation for Anthropic and Open AI.

When calling:

llm.generate(..., partial_tool_calls: true) do ...
Partials may contain ToolCall instances with partial: true, These tool calls are partially populated with json partially parsed.

So for example when performing a search you may get:

ToolCall(..., {search: "hello" })
ToolCall(..., {search: "hello world" })

The library used to parse json is:

https://github.com/dgraham/json-stream

We use a fork cause we need access to the internal buffer.

This prepares internals to perform partial tool calls, but does not implement it yet.
2024-11-14 06:58:24 +11:00
..
jobs/regular FEATURE: more accurate and faster titles (#791) 2024-09-03 15:52:20 +10:00
personas FEATURE: partial tool call support for OpenAI and Anthropic (#908) 2024-11-14 06:58:24 +11:00
tools FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
bot_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
entry_point_spec.rb FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00
playground_spec.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
question_consolidator_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
site_setting_extension_spec.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00