Nerve Agent icon

Nerve Agent

Interact with Nerve Agent AI system for multi-agent orchestration, code execution, and advanced AI workflows

Actions10

Overview

The node "Nerve Agent" provides an interface to execute code snippets in various runtime environments, including Python, Node.js, and Shell. This is particularly useful for automating tasks, running scripts, or integrating dynamic code execution within workflows. For example, users can run a Python data analysis script, execute JavaScript logic, or perform shell commands directly from the workflow, optionally maintaining state across executions using session IDs.

Properties

Name Meaning
Code The actual code snippet or command to be executed. Supports Python, Node.js, or shell commands depending on the selected runtime. Example: print("Hello, World!").
Runtime The environment in which the code will run. Options are: Python, Node.js, or Shell.
Session ID An optional identifier to maintain execution context between multiple runs. Variables and imports persist within the same session. Useful for multi-step workflows requiring stateful execution.
Timeout (Seconds) Maximum allowed execution time for the code in seconds, ranging from 1 to 300. Execution will be terminated if it exceeds this limit.

Output

The node outputs JSON data containing the results of the executed code. This typically includes the standard output, error messages if any, and possibly execution metadata such as duration or status. If the code produces binary data (e.g., files or images), it would be handled accordingly, but based on the provided information, the primary output is textual execution results.

Dependencies

  • Requires an API key credential to authenticate with the Nerve Agent AI system.
  • The node communicates with the Nerve Agent backend service via HTTP requests.
  • No additional local dependencies are indicated; all code execution happens remotely through the service.

Troubleshooting

  • Timeout Errors: If the code execution exceeds the specified timeout, the process will be terminated. Increase the timeout value if longer execution is expected.
  • Session Issues: Using the same session ID allows persistence of variables and imports. If unexpected behavior occurs, verify that the correct session ID is used or try clearing it to start fresh.
  • Code Errors: Syntax or runtime errors in the provided code will be returned in the output. Validate code correctness before execution.
  • Authentication Failures: Ensure the API key credential is correctly configured and has necessary permissions.

Links and References

Discussion