Table of Contents
InterpreterAtomicFlow
InterpreterAtomicFlow Objects
class InterpreterAtomicFlow(AtomicFlow)
This flow is used to run the code passed from the caller. Input Interface:
code
language
Output Interface:
interpreter_output
: output of the code interpretercode_runs
: whether the code runs successfully or not
Configuration Parameters:
- None
Full credits to open-interpreter (https://github.com/KillianLucas/open-interpreter)
for the usage of code interpreters (package code_interpreters
) and the function truncate_output()
I'm extracting the code interpreter part from open-interpreter because the litellm version of open-interpreter is not compatible with that of the current version of aiflows(v.0.1.7).
set_up_flow_state
def set_up_flow_state()
class-specific flow state: language and code, which describes the programming language and the code to run.
run
def run(input_message: FlowMessage)
Run the code interpreter and return the output.
Arguments:
input_message
(FlowMessage
): The input message of the flow.
Inference Providers
NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API:
The model has no library tag.