Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(agents): use prompt templates from a concrete runner #223

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

Tomas2D
Copy link
Contributor

@Tomas2D Tomas2D commented Dec 4, 2024

  • Delegate template handling to a runner

Closes: #219

@@ -83,6 +88,15 @@ export class GraniteRunner extends DefaultRunner {
return memory;
}

get templates(): BeeAgentTemplates {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we have this templates method, I wonder if we should be using this everywhere as opposed to using this.input.templates. If we use this templates method then we can removed the granite runner constructor code that duplicates this code.

https://github.com/i-am-bee/bee-agent-framework/blob/be3bb5c6d1a008cc205276b7ad0e6b759ae3ec97/src/agents/bee/runners/granite/runner.ts#L46C1-L48C84

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the template override is not necessary anymore. Removed.

@Tomas2D Tomas2D merged commit b868974 into main Dec 4, 2024
4 checks passed
@Tomas2D Tomas2D deleted the feat/bee-runner-templates branch December 4, 2024 17:37
matiasmolinas pushed a commit to matiasmolinas/bee-agent-framework that referenced this pull request Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BeeAgent with granite LLM uses BeeAssistantPrompt vs. GraniteBeeAssistantPrompt
2 participants