Crate runtara_agent_macro

Crate runtara_agent_macro 

Source
Expand description

Procedural macros for agent capability and step metadata generation

This crate provides macros to declaratively define agent capability and step metadata:

  • #[capability] - marks a function as an agent capability
  • #[derive(CapabilityInput)] - generates input metadata from struct fields
  • #[derive(CapabilityOutput)] - generates output metadata from struct fields
  • #[derive(StepMeta)] - generates step type metadata for DSL generation

The macros generate static metadata that can be collected at runtime using the inventory crate for agent and step discovery.

Note: The metadata types (CapabilityMeta, InputTypeMeta, StepTypeMeta, etc.) are defined in runtara-dsl crate to avoid proc-macro crate limitations.

Attribute Macros§

capability
Attribute macro for marking agent capability functions

Derive Macros§

CapabilityInput
Derive macro for capability input structs
CapabilityOutput
Derive macro for capability output structs
ConnectionParams
Derive macro for connection parameter structs
StepMeta
Derive macro for step type structs