Go SDK

HELM 커널용 Go 클라이언트 — 이유 코드가 입력된 고성능입니다.

Go SDK

You may not need the SDK. Any HTTP client pointing to localhost:8080 works — see the Quickstart. The SDK adds typed Go bindings.

The Go SDK ships in-repo at sdk/go/.

Install

go get github.com/Mindburn-Labs/helm-oss/sdk/go

Usage

import helm "github.com/Mindburn-Labs/helm-oss/sdk/go/client"

c := helm.New("http://localhost:8080")

res, err := c.ChatCompletions(helm.ChatCompletionRequest{
    Model:    "gpt-4",
    Messages: []helm.ChatMessage{{Role: "user", Content: "List /tmp"}},
})

if apiErr, ok := err.(*helm.HelmApiError); ok {
    fmt.Println("Denied:", apiErr.ReasonCode) // DENY_TOOL_NOT_FOUND
}

Next steps