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
Describe the bug
I was noticing that BeeAgent when configured with a granite llm uses the standard BeeAssistantPrompt which conflicts with the granite system prompt and causes the llm to perform poorly. The offending code is here:
Describe the bug
I was noticing that BeeAgent when configured with a granite llm uses the standard BeeAssistantPrompt which conflicts with the granite system prompt and causes the llm to perform poorly. The offending code is here:
bee-agent-framework/src/agents/bee/agent.ts
Line 133 in fd942ae
A fairly simple fix is to conditionally choose a default AssistantPrompt before rendering i.e.
But this is not the most elegant solution imo because it introduces more ad hoc checks into the agent.
Ideally we could move the rendering of the assistant message into the runner hierarchy. The renders method seems to be the most appropriate spot.
https://github.com/i-am-bee/bee-agent-framework/blob/fd942ae0116893b9452530c305e0053bb83f5578/src/agents/bee/runners/default/runner.ts#L256C17-L256C28
However the renders method is introduced on the DefaultRunner as opposed to the BaseRunner which is the type maintained by the BeeAgent.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The GraniteBeeAssistantPrompt should be applied when rendering the assistant prompt.
Set-up:
The text was updated successfully, but these errors were encountered: