Module: RubyLLM
- Defined in:
- lib/swarm_sdk/ruby_llm_patches/mcp_ssl_patch.rb,
lib/swarm_sdk/ruby_llm_patches/connection_patch.rb,
lib/swarm_sdk/ruby_llm_patches/configuration_patch.rb,
lib/swarm_sdk/ruby_llm_patches/responses_api_patch.rb,
lib/swarm_sdk/ruby_llm_patches/chat_callbacks_patch.rb,
lib/swarm_sdk/ruby_llm_patches/tool_concurrency_patch.rb,
lib/swarm_sdk/ruby_llm_patches/message_management_patch.rb
Overview
Extends RubyLLM::Chat with enhanced message management:
-
reset_messages! with preserve_system_prompt option
Fork Reference: Commit e6a34b5
Defined Under Namespace
Modules: MCP, Providers, ToolExecutors Classes: Chat, Configuration, Connection, ResponseCancelledError, ResponseFailedError, ResponseIdNotFoundError, ResponseInProgressError, ResponseIncompleteError, ResponsesApiError, ResponsesSession
Class Method Summary collapse
- .get_tool_executor(name) ⇒ Object
- .register_tool_executor(name, &block) ⇒ Object
- .tool_executors ⇒ Object
Class Method Details
.get_tool_executor(name) ⇒ Object
19 20 21 |
# File 'lib/swarm_sdk/ruby_llm_patches/tool_concurrency_patch.rb', line 19 def get_tool_executor(name) tool_executors[name] || raise(ArgumentError, "Unknown tool executor: #{name}") end |
.register_tool_executor(name, &block) ⇒ Object
15 16 17 |
# File 'lib/swarm_sdk/ruby_llm_patches/tool_concurrency_patch.rb', line 15 def register_tool_executor(name, &block) tool_executors[name] = block end |
.tool_executors ⇒ Object
11 12 13 |
# File 'lib/swarm_sdk/ruby_llm_patches/tool_concurrency_patch.rb', line 11 def tool_executors @tool_executors ||= {} end |