-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70eb6db
commit 46c4d0c
Showing
6 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...riptape_structure_run_client/manifest.yml → ...ls/griptape_structure_runner/manifest.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
version: "v1" | ||
name: Griptape Structure Run Client | ||
name: Griptape Structure Runner | ||
description: Tool for running a Griptape Structure. | ||
contact_email: [email protected] | ||
legal_info_url: https://www.griptape.ai/legal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ols/test_griptape_structure_run_client.py → ...t/tools/test_griptape_structure_runner.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import pytest | ||
from griptape.tools import GriptapeStructureRunClient | ||
from griptape.tools import GriptapeStructureRunner | ||
from griptape.structures import Agent | ||
from tests.mocks.mock_prompt_driver import MockPromptDriver | ||
|
||
|
||
class TestGriptapeStructureRunClient: | ||
class TestGriptapeStructureRunner: | ||
@pytest.fixture | ||
def client(self): | ||
driver = MockPromptDriver() | ||
agent = Agent(prompt_driver=driver) | ||
|
||
return GriptapeStructureRunClient(structure=agent, description="fizz buzz") | ||
return GriptapeStructureRunner(structure=agent, description="fizz buzz") | ||
|
||
def test_run_structure(self, client): | ||
assert client.run_structure({"values": {"args": "foo bar"}}).value == "mock output" |