Skip to content

modal-labs/typescript-tool-calling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restricted Function Tool-Calls

This code snippet shows you how to dynamically deploy user-defined TS function tool calls using Modal.

Overview

  • deployment_example.py: Code for deploying new Modal App.
    • server: Lightweight Node server that handles requests for user tool calls. Users can modify function definitions in user-functions.ts.
    • app.py: App logic that's deployed.
  • tool_call_example.py: After deploying, run this script to invoke deployed tool.

Usage

  1. pip install modal
  2. python deployment_example.py --> deploy the Modal App that deploys the Node shim server
  3. python tool_call_example.py --> call your deployed Function!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published