Getting Started
Getting Started
A short walk-through of installing the SDK, initialising it, and confirming that a tool call is reaching the AI Agent Assembly gateway.
Prerequisites
- Go ≥ 1.24 (matches the floor declared in
go.mod) - An AAASM gateway URL and API key (see your operator)
- (Optional) a C compiler if you want to enable the native FFI transport
with
-tags aa_ffi_go. The default transport is pure-Go and needs none.
Install
go get github.com/AI-agent-assembly/go-sdkNote —
go getand pkg.go.dev indexing are blocked today pending a module-path rename ticket (thego.moddeclaresgithub.com/agent-assembly/go-sdk, but the canonical GitHub URL isgithub.com/AI-agent-assembly/go-sdk). Until that ticket lands, clone the repo and use areplacedirective in your consumer.
Initialise
ctx, err := assembly.Init(context.Background(),
assembly.WithGatewayURL("https://gateway.example.com"),
assembly.WithAPIKey("..."),
assembly.WithFailClosed(false),
)
if err != nil {
log.Fatal(err)
}
defer ctx.Close()Wrap your tools
wrapped := assembly.WrapTools(myTools, ctx)Each call against wrapped is checked against the gateway policy before
execution and recorded after.
Where to next
- Architecture — what’s actually happening inside the SDK
- API reference — godoc on pkg.go.dev (when indexing is unblocked)
- Guides — deeper how-tos