Commencer maintenant
Code Interpreter Tools

Codeinterpreter Execute Code

Utilisez Codeinterpreter Execute Code avec Code Interpreter Tools via Aident Loadout. Vérifiez les entrées, sorties, la configuration, le tarif et le risque avant exécution.

Action d'écritureNiveau de risque 2 sur 5Accès géré par Aident

Description du fournisseur

Execute python code in a sandbox and return any result, stdout, stderr, and error. Use /home/user folder to write/read files. Try to not use plt.show() as the code is executed remotely. Use files for image/chart output instead.

Tarifs et limites

Tarif
Action gratuite
Paiement unifié
Non requis pour cette Action gratuite

Entrées

  • timeoutinteger
    The timeout in seconds for the execution of the code.
  • keep_aliveinteger
    The number of seconds to keep the sandbox alive after execution. Default is 300 seconds (5 minutes). Can be between 0 and 3600.
  • sandbox_idstring
    The ID of the sandbox to execute the code in. Try to find an existing sandbox ID from context in order to access the previous modification session. In case not found, this value might be omitted, a new sandbox will be created.
  • code_to_executestring
    Obligatoire
    The python code to execute in a single cell. If a file is to be saved, it should be saved under /home/user/ directory. At the end of the code, a success message print is good to have.

Sortie observable

  • data
    Obligatoire
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    Obligatoire
    Whether or not the action execution was successful or not

Skills qui utilisent cette Action

Cas d’usage associés

Aucun cas d’usage associé et vérifié pour le moment.

Source officielle

Source du fournisseur