-
Notifications
You must be signed in to change notification settings - Fork 184
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 GriptapeCloudToolDriver #1367
Conversation
abc749b
to
2aaa729
Compare
@@ -68,6 +68,7 @@ jobs: | |||
GT_CLOUD_STRUCTURE_ID: ${{ vars.INTEG_GT_CLOUD_STRUCTURE_ID }} | |||
GT_CLOUD_STRUCTURE_RUN_ID: ${{ vars.INTEG_GT_CLOUD_STRUCTURE_RUN_ID }} | |||
GT_CLOUD_THREAD_ID: ${{ vars.INTEG_GT_CLOUD_THREAD_ID }} | |||
GT_CLOUD_TOOL_ID: ${{ vars.INTEG_GT_CLOUD_TOOL_ID }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zachgiordano what would it take to get one of these in Tony?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A public Sample Tools repo. Working on it :)
@@ -58,8 +59,8 @@ def lazy_attr(self: Any, value: Any) -> None: | |||
|
|||
|
|||
def _build_kwargs(func: Callable, params: dict) -> dict: | |||
func_params = inspect.signature(func).parameters.copy() | |||
func_params.pop("self") | |||
func_params = cast(OrderedDict, inspect.signature(func).parameters.copy()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pop the first item, not the one named "self" (which is just a convention)
2aaa729
to
fae135d
Compare
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
d159168
to
f261cd6
Compare
f261cd6
to
11fa960
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really cool Tools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tools
Describe your changes
Alternate implementation to the one in #1342.
Added
GriptapeCloudToolDriver
for interacting with Griptape Cloud's Tool API.BaseTool.tool_driver
for setting a Tool Driver on a Tool. The Tool will calltool_driver.initialize_tool
after Tool initialization.I'm not in love how we explain these Drivers in the docs, they're kind of hard to understand without the full picture of the Tools Cloud service.
Issue ticket number and link
Closes #1342
📚 Documentation preview 📚: https://griptape--1367.org.readthedocs.build//1367/