CodeExecution​Code​Execution

Code execution tool using Judge0

yaml
type: "io.kestra.plugin.ai.tool.CodeExecution"

Agent performing mathematical calculations using the Judge0 Code Execution API

yaml
id: calculator_agent
namespace: company.ai

tasks:
  - id: agent
    type: io.kestra.plugin.ai.agent.AIAgent
    provider:
      type: io.kestra.plugin.ai.provider.GoogleGemini
      apiKey: "{{ kv('GEMINI_API_KEY') }}"
      modelName: gemini-2.5-flash
    prompt: What is the square root of 49506838032859?
    tools:
      - type: io.kestra.plugin.ai.tool.CodeExecution
        apiKey: "{{ kv('RAPID_API_KEY') }}"
Properties

RapidAPI key for Judge0

You can obtain it from the RapidAPI website.