react_agent.graph.ExtractionOutput Objects
ExtractionOutput.join_lists
BaseExtractionOutput- The validated and normalized model instance.
react_agent.graph.BaseTranslationOutput Objects
translation_type is SCHEMA, QUERY, or BOTH. It mandates that
the agent provide both the translated raw code and fully functional execution harnesses
(with explicitly declared entry points) for downstream sandbox validation.
BaseTranslationOutput.check_entrypoint_names
BaseTranslationOutput- The validated and normalized model instance.
ValueError- If the entrypoint type name is missing from the harness/schema code.
react_agent.graph.is_input_extracted
translation_type, the corresponding source code fields
(schema, query, or both) and the framework targets are present.
Arguments:
stateState | ExtractionOutput - The current graph state or extraction output model.
bool- True if all required fields are present, False otherwise.
react_agent.graph.extract_input
stateState - The current state of the graph.configRunnableConfig - Configuration parameters for the run.runtimeRuntime[Context] - The execution runtime containing context.
react_agent.graph.schema_inspection
stateState - The current state of the graph.configRunnableConfig - Configuration parameters for the run.runtimeRuntime[Context] - The execution runtime containing context.
schema_context string.
react_agent.graph.translation_agent
generate_translation_node coupled with
explicit state machine nodes for validation and evaluation, which provides
better determinism and observability.
Arguments:
stateState - The current state of the graph.configRunnableConfig - Configuration parameters for the run.runtimeRuntime[Context] - The execution runtime containing context.
react_agent.graph.generate_translation_node
TranslationOutput).
Arguments:
stateState - The current state of the graph.configRunnableConfig - Configuration parameters for the run.runtimeRuntime[Context] - The execution runtime containing context.
react_agent.graph.HumanInterventionResponse Objects
decision- The logical decision, either “accept” to commit the translation or “reject” to loop back with feedback.feedback- Text description or critique describing necessary adjustments.
react_agent.graph.human_intervention_node
interrupt LangGraph API. The user can
either ‘accept’ the translation to terminate successfully, or ‘reject’ it with feedback to
trigger another generation loop.
Arguments:
stateState - The current state of the graph.
react_agent.graph.prep_schema_validation
validate_schema_node by appending an AIMessage with explicitly
defined tool calls (validate_dotnet_code or validate_java_code) containing the target
schema harness code.
Arguments:
stateState - The current state of the graph.
react_agent.graph.prep_query_validation
validate_query_node by appending an AIMessage with multiple
tool calls to run both the source validation harness and the target validation harness in
sandbox environments concurrently.
Arguments:
stateState - The current state of the graph.
react_agent.graph.prep_query_equivalence
check_query_equivalence_node. It parses the JSON validation
outputs from the previous query validation step and issues a tool call for DeepDiff
equivalence testing.
Arguments:
stateState - The current state of the graph.
react_agent.graph.custom_tool_node_wrapper
ToolNode to intercept and retry tool calls (like Daytona sandbox provisioning)
with an exponential backoff. If max retries are exceeded, it gracefully injects an error
ToolMessage into the state rather than crashing the graph.
Arguments:
requestToolCallRequest - The requested tool call payload.executeCallable - The underlying ToolNode execution function.
react_agent.graph.route_post_query_validation
prep_query_equivalence.
Otherwise, it skips equivalence checking and routes directly to the evaluation_node
to analyze the validation failures.
Arguments:
stateState - The current state of the graph.
react_agent.graph.EvaluationOutput Objects
decision- The logical decision, either ACCEPT to complete the process or REJECT to loop back for correction.explanation- Detailed textual reasoning explaining the decision, citing specific equivalence or compiler errors.
react_agent.graph.evaluation_node
EvaluationOutput deciding whether to ‘ACCEPT’ the translation
or ‘REJECT’ it (which triggers another generation iteration with feedback).
Arguments:
stateState - The current state of the graph.configRunnableConfig - Configuration parameters for the run.runtimeRuntime[Context] - The execution runtime containing context.
react_agent.graph.route_post_evaluation
generate_translation_node
to retry. If the maximum translation loop count is reached, it routes to
human_intervention_node instead. If accepted, it routes to __end__.
Arguments:
stateState - The current state of the graph.
react_agent.graph.should_extract_input
schema_inspection. If not, it routes back to extract_input up to a maximum
retry limit, after which it routes to __end__ to terminate the graph gracefully.
Arguments:
stateState - The current state of the graph.
react_agent.graph.route_post_translation
prep_schema_validation if the translation type is SCHEMA. For QUERY or BOTH
translation types, it routes to prep_query_validation.
Arguments:
stateState - The current state of the graph.
react_agent.graph.route_post_schema_validation
generate_translation_node (or
human_intervention_node if max retries exceeded) without proceeding further.
If it passed and the translation type is BOTH, it routes to prep_query_validation.
Otherwise, it terminates execution (__end__).
Arguments:
stateState - The current state of the graph.