agent/pkg/agentic/auth_example_test.go
Virgil 27928fc9b4 feat(agentic): add platform auth compatibility surfaces
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 14:23:12 +00:00

17 lines
385 B
Go

// SPDX-License-Identifier: EUPL-1.2
package agentic
import "fmt"
func Example_parseAgentAPIKey() {
key := parseAgentAPIKey(map[string]any{
"id": 7,
"name": "codex local",
"prefix": "ak_live",
"permissions": []any{"plans:read", "plans:write"},
})
fmt.Println(key.ID, key.Name, key.Prefix, len(key.Permissions))
// Output: 7 codex local ak_live 2
}