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 'EvalTask' #1546

Open
william-price01 opened this issue Jan 11, 2025 · 0 comments
Open

Add 'EvalTask' #1546

william-price01 opened this issue Jan 11, 2025 · 0 comments

Comments

@william-price01
Copy link
Contributor

I want to be able to give my structure an Evalutation Task to make sure my output is correct.

Like this:

from griptape.structures import Pipeline
from griptape.tasks import EvalTask, PromptTask

pipeline = Pipeline(
tasks=[PromptTask("Write me a haiku, with lines from the matrix")])

pipeline.add_task(
EvalTask(
criteria="Evaluate the parent output {{parent_output}} against the rules provided.",
),
rules=[Rule("Make sure that the output includes lines from the matrix")]
)

pipeline.run()
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

No branches or pull requests

1 participant