chore: pin chain-module-sdk v0.3.0 and switch to #[chain_module]
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 1s

The pre-rename #[fai_module] attribute is gone in SDK 0.3.0; the
dependency is tag-pinned so an SDK push can no longer change what
this module builds against. Rebuilt artifact where tracked.

Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
flemming-it 2026-07-12 13:52:33 +02:00
parent 6575869097
commit 19edde150e
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ repository = "https://git.flemming.ws/chain-modules/orchestrator-llm"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", branch = "main" } chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", tag = "v0.3.0" }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde_json = "1" serde_json = "1"
thiserror = "2" thiserror = "2"

View file

@ -1,7 +1,7 @@
//! orchestrator-llm — turns natural-language goals into Plan JSON. //! orchestrator-llm — turns natural-language goals into Plan JSON.
//! //!
//! v0.3.0 migrates from a hand-written wit_bindgen scaffold to the //! v0.3.0 migrates from a hand-written wit_bindgen scaffold to the
//! `#[fai_module]` macro from `chain-module-sdk`. The behavior is //! `#[chain_module]` macro from `chain-module-sdk`. The behavior is
//! unchanged from v0.2.1: a configured Ollama-compatible endpoint //! unchanged from v0.2.1: a configured Ollama-compatible endpoint
//! drives a real plan when `llm_endpoint` is set, otherwise the //! drives a real plan when `llm_endpoint` is set, otherwise the
//! deterministic stub from v0.1.0 takes over. //! deterministic stub from v0.1.0 takes over.
@ -21,7 +21,7 @@ pub use plan::{Plan, PlanStep, build_stub_plan, parse_and_validate, validate};
use chain_module_sdk::prelude::*; use chain_module_sdk::prelude::*;
#[fai_module] #[chain_module]
pub fn invoke(_ctx: Context, inputs: Inputs) -> Result<Outputs, ModuleError> { pub fn invoke(_ctx: Context, inputs: Inputs) -> Result<Outputs, ModuleError> {
let goal = inputs.require_text("goal")?; let goal = inputs.require_text("goal")?;
let llm_endpoint = inputs let llm_endpoint = inputs