package main
import (
"context"
"fmt"
"log"
"os"
mycelium "github.com/adelaidasofia/mycelium-sdk-go"
)
func main() {
client := mycelium.NewClient(
"https://runtime.myceliumai.co",
os.Getenv("MYCELIUM_API_KEY"),
)
entry := &mycelium.MemoryEntry{
TenantID: "acme-corp",
Type: "decision",
Title: "Move to weekly review cadence",
ValidFrom: "2026-04-15",
}
created, err := client.Write(context.Background(), entry)
if err != nil {
log.Fatal(err)
}
fmt.Printf("Created entry: %s\n", created.ID)
}