Skip to content

Remove dead code: toolFormat field in getEnvironmentDetails #11206

@hannesrudolph

Description

@hannesrudolph

Summary

The toolFormat = "native" field in getEnvironmentDetails.ts is dead code and should be removed. We no longer need to tell models about the tool format since native tool calling is the only protocol we support (XML-based tool calling has been retired).

Location

src/core/environment/getEnvironmentDetails.ts

Current Code

const toolFormat = "native"

details += `\n\n# Current Mode\n`
details += `<slug>${currentMode}</slug>\n`
details += `<name>${modeDetails.name}</name>\n`
details += `<model>${modelId}</model>\n`
details += `<tool_format>${toolFormat}</tool_format>\n`

Suggested Action

Remove the toolFormat constant and the <tool_format> line from the environment details output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions