Run

Token saving capabilities and recommendations

Usage

After a function is created you can make direct usage of the function:

POST /flow/run

A simple token optimization involves "turning off" all unnecessary agents for the function or execution context. When the function executes, previously generated code ensures that calling /function bypasses any code generation and testing agents, allowing direct API execution.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Required
Description

id

string

Unique identifier of the running process.

Response

{
  "return": {
    "message" : "message example"
  },
  "status" : {
    "code" : 1,
    "status" : "completed",
    "error": null
  },
  "error": null
}

Last updated

Was this helpful?