pub fn validate_state_key(key: &str) -> Result<(), &'static str>Expand description
Core traits and types.
Always available regardless of feature flags. Includes:
Agent- The fundamental trait for all agentsTool/Toolset- For extending agents with capabilitiesSession/State- For managing conversation contextEvent- For streaming agent responsesAdkError/Result- Unified error handling Validates a state key. ReturnsOk(())if the key is safe, or an error message.
Rules:
- Must not be empty
- Must not exceed
MAX_STATE_KEY_LENbytes - Must not contain path separators (
/,\) or.. - Must not contain null bytes