Expand description
Rust code generation from project schemas - Always uses adk-graph
This module provides code generation for ADK Studio projects, converting visual workflow definitions into compilable Rust code using adk-graph.
§ADK 0.5.0 Features
- Action nodes use
adk-graph’sActionNodeExecutorwith feature-gated deps WorkflowSchema::build_graph()for action-node-only workflowsadk-actionshared types for cross-crate compatibility- Provider auto-detection with
provider_from_env()support - Structured error envelope (
AdkError) with retry hints
§Features
- Workflow validation before code generation (Requirements 12.4, 12.5)
- Explanatory comments in generated code (Requirement 12.2)
- Environment variable warnings (Requirement 12.10)
- Support for all agent types: LLM, Sequential, Loop, Parallel, Router
- Action node code generation (Requirements 13.1, 13.2, 13.3)
Re-exports§
pub use action_node_codegen as action_nodes;
Modules§
- action_
node_ codegen - Action Node Code Generation
- action_
node_ types - Action Node Type Definitions
Structs§
- EnvVar
Requirement - Environment variable requirement
- EnvVar
Warning - Warning about a missing environment variable
- Generated
File - Generated
Project - Validation
Error - Validation error with specific details
- Validation
Result - Result of workflow validation
Enums§
- Validation
Error Code - Error codes for validation errors
Functions§
- check_
env_ vars - Check for missing required environment variables
- generate_
rust_ project - Generate a Rust project from a project schema
- generate_
rust_ project_ with_ validation - Generate a Rust project with validation result
- get_
required_ env_ vars - Get a list of required environment variables for a project
- validate_
project - Validate a project schema before code generation