workspace

package
v0.2.65 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindAgent      = "agents"
	KindModel      = "models"
	KindEmbedder   = "embedders"
	KindMCP        = "mcp"
	KindWorkflow   = "workflows"
	KindTool       = "tools"
	KindToolBundle = "tools/bundles"
	KindToolHints  = "tools/hints"
	KindOAuth      = "oauth"
	KindFeeds      = "feeds"
	KindA2A        = "a2a"
)

Predefined kinds. Callers may still supply arbitrary sub-folder names when they need custom separation.

Variables

This section is empty.

Functions

func EnsureDefault

func EnsureDefault(fs afs.Service)

EnsureDefault ensures built-in defaults are available in the active workspace root.

func EnsureDefaultAt added in v0.2.31

func EnsureDefaultAt(ctx context.Context, fs afs.Service, root string)

EnsureDefaultAt ensures built-in defaults are available under the supplied workspace root. If the root already contains a config.yaml, it assumes the workspace is user-managed and does not seed any built-in defaults.

func Path

func Path(kind string) string

Path returns a sub-path under the root for the given kind (e.g. "agents").

func ResolvePathTemplate added in v0.2.38

func ResolvePathTemplate(value string) string

ResolvePathTemplate expands supported macros in a path template. Supported macros: ${workspaceRoot}, ${runtimeRoot}.

func Root

func Root() string

Root returns the absolute path to the Agently workspace directory. The lookup order is:

  1. $AGENTLY_WORKSPACE environment variable, if set and non-empty
  2. $HOME/.agently

The result is cached for the lifetime of the process.

func RuntimeRoot added in v0.2.38

func RuntimeRoot() string

RuntimeRoot returns the runtime root path. It defaults to the workspace root unless overridden via AGENTLY_RUNTIME_ROOT or SetRuntimeRoot.

func SetRuntimeRoot added in v0.2.38

func SetRuntimeRoot(path string)

SetRuntimeRoot overrides the runtime root path for this process.

func SetStateRoot added in v0.2.38

func SetStateRoot(path string)

SetStateRoot overrides the state root path for this process.

func StateRoot added in v0.2.38

func StateRoot() string

StateRoot returns the state root path. It defaults to RuntimeRoot()/state unless overridden.

Types

This section is empty.

Directories

Path Synopsis
Package hotswap aggregates imports that are required by the hot-swap feature but are not yet referenced in the early scaffolding stages.
Package hotswap aggregates imports that are required by the hot-swap feature but are not yet referenced in the early scaffolding stages.
loader
fs
a2a
mcp
service

Jump to

Keyboard shortcuts

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