Documentation
¶
Index ¶
- Constants
- func EnsureDefault(fs afs.Service)
- func EnsureDefaultAt(ctx context.Context, fs afs.Service, root string)
- func Path(kind string) string
- func ResolvePathTemplate(value string) string
- func Root() string
- func RuntimeRoot() string
- func SetRuntimeRoot(path string)
- func SetStateRoot(path string)
- func StateRoot() string
Constants ¶
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 ¶
EnsureDefault ensures built-in defaults are available in the active workspace root.
func EnsureDefaultAt ¶ added in v0.2.31
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 ResolvePathTemplate ¶ added in v0.2.38
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:
- $AGENTLY_WORKSPACE environment variable, if set and non-empty
- $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.
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
|
|
|
service
|
|