Go Quickstart
Who This Is For
Application engineers integrating governed session + execution calls in under 5 minutes.
Prerequisites
- DriftGate session token
- Staging workspace access
- Agent identifier (example:
refund-agent)
Two-Line Hello World
Go
session, _ := client.SessionStart(ctx, driftgate.SessionStartRequest{Agent: "refund-agent"})
_, _ = session.Execute(ctx, driftgate.ExecutionRequest{Input: map[string]any{"orderId": "123"}})Production Considerations
- Keep staging as default during integration
- Capture
meta.requestIdon every call - Add retry logic only for retryable errors
Failure Handling
See Error Codes and Envelope Reference.
Last updated on