Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

552 B
Raw Blame
package integration_test

import (
	"net/http"
	"testing"

	httpapi "github.com/simplexai-labs/linger/contracts-go/teamhubpublic"
)

func readEditorBindings(t *testing.T, env *testEnv, client *http.Client, agentID string) httpapi.AgentSkillBindingList {
	t.Helper()
	status, _, body := env.request(client, http.MethodGet, "/v0/tenants/"+acmeTenant+"/agents/"+agentID+"/skill-bindings", nil, "")
	if status != 200 {
		t.Fatalf("read bindings: %d %s", status, body)
	}
	var result httpapi.AgentSkillBindingList
	decode(t, body, &result)
	return result
}