Skip to main content

Update an Action

You can update an action with the action_id and openapi_schema by using the update_action method.

import taskingai
from taskingai.tool import Action

# update action
NUMBERS_API_SCHEMA["paths"]["/{number}"]["get"]["description"] = "Get fun fact about a number"
action: Action = taskingai.tool.update_action(
action_id="YOUR_ACTION_ID",
openapi_schema=NUMBERS_API_SCHEMA
)