You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should the plain-text native-tool path default to no agent line and no "your objective is" framing? #332
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