Run Tool From Source
Attempt to build a tool from source, then run it on the provided arguments
Headers
Authorization
Header authentication of the form Bearer <token>
Request
This endpoint expects an object.
source_code
The source code of the function.
args
The arguments to pass to the tool.
env_vars
The environment variables to pass to the tool.
name
The name of the tool to run.
source_type
The type of the source code.
args_json_schema
The args JSON schema of the function.
json_schema
The JSON schema of the function (auto-generated from source_code if not provided)
Response
Successful Response
id
date
message_type
tool_return
status
Allowed values:success error
tool_call_id
name
stdout
stderr
Errors
422
Run Tool from Source Request Unprocessable Entity Error