Skip to content

[ML-48691] Adding http_request to serving to call external-function#852

Closed
sunishsheth2009 wants to merge 1 commit intodatabricks:mainfrom
sunishsheth2009:sunish-http-request
Closed

[ML-48691] Adding http_request to serving to call external-function#852
sunishsheth2009 wants to merge 1 commit intodatabricks:mainfrom
sunishsheth2009:sunish-http-request

Conversation

@sunishsheth2009
Copy link
Contributor

@sunishsheth2009 sunishsheth2009 commented Jan 6, 2025

What changes are proposed in this pull request?

ML-48691 Adding http_request to serving to call /external-function

Why are these changes needed?

The changes are needed to make it easy for the AI agent authors to create tools that can make request to external services by invoking the /external-function API where the secrets are stored in UC Connections.

The Mixin is added so that it is easier for developers to just pass in json objects rather than stringified data similar to request.request api from python

How is this tested?

  • Not tested yet. Once the approach is clear, will test it in a notebook

@sunishsheth2009 sunishsheth2009 changed the title [ML-48691] Adding http_request to serving to call /external-function Adding http_request to serving to call /external-function Jan 6, 2025
@sunishsheth2009 sunishsheth2009 changed the title Adding http_request to serving to call /external-function Adding http_request to serving to call external-function Jan 6, 2025
@sunishsheth2009 sunishsheth2009 changed the title Adding http_request to serving to call external-function [ML-48691] Adding http_request to serving to call external-function Jan 6, 2025
Signed-off-by: Sunish Sheth <sunishsheth2009@gmail.com>
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 852
  • Commit SHA: fe1de1b1efc3e0161be43942af6d1d9116e5a4fc

Checks will be approved automatically on success.

github-merge-queue bot pushed a commit that referenced this pull request Jan 14, 2025
## What changes are proposed in this pull request?

This PR adds the `serving.http_request` function to call
`/external-function`.

The goal of this function is to make it easy for the AI agent authors to
create tools that can make request to external services by invoking the
/external-function API where the secrets are stored in UC Connections.

This PR is based on PR #852.

## How is this tested?

The mixin itself was not tested. Further testing will be conducted by
the Model Serving team.
@sunishsheth2009
Copy link
Contributor Author

Code merged here: #857

@sunishsheth2009 sunishsheth2009 deleted the sunish-http-request branch January 14, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants