Go SDK
Install and use the XASE Go SDK.
Installation
go get github.com/xase-ai/xase-goBasic Usage
main.gogo
package main
import (
"fmt"
xase "github.com/xase-ai/xase-go"
)
func main() {
client := xase.NewClient(xase.Config{ APIKey: "xase_pk_..." })
record, err := client.Records.Create(xase.RecordCreateParams{
ModelID: "credit-model-v2",
Input: map[string]any{"customer_id": "cust_123", "income": 85000},
Output: map[string]any{"decision": "APPROVED", "limit": 25000},
Confidence: xase.Float(0.94),
})
if err != nil { panic(err) }
fmt.Println("Recorded:", record.ID)
}Human Intervention
intervene.gogo
intervention, err := client.Records.Intervene(xase.InterveneParams{
RecordID: record.ID,
ActorEmail: "analyst@company.com",
Action: "APPROVED",
Reason: "Documentation verified",
})
if err != nil { panic(err) }
fmt.Println("Intervention:", intervention.ID)Export Evidence Bundle
export.gogo
bundle, err := client.Exports.Create(xase.ExportCreateParams{
RecordID: record.ID,
IncludeRelated: xase.Bool(true),
})
if err != nil { panic(err) }
err = bundle.Download("./evidence_bundle.zip")
if err != nil { panic(err) }Set
XASE_API_KEY in environment for production apps.