Documentation
¶
Overview ¶
Package prompt provides template rendering for agent system prompts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderAgentPrompt ¶
RenderAgentPrompt renders the execution agent system prompt with the given data.
Types ¶
type AgentData ¶
type AgentData struct {
AgentDashboardURL string // e.g., "https://airlock.example.com/agents/{id}"
AgentRouteURL string // e.g., "https://myagent.dev.airlock.run" (empty if no agent domain)
Tools []ToolInfo
Connections []ConnInfo
Topics []TopicInfo
Webhooks []WebhookInfo
Crons []CronInfo
Routes []RouteInfo
MCPServers []MCPServerStatus
}
AgentData is the template data for rendering the execution agent system prompt.
type MCPServerStatus ¶
type MCPServerStatus struct {
Slug string
Name string
Status string // e.g. "connected, 5 tools" or "requires authentication"
// Tools is empty when the server isn't authorized or discovery hasn't run.
// When populated, the template renders a typed `declare const mcp_{slug}: {...}`
// block alongside the status line.
Tools []ToolInfo
}
type ToolInfo ¶
type ToolInfo struct {
Name string
Description string
InputSchema json.RawMessage
OutputSchema json.RawMessage
}
ToolInfo carries the hydrated tool record for prompt rendering. InputSchema and OutputSchema are JSON-encoded JSON Schemas.
type WebhookInfo ¶
Click to show internal directories.
Click to hide internal directories.