Documentation
¶
Overview ¶
Package agentpaas embeds the Python SDK (python/agentpaas_sdk/) directly into the agentpaasd binary so that it is available at pack time regardless of how the binary was installed (brew, manual copy, release tarball).
Without this, a brew-only install has no SDK on disk and every packed image fails at runtime with:
ModuleNotFoundError: No module named 'agentpaas_sdk'
The go:embed directive must be in a .go file whose directory is a parent of the files to embed. We place this file at the repo root so it can embed python/agentpaas_sdk/**.
Index ¶
Constants ¶
const EmbeddedSDKPrefix = "python/agentpaas_sdk"
EmbeddedSDKDir returns the path that should be used as SDKDir when extracting the embedded SDK. Files are under "python/agentpaas_sdk".
Variables ¶
This section is empty.
Functions ¶
func EmbeddedSDKFiles ¶
EmbeddedSDKFiles returns the list of embedded SDK file paths (POSIX-style, relative to the embed root, e.g. "python/agentpaas_sdk/__init__.py"). Excludes directories, __pycache__, and .pyc files.
func ExtractEmbeddedSDK ¶
ExtractEmbeddedSDK writes the embedded SDK files into dir, preserving the python/agentpaas_sdk/ directory structure. Returns the path to use as SDKDir (dir + "/python"). The caller MUST remove the temp dir when done.
func ExtractEmbeddedSDKToTemp ¶
ExtractEmbeddedSDKToTemp creates a temporary directory, extracts the embedded SDK into it, and returns the SDKDir path. The caller MUST call the cleanup function when done with the SDK.
func HasEmbeddedSDK ¶
func HasEmbeddedSDK() bool
HasEmbeddedSDK reports whether the binary contains the embedded SDK.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
control/v1
Package controlv1 is a reverse proxy.
|
Package controlv1 is a reverse proxy. |
|
trigger/v1
Package triggerv1 is a reverse proxy.
|
Package triggerv1 is a reverse proxy. |
|
cmd
|
|
|
agent
command
Package main provides the AgentPaaS CLI entry point.
|
Package main provides the AgentPaaS CLI entry point. |
|
agentpaas
command
Package main provides the AgentPaaS CLI entry point.
|
Package main provides the AgentPaaS CLI entry point. |
|
agentpaasd
command
Package main is the AgentPaaS daemon (agentpaasd) entry point.
|
Package main is the AgentPaaS daemon (agentpaasd) entry point. |
|
harness
command
Package main is the AgentPaaS harness (agentpaas-harness) entry point.
|
Package main is the AgentPaaS harness (agentpaas-harness) entry point. |
|
internal
|
|
|
audit
Package audit provides hash-chain log, export, and verification for the AgentPaaS daemon.
|
Package audit provides hash-chain log, export, and verification for the AgentPaaS daemon. |
|
cli
Package cli implements the AgentPaaS CLI command surface using cobra.
|
Package cli implements the AgentPaaS CLI command surface using cobra. |
|
daemon
Package daemon provides the AgentPaaS control daemon — a Unix-socket-bound gRPC server that implements the ControlService API.
|
Package daemon provides the AgentPaaS control daemon — a Unix-socket-bound gRPC server that implements the ControlService API. |
|
dashboard
Package dashboard provides the embedded web dashboard for AgentPaaS. The dashboard is a Preact/TypeScript SPA compiled to static assets and embedded via go:embed.
|
Package dashboard provides the embedded web dashboard for AgentPaaS. The dashboard is a Preact/TypeScript SPA compiled to static assets and embedded via go:embed. |
|
dockerclient
Package dockerclient provides a Docker client factory that mirrors the Docker CLI's endpoint discovery order.
|
Package dockerclient provides a Docker client factory that mirrors the Docker CLI's endpoint discovery order. |
|
doctor
Package doctor provides system diagnostic checks for agentpaas.
|
Package doctor provides system diagnostic checks for agentpaas. |
|
events
Package events provides the event bus and webhook delivery mechanism.
|
Package events provides the event bus and webhook delivery mechanism. |
|
harness
Package harness runs Python agent code behind a local HTTP lifecycle API.
|
Package harness runs Python agent code behind a local HTTP lifecycle API. |
|
home
Package home provides the agentpaas home directory layout, discovery, and secure permission management.
|
Package home provides the agentpaas home directory layout, discovery, and secure permission management. |
|
identity
Package identity provides the local CA, agent keys, and SVID issuance.
|
Package identity provides the local CA, agent keys, and SVID issuance. |
|
logging
Package logging provides structured logging with built-in redaction for sensitive data.
|
Package logging provides structured logging with built-in redaction for sensitive data. |
|
mcpmanager
Package mcpmanager manages MCP server resources declared in agent policy.
|
Package mcpmanager manages MCP server resources declared in agent policy. |
|
operator
Package operator provides the stable machine-readable diagnosis and repair-hint layer consumed by the AgentPaaS CLI, dashboard, and Block 13 MCP/Hermes integrations.
|
Package operator provides the stable machine-readable diagnosis and repair-hint layer consumed by the AgentPaaS CLI, dashboard, and Block 13 MCP/Hermes integrations. |
|
otel
Package otel provides the in-process OpenTelemetry collector and SQLite WAL store for AgentPaaS observability data.
|
Package otel provides the in-process OpenTelemetry collector and SQLite WAL store for AgentPaaS observability data. |
|
pack
Package pack provides the build pipeline, SBOM, signing, and secret scanning.
|
Package pack provides the build pipeline, SBOM, signing, and secret scanning. |
|
policy
Package policy parses, validates, and compiles policy into agentgateway configuration.
|
Package policy parses, validates, and compiles policy into agentgateway configuration. |
|
runtime
Package runtime provides the RuntimeDriver interface and its docker implementation.
|
Package runtime provides the RuntimeDriver interface and its docker implementation. |
|
secrets
Package secrets provides SecretStore implementations for local profile secrets.
|
Package secrets provides SecretStore implementations for local profile secrets. |
|
service
Package service generates launchd and systemd service unit files for the AgentPaaS daemon (agentpaasd).
|
Package service generates launchd and systemd service unit files for the AgentPaaS daemon (agentpaasd). |
|
trigger
Package trigger serves the AgentPaaS Trigger API over gRPC on port 7718 and REST through grpc-gateway on port 7717.
|
Package trigger serves the AgentPaaS Trigger API over gRPC on port 7718 and REST through grpc-gateway on port 7717. |
|
test
|
|
|
golden
Package golden — Docker-tier and slow-tier graders.
|
Package golden — Docker-tier and slow-tier graders. |
|
redteam
Package redteam implements the AgentPaaS P1 red-team smoke gate.
|
Package redteam implements the AgentPaaS P1 red-team smoke gate. |