Skip to content

CodeMode ignores user prompt #599

@asafyish

Description

@asafyish

When using CodeMode we are sending a prompt like:

const { prompt, tools: wrappedTools } = await codemode({
  prompt: 'You are a helpful assistant that can do various tasks... '
});

We get back a modified prompt and use that in streamText for example:

const result = streamText({
  system: prompt
});

The issue is that codemode() completely ignores the prompt that it's given and return a static one. It needs to somehow merge my prompt (with specific behaviours and explanations my domain needs) to the codemode one (which explains the agent how to use the codemode functions and what they are).

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