Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Support tools role in messages in the pipeline #862

Description

@jhrozek

The open interpreter support in PR #820 added handling of role: tool messages scoped to open interpreter. This was the right thing to scope them to the tool as we wanted to get the tool support in, but we should support that message role in general in our pipeline.

more todo items would probably come out when we do the work but for now I think we should do:

  • when messages with that role are processed (e.g. get_last_user_message_block) do we take the tools role into account
  • make sure we don't touch those in pipeline to avoid breaking the tools

We can add a bunch of tests just against the openai/anthropic api to make sure we follow their APIs, no need to tie this to a specific client.

Activity

  1. yrobla commented on Jan 31, 2025

    @yrobla
    Contributor

    It would also be worth investigating how this role is being used in other tools (if that's used at all) and how to better support it

  2. aponcedeleonch commented on Feb 6, 2025

    @aponcedeleonch
    Member

    We should investigate which clients besides Open Interpreter are using tools to extract code snippets from files. After #945 we are able to detect when Open Interpreter does it and extract the detected code snippets. Potentially we can build something generic for detecting snippets and not Open Interpreter specific.

    See original discussion in PR

  3. jhrozek commented on Feb 17, 2025

    @jhrozek
    ContributorAuthor

    This will be fixed for free with the pipeline refactor -> in progress

  4. lukehinds commented on Mar 10, 2025

    @lukehinds

    Contingent upon LiteLLM refactor

  5. lukehinds commented on Apr 1, 2025

    @lukehinds

    closing as delivered (correct me if wrong @jhrozek )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions