#[entrypoint]Expand description
Define a LangGraph-style workflow entry point.
Converts an async function that takes serde_json::Value and returns
Result<serde_json::Value, SynapticError> into a factory function that
returns an Entrypoint.
§Attributes
name = "..."— override the entrypoint name (defaults to the function name)checkpointer = "..."— hint which checkpointer backend to use (e.g."memory")
§Example
ⓘ
use synaptic_macros::entrypoint;
use synaptic_core::SynapticError;
use serde_json::Value;
#[entrypoint(checkpointer = "memory")]
async fn my_workflow(input: Value) -> Result<Value, SynapticError> {
Ok(input)
}
// `my_workflow` is now a function returning `Entrypoint`
let ep = my_workflow();