Skip to content

Commit

Permalink
Fix integration tests (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter authored Aug 19, 2024
1 parent aeb97f5 commit 49495dd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
25 changes: 16 additions & 9 deletions docs/griptape-framework/misc/src/events_4.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
from griptape.structures import Pipeline
from griptape.tasks import ToolkitTask
import logging

from griptape.config import config
from griptape.structures import Agent
from griptape.tools import PromptSummaryTool, WebScraperTool
from griptape.utils import Stream

pipeline = Pipeline()
pipeline.add_tasks(
ToolkitTask(
"Based on https://griptape.ai, tell me what griptape is.",
tools=[WebScraperTool(off_prompt=True), PromptSummaryTool(off_prompt=False)],
)
# Hide Griptape's usual output
logging.getLogger(config.logging_config.logger_name).setLevel(logging.ERROR)

agent = Agent(
input="Based on https://griptape.ai, tell me what griptape is.",
tools=[
PromptSummaryTool(off_prompt=True),
WebScraperTool(off_prompt=False),
],
stream=True,
)

for artifact in Stream(pipeline).run():

for artifact in Stream(agent).run():
print(artifact.value, end="", flush=True)
2 changes: 1 addition & 1 deletion docs/griptape-framework/structures/src/config_8.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
custom_config = AmazonBedrockDriverConfig()
dict_config = custom_config.to_dict()
# Use OpenAi for embeddings
dict_config["embedding"] = {
dict_config["embedding_driver"] = {
"base_url": None,
"model": "text-embedding-3-small",
"organization": None,
Expand Down

0 comments on commit 49495dd

Please sign in to comment.