Skip to content

Commit

Permalink
Replace no-op with prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed May 3, 2024
1 parent f49bdd3 commit 9f0b78e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/examples/multi-agent-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ from griptape.drivers import WebhookEventListenerDriver
from griptape.events import EventListener, FinishStructureRunEvent
from griptape.rules import Rule, Ruleset
from griptape.structures import Agent, Workflow
from griptape.tasks import NoOpTask, StructureRunTask
from griptape.tasks import PromptTask, StructureRunTask
from griptape.tools import (
TaskMemoryClient,
WebScraper,
Expand Down Expand Up @@ -153,7 +153,11 @@ if __name__ == "__main__":
target_structure=build_researcher(),
),
)
end_task = team.add_task(NoOpTask())
end_task = team.add_task(
PromptTask(
'State "All Done!"',
)
)
team.insert_tasks(
research_task,
[
Expand Down

0 comments on commit 9f0b78e

Please sign in to comment.