Skip to content

Should the plain-text native-tool path default to no agent line and no "your objective is" framing? #332

Open

Description

@deepfates

What. The Chat adapter puts words into every ReActV2 prompt that the program's author didn't write:

  • the default agent line, "You are an Agent. Produce … from …" / "You are an Agent. Use the supplied tools to produce …" (default_agent_line/3, lib/imp/adapter/chat.ex around line 800);
  • DSPy's "In adhering to this structure, your objective is:" framing (same file, around lines 679 and 690).

#310 made the agent line replaceable (agent_line:, nil leaves it out), with DSPy's text kept as the default. #326 trims the field framing on the plain-text path but keeps both of these.

Why it matters. On the plain-text native-tool path (one text output, tools held natively, no submit tool) there is no structure to adhere to and no field to produce: the answer is the message sent without a tool call. The text exists for DSPy's structured prompts. Here it only adds a persona and an "objective" the author never wrote, and every host that doesn't know about agent_line: gets it.

Question. Should the plain-text native-tool path default to no agent line and no "your objective is" framing, leaving the author's instructions to stand alone, while the structured paths keep DSPy's text?

Fixed means. A decision either way, recorded. If changed: on that path the default system message contains neither phrase, other paths are unchanged, and a test pins both.

Activity

  1. added
    audit
    on Oct 12, 2026
  2. added
    parked
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditparked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions