golem icon indicating copy to clipboard operation
golem copied to clipboard

Checkpoint/verify API into the language-specific SDKs

Open vigoo opened this issue 7 months ago • 1 comments

Concept:

let cp1 = golem::checkpoint("pre-json generation");

...

let json = llm.call(prompt);

// Automatically rolls back to last checkpoint if verification fails.
let result = cp1.verify(Result::from_json(json));

This should be implementable using the existing transaction API.

We should have the new API in:

  • golem-rust
  • golem-go
  • golem-ts
  • golem-py

vigoo avatar Apr 23 '25 11:04 vigoo

This should be done in the unified Rust & TS agent SDKs for 1.4

vigoo avatar Aug 18 '25 18:08 vigoo