Skip to content

[FEATURE] Remove tools on the fly in the chat #229

@tpaulshippy

Description

@tpaulshippy

Scope check

  • This is core LLM communication (not application logic)
  • This benefits most users (not just my use case)
  • This can't be solved in application code with current RubyLLM
  • I read the Contributing Guide

Due diligence

  • I searched existing issues
  • I checked the documentation

What problem does this solve?

Every tool defined takes up tokens. There are times when an agent may need more tools (in which case I can call with_tool) but then later need less tools (in which case I have to start the conversation from scratch).

Proposed solution

Provide a method like without_tool or remove_tool to remove the tool from the array.

Why this belongs in RubyLLM

I don't see a way to affect the tools array aside from adding to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions