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
Is your feature request related to a an existing bug? Please link it here.
no
Describe the solution you'd like
Hello,
I would like to propose a feature request for CrewAI to support Jinja2 template formatting in task descriptions. This would greatly increase the flexibility and dynamism in how we assemble task prompts.
Current Situation:
At present, CrewAI's task prompts only supports string replacement, which limits our ability to dynamically adjust prompts based on specific conditions or variables.
Requested Feature:
I suggest that CrewAI supports Jinja2 templates, allowing us to incorporate variables and conditional logic into task descriptions. Jinja2 is a powerful templating engine that enables us to generate task prompts dynamically based on the context.
Expected Benefits:
Increased Flexibility: The ability to customize prompts based on specific task requirements and user inputs.
Enhanced Dynamism: The capability to adjust prompt content dynamically based on real-time data or user interactions.
Improved User Experience: Users will see more personalized and context-relevant task prompts.
Example:
Dear User,
{% if user.is_first_time %}
Welcome to CrewAI! We are delighted that you have chosen us to assist you with your tasks.
{% else %}
Great to see you again! We hope to continue assisting you today.
{% endif %}
Please follow the instructions below to complete the task:
...
I hope this feature can be considered for inclusion in CrewAI, as I believe it will greatly enhance our product experience.
Thank you!
Describe alternatives you've considered
Add another field to compose the final prompt, which support jinja2 template format.
Additional context
No response
Willingness to Contribute
No, I'm just suggesting the idea
The text was updated successfully, but these errors were encountered:
Feature Area
Task management
Is your feature request related to a an existing bug? Please link it here.
no
Describe the solution you'd like
Hello,
I would like to propose a feature request for CrewAI to support Jinja2 template formatting in task descriptions. This would greatly increase the flexibility and dynamism in how we assemble task prompts.
Current Situation:
At present, CrewAI's task prompts only supports string replacement, which limits our ability to dynamically adjust prompts based on specific conditions or variables.
Requested Feature:
I suggest that CrewAI supports Jinja2 templates, allowing us to incorporate variables and conditional logic into task descriptions. Jinja2 is a powerful templating engine that enables us to generate task prompts dynamically based on the context.
Expected Benefits:
Increased Flexibility: The ability to customize prompts based on specific task requirements and user inputs.
Enhanced Dynamism: The capability to adjust prompt content dynamically based on real-time data or user interactions.
Improved User Experience: Users will see more personalized and context-relevant task prompts.
Example:
I hope this feature can be considered for inclusion in CrewAI, as I believe it will greatly enhance our product experience.
Thank you!
Describe alternatives you've considered
Add another field to compose the final prompt, which support jinja2 template format.
Additional context
No response
Willingness to Contribute
No, I'm just suggesting the idea
The text was updated successfully, but these errors were encountered: