-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adding a python http_request wrapper to create external tools #28
base: main
Are you sure you want to change the base?
Conversation
b5e0119
to
947dc7d
Compare
Signed-off-by: Sunish Sheth <[email protected]>
947dc7d
to
d887b79
Compare
|
||
|
||
@experimental | ||
def http_request( |
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.
We should think about the module and API name a little more, maybe something like databricks_ai_bridge.external_tools.http_request
? Or even databricks_ai_bridge.external_tools.request
? Just thinking about how this looks in code where you might mix this with generic requests.request
calls to some public APIs
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.
Another option is databricks_ai_bridge.uc_connections.http_request
- I know we wanna present our product as external tools but what we're actually using is the UC connection to make an HTTP request in the process of defining a tool, ratehr than using a tool itself
@@ -0,0 +1,65 @@ | |||
import inspect |
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.
Are there tests for these annotations that we should also include + include a backlink to the OSS MLflow code (I'm guessing) that we copied from?
params: Optional[Dict[str, Any]] = None, | ||
) -> requests.Response: | ||
""" | ||
Makes an HTTP request to an external function through the Databricks Workspace. |
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.
Makes an HTTP request to an external function through the Databricks Workspace. | |
Makes an HTTP request to a remote API using authentication from a Unity Catalog HTTP connection. |
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 few comments but mostly looks great, thanks @sunishsheth2009 !
Adding a python http_request wrapper to create external tools