Skip to main content

Module action_node_codegen

Module action_node_codegen 

Source
Expand description

Action Node Code Generation

Generates Rust code for action nodes (non-LLM programmatic nodes) in ADK Studio workflows. Each action node type generates corresponding Rust code that integrates with the ADK runtime.

Type definitions (structs/enums) are in the sibling action_node_types module. This module contains the ActionNodeCodeGen trait and all code generation implementations.

§Requirements

  • 13.1: Generate valid, compilable Rust code for each action node
  • 13.2: Integrate action nodes with ADK runtime
  • 13.3: Generate appropriate driver code for database nodes

Re-exports§

pub use super::action_node_types::*;

Traits§

ActionNodeCodeGen
Trait for generating Rust code from action node configurations

Functions§

collect_action_node_dependencies
Collect all required Cargo dependencies for action nodes
generate_action_nodes_code
Generate Rust code for all action nodes in a workflow
generate_callbacks
Generate callback invocation code
generate_error_handling_wrapper
Generate the error handling wrapper code
generate_interpolation_helper
Generate variable interpolation helper
generate_skip_condition
Generate skip condition check code
generate_timeout_wrapper
Generate timeout wrapper code
validate_generated_code
Validate that generated code would compile