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§
- Action
Node Code Gen - 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