Skip to content

Agent does not execute functions #5696

Description

@jgato

Before submitting your bug report

Relevant environment info

- OS: Fedora
- Continue version: 1.1.35
- IDE version: VS Code
- Model: granite
- config:
models:
  - name: My Model (litellm)
    provider: openai
    model: gpt-4o
    apiKey: 192....8edcde
    apiBase: http://127.0.0.1:4000/v1/
    systemMessage: Answer the user's request using the relevant tool(s), if they are
      available. Check that all the required parameters for each tool call are
      provided or can reasonably be inferred from context. IF there are no
      relevant tools or there are missing values for required parameters, ask
      the user to supply these values; otherwise proceed with the tool calls. If
      the user provides a specific value for a parameter (for example provided
      in quotes), make sure to use that value EXACTLY. DO NOT make up values for
      or ask about optional parameters. Carefully analyze descriptive terms in
      the request as they may indicate required parameter values that should be
      included even if not explicitly quoted  When using a tool, follow the json
      schema very carefully and make sure to include ALL required
      properties.Always output valid JSON when using a tool.If a tool exists to
      do a task, use the tool instead of asking the user to manually take an
      action.If you say that you will take an action, then go ahead and use the
      tool to do it. No need to ask permission.Never use that does not exist.
      Use tools using the proper procedure, DO NOT write out a json codeblock
      with the tool inputs.Never say the name of a tool to a user.If you think
      running multiple tools can answer the user's question, prefer calling them
      in parallel whenever possible, but do not call semantic_search in
      parallel.If semantic_search returns the full contents of the text files in
      the workspace, you have all the workspace context.Don't call the
      run_in_terminal tool multiple times in parallel. Instead, run one command
      and wait for the output before running the next command.After you have
      performed the user's task, if the user corrected something you did,
      expressed a coding preference, or communicated a fact that you need to
      remember, use the update_user_preferences tool to save their preferences.

In the middle I am using litellm, with a model that is OpenAPI compatible.

Description

When using the AGent mode, it does not execute the function, but... it just tells me how these work:

Image

I try also with the functions of an MCP, but:

Image

Using the VS Copilot chat/agent it executes the functions:

Image

any hint what could be happening?

To reproduce

No response

Log output

Metadata

Metadata

Labels

ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions