core

package
v0.67.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package core groups the leaf kernels every other internal package needs and that need almost nothing back: tool metadata, agent context keys, sentinel errors, agent access checks, provider credentials.

Admission rule, enforced by internal/boundary_test.go: internal/core/** may import the standard library, third-party modules, github.com/CherryHQ/stella/pkg/**, other internal/core/**, internal/authz, and internal/platform/config — nothing else inside the repo.

A package that needs more than that is not a kernel; it is a domain package with a runtime dependency and it stays where it lives. internal/agent/settingspolicy is the worked example: its Available() takes a runtime.RunnerParams.

This directory holds no code of its own; each kernel is a subpackage keeping its original package name (toolmeta, access, agentctx, agenterr, providercred), so moving a package here changes import lines and nothing else.

Directories

Path Synopsis
Package access is the policy-enforcement point for Agent resources.
Package access is the policy-enforcement point for Agent resources.
Package providercred owns per-Agent LLM Provider API-key overrides.
Package providercred owns per-Agent LLM Provider API-key overrides.
Package toolmeta describes generated model-facing tools: the name, the family it belongs to, and the exact input schema bound to one action.
Package toolmeta describes generated model-facing tools: the name, the family it belongs to, and the exact input schema bound to one action.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL