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

Add prompt_overrides to Crew #720

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gabriels1234
Copy link

@gabriels1234 gabriels1234 commented Jun 2, 2024

This PR allows the Crew to receive prompt overrides for specific prompts (instead of one having to handle the entire json to the crew).
This proves useful for:

  • Tweaking specific prompts for specific use cases.
  • Easier to test many prompt optimization assumptions on-the-fly.
        crew = Crew(
            agents=agents,
            tasks=tasks,
            process=Process.hierarchical,  # Using hierarchical process
            manager_agent=manager,  # Assigning the manager agent
            verbose=True,
            prompt_overrides={
                "slices": {"format": "Some custom prompt"}}
        )

@gabriels1234 gabriels1234 marked this pull request as ready for review June 2, 2024 07:32
@gabriels1234
Copy link
Author

Any help needed to move forward with this?
Thanks!

@theCyberTech theCyberTech added the feature-request New feature or request label Aug 11, 2024
Copy link

This PR is stale because it has been open for 45 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request no-pr-activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants