Documentation
¶
Index ¶
- func ArchiveBundle(bundle *Bundle) ([]byte, error)
- func BundleArchiveName(resp *BundleResponse) string
- func PreviewAgentID(agentName string) string
- func SuggestedAgentID(agentName string) string
- type APIKeyMode
- type Bundle
- type BundleAPIKey
- type BundleAgent
- type BundleArtifact
- type BundleDefault
- type BundleIntegration
- type BundleIntegrationRevision
- type BundleRequest
- type BundleResponse
- type BundleTenant
- type IntegrationInput
- type RegenerateInput
- type Runtime
- type SelectedTool
- type VerificationLink
- type WrittenArtifact
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveBundle ¶
func BundleArchiveName ¶
func BundleArchiveName(resp *BundleResponse) string
func PreviewAgentID ¶
func SuggestedAgentID ¶
Types ¶
type APIKeyMode ¶
type APIKeyMode string
const ( APIKeyModeRawProvided APIKeyMode = "raw_provided" APIKeyModePreview APIKeyMode = "preview_placeholder" APIKeyModeExistingKeyRef APIKeyMode = "existing_key_reference" )
type Bundle ¶
type Bundle struct {
Title string `json:"title"`
Summary string `json:"summary"`
Runtime string `json:"runtime"`
RuntimeLabel string `json:"runtime_label"`
StarterFileName string `json:"starter_file_name"`
Environment map[string]string `json:"environment"`
EnvironmentScript string `json:"environment_script"`
EnvironmentFile string `json:"environment_file"`
StarterSnippet string `json:"starter_snippet"`
ReadmeSnippet string `json:"readme_snippet"`
SampleCall string `json:"sample_call"`
Artifacts []BundleArtifact `json:"artifacts"`
VerificationChecklist []string `json:"verification_checklist"`
VerificationLinks []VerificationLink `json:"verification_links"`
AppliedDefaults []BundleDefault `json:"applied_defaults,omitempty"`
Notes []string `json:"notes"`
}
func BuildBundle ¶
func BuildBundle(req BundleRequest) (*Bundle, error)
type BundleAPIKey ¶
type BundleAgent ¶
type BundleArtifact ¶
type BundleArtifact struct {
ID string `json:"id"`
Label string `json:"label"`
FileName string `json:"file_name"`
PathHint string `json:"path_hint"`
Kind string `json:"kind"`
Purpose string `json:"purpose"`
Writable bool `json:"writable"`
Executable bool `json:"executable,omitempty"`
Language string `json:"language,omitempty"`
Content string `json:"content"`
}
type BundleDefault ¶
type BundleIntegration ¶
type BundleIntegration struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
AgentID string `json:"agent_id"`
Runtime string `json:"runtime"`
EnvironmentLabel string `json:"environment_label,omitempty"`
OwnerName string `json:"owner_name,omitempty"`
Description string `json:"description,omitempty"`
ApprovalPosture string `json:"approval_posture,omitempty"`
Tools []SelectedTool `json:"tools,omitempty"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type BundleIntegrationRevision ¶
type BundleIntegrationRevision struct {
ID string `json:"id"`
IntegrationID string `json:"integration_id"`
TenantID string `json:"tenant_id"`
AgentID string `json:"agent_id"`
Mode string `json:"mode"`
Runtime string `json:"runtime"`
EnvironmentLabel string `json:"environment_label,omitempty"`
OwnerName string `json:"owner_name,omitempty"`
Description string `json:"description,omitempty"`
ApprovalPosture string `json:"approval_posture,omitempty"`
Tools []SelectedTool `json:"tools,omitempty"`
CreatedAt string `json:"created_at"`
}
type BundleRequest ¶
type BundleResponse ¶
type BundleResponse struct {
Mode string `json:"mode"`
Tenant BundleTenant `json:"tenant"`
Agent BundleAgent `json:"agent"`
Integration *BundleIntegration `json:"integration,omitempty"`
APIKey *BundleAPIKey `json:"api_key,omitempty"`
Bundle *Bundle `json:"bundle"`
}
type BundleTenant ¶
type IntegrationInput ¶
type IntegrationInput struct {
Runtime string `json:"runtime"`
TenantID string `json:"tenant_id,omitempty"`
NewTenantName string `json:"new_tenant_name,omitempty"`
AgentName string `json:"agent_name"`
EnvironmentLabel string `json:"environment_label,omitempty"`
OwnerName string `json:"owner_name,omitempty"`
Description string `json:"description,omitempty"`
ApprovalPosture string `json:"approval_posture,omitempty"`
Tools []SelectedTool `json:"tools"`
}
type RegenerateInput ¶
type RegenerateInput struct {
IntegrationInput
AgentID string `json:"agent_id"`
}
type SelectedTool ¶
type VerificationLink ¶
type WrittenArtifact ¶
func WriteArtifacts ¶
func WriteArtifacts(bundle *Bundle, outputDir string) ([]WrittenArtifact, error)
Click to show internal directories.
Click to hide internal directories.