Documentation
¶
Index ¶
- Constants
- func AllowedGeneratedPath(path string) bool
- func AllowedGeneratedPathPatterns() []string
- func AuthoringDocBlock() string
- func CLIDocBlock() string
- func CLIHintsBlock() string
- func ComponentGuidanceBlock() string
- func GlobalAuthoringBlock() string
- func RoleGuidanceBlock() string
- func SyncManagedBlocks(content string) string
- func SyncedAuthoringDocBlock() string
- func SyncedCLIDocBlock() string
- func ValidationFixesForError(message string) []string
- func VarsGuidanceBlock() string
- func WorkspaceTopologyBlock() string
- type AskCommandMetadata
- type AskCommandSpec
- type AskConfigCommandMetadata
- type AskPlanCommandMetadata
- type AuthoringPolicy
- type Bundle
- type CLICommandSpec
- type CLIContext
- type CLIFlag
- type ComponentGuidance
- type ComponentKnowledge
- type ConstrainedFieldHint
- type ConstraintKnowledge
- type Manifest
- type ModeGuidance
- type PolicyKnowledge
- type PromptBlock
- type QualityRule
- type SelectedStepGuidance
- func DiscoverCandidateSteps(prompt string) []SelectedStepGuidance
- func DiscoverCandidateStepsWithOptions(prompt string, options StepGuidanceOptions) []SelectedStepGuidance
- func SelectStepGuidance(prompt string) []SelectedStepGuidance
- func SelectStepGuidanceWithOptions(prompt string, options StepGuidanceOptions) []SelectedStepGuidance
- type StepActionContext
- type StepExampleContext
- type StepFieldContext
- type StepGuidanceOptions
- type StepKindContext
- func RelevantStepKinds(prompt string) []StepKindContext
- func RelevantStepKindsWithOptions(prompt string, options StepGuidanceOptions) []StepKindContext
- func StepKind(kind string) (StepKindContext, bool)
- func StrongTypedAlternatives(prompt string) []StepKindContext
- func StrongTypedAlternativesWithOptions(prompt string, options StepGuidanceOptions) []StepKindContext
- type StepKnowledge
- type Topic
- type TopologyKnowledge
- type ValidationHint
- type VarsGuidance
- type VarsKnowledge
- type WorkflowKnowledge
- type WorkflowRules
- type WorkspaceTopology
Constants ¶
View Source
const ( BeginCLIDocMarker = "<!-- BEGIN GENERATED:ASK_CLI_CONTEXT -->" EndCLIDocMarker = "<!-- END GENERATED:ASK_CLI_CONTEXT -->" BeginAuthoringDocMarker = "<!-- BEGIN GENERATED:ASK_AUTHORING_CONTEXT -->" EndAuthoringDocMarker = "<!-- END GENERATED:ASK_AUTHORING_CONTEXT -->" )
Variables ¶
This section is empty.
Functions ¶
func AllowedGeneratedPath ¶
func AllowedGeneratedPathPatterns ¶
func AllowedGeneratedPathPatterns() []string
func AuthoringDocBlock ¶
func AuthoringDocBlock() string
func CLIDocBlock ¶
func CLIDocBlock() string
func CLIHintsBlock ¶
func CLIHintsBlock() string
func ComponentGuidanceBlock ¶
func ComponentGuidanceBlock() string
func GlobalAuthoringBlock ¶
func GlobalAuthoringBlock() string
func RoleGuidanceBlock ¶
func RoleGuidanceBlock() string
func SyncManagedBlocks ¶
func SyncedAuthoringDocBlock ¶
func SyncedAuthoringDocBlock() string
func SyncedCLIDocBlock ¶
func SyncedCLIDocBlock() string
func ValidationFixesForError ¶ added in v0.2.0
func VarsGuidanceBlock ¶
func VarsGuidanceBlock() string
func WorkspaceTopologyBlock ¶
func WorkspaceTopologyBlock() string
Types ¶
type AskCommandMetadata ¶
type AskCommandMetadata struct {
Short string
Plan AskPlanCommandMetadata
Config AskConfigCommandMetadata
Flags []CLIFlag
}
func AskCommandMeta ¶
func AskCommandMeta() AskCommandMetadata
type AskCommandSpec ¶ added in v0.2.2
type AskCommandSpec struct {
Root CLICommandSpec
Plan CLICommandSpec
Config CLICommandSpec
}
func CurrentCommandSpec ¶ added in v0.2.2
func CurrentCommandSpec() AskCommandSpec
type AskConfigCommandMetadata ¶
type AskConfigCommandMetadata struct {
Short string
}
type AskPlanCommandMetadata ¶
type AuthoringPolicy ¶ added in v0.2.0
type Bundle ¶ added in v0.2.2
type Bundle struct {
Workflow WorkflowKnowledge
Topology TopologyKnowledge
Components ComponentKnowledge
Vars VarsKnowledge
Policy PolicyKnowledge
Steps []StepKnowledge
Constraints []ConstraintKnowledge
}
func CurrentBundle ¶ added in v0.2.2
func CurrentBundle() Bundle
func (Bundle) ComponentPromptBlock ¶ added in v0.2.2
func (Bundle) ConstraintPromptBlock ¶ added in v0.2.2
func (Bundle) PolicyPromptBlock ¶ added in v0.2.2
func (Bundle) VarsPromptBlock ¶ added in v0.2.2
func (Bundle) WorkflowPromptBlock ¶ added in v0.2.2
type CLICommandSpec ¶ added in v0.2.2
type CLIContext ¶
type ComponentGuidance ¶
type ComponentKnowledge ¶ added in v0.2.2
type ConstrainedFieldHint ¶ added in v0.2.0
type ConstraintKnowledge ¶ added in v0.2.2
type Manifest ¶
type Manifest struct {
CLI CLIContext
Topology WorkspaceTopology
Workflow WorkflowRules
Policy AuthoringPolicy
Modes []ModeGuidance
Components ComponentGuidance
Vars VarsGuidance
StepKinds []StepKindContext
}
type ModeGuidance ¶
type PolicyKnowledge ¶ added in v0.2.2
type PromptBlock ¶
func CLIHintsPromptBlock ¶
func CLIHintsPromptBlock() PromptBlock
func ComponentGuidancePromptBlock ¶
func ComponentGuidancePromptBlock() PromptBlock
func InvariantPromptBlock ¶
func InvariantPromptBlock() PromptBlock
func PolicyPromptBlock ¶
func PolicyPromptBlock() PromptBlock
func RoleGuidancePromptBlock ¶
func RoleGuidancePromptBlock() PromptBlock
func VarsGuidancePromptBlock ¶
func VarsGuidancePromptBlock() PromptBlock
func WorkspaceTopologyPromptBlock ¶
func WorkspaceTopologyPromptBlock() PromptBlock
type QualityRule ¶ added in v0.2.0
type SelectedStepGuidance ¶ added in v0.2.0
type SelectedStepGuidance struct {
Step StepKindContext
Confidence string
Reasons []string
WhyRelevant string
}
func DiscoverCandidateSteps ¶ added in v0.2.0
func DiscoverCandidateSteps(prompt string) []SelectedStepGuidance
func DiscoverCandidateStepsWithOptions ¶ added in v0.2.0
func DiscoverCandidateStepsWithOptions(prompt string, options StepGuidanceOptions) []SelectedStepGuidance
func SelectStepGuidance ¶ added in v0.2.0
func SelectStepGuidance(prompt string) []SelectedStepGuidance
func SelectStepGuidanceWithOptions ¶ added in v0.2.0
func SelectStepGuidanceWithOptions(prompt string, options StepGuidanceOptions) []SelectedStepGuidance
type StepActionContext ¶
type StepExampleContext ¶ added in v0.2.0
type StepFieldContext ¶
type StepGuidanceOptions ¶ added in v0.2.0
type StepKindContext ¶
type StepKindContext struct {
Kind string
Category string
Group string
GroupTitle string
GroupAliases []string
Summary string
WhenToUse string
SchemaFile string
AllowedRoles []string
Actions []string
Outputs []string
MinimalShape string
CuratedShape string
KeyFields []StepFieldContext
SchemaRuleSummaries []string
ActionGuides []StepActionContext
PromptExamples []StepExampleContext
ValidationHints []ValidationHint
ConstrainedLiteralFields []ConstrainedFieldHint
Capabilities []string
ProducesArtifacts []string
ConsumesArtifacts []string
PublishesState []string
ConsumesState []string
RoleSensitive bool
VerificationRelated bool
MatchSignals []string
AntiSignals []string
QualityRules []QualityRule
Notes []string
}
func RelevantStepKinds ¶
func RelevantStepKinds(prompt string) []StepKindContext
func RelevantStepKindsWithOptions ¶ added in v0.2.0
func RelevantStepKindsWithOptions(prompt string, options StepGuidanceOptions) []StepKindContext
func StepKind ¶ added in v0.2.0
func StepKind(kind string) (StepKindContext, bool)
func StrongTypedAlternatives ¶ added in v0.2.0
func StrongTypedAlternatives(prompt string) []StepKindContext
func StrongTypedAlternativesWithOptions ¶ added in v0.2.0
func StrongTypedAlternativesWithOptions(prompt string, options StepGuidanceOptions) []StepKindContext
type StepKnowledge ¶ added in v0.2.2
type StepKnowledge struct {
Kind string
Category string
Group string
GroupTitle string
GroupAliases []string
Summary string
WhenToUse string
SchemaFile string
AllowedRoles []string
Outputs []string
Example string
KeyFields []StepFieldContext
SchemaRuleSummaries []string
ConstrainedLiteralFields []ConstrainedFieldHint
}
type Topic ¶
type Topic string
const ( TopicWorkflowInvariants Topic = "workflow-invariants" TopicPolicy Topic = "policy" TopicWorkspaceTopology Topic = "workspace-topology" TopicPrepareApplyGuidance Topic = "prepare-apply-guidance" TopicComponentsImports Topic = "components-imports" TopicVarsGuidance Topic = "vars-guidance" TopicTypedSteps Topic = "typed-steps" TopicStepQuality Topic = "step-quality-rules" TopicCLIHints Topic = "cli-hints" TopicProjectPhilosophy Topic = "project-philosophy" TopicLocalFacts Topic = "local-facts" TopicExternalEvidence Topic = "external-evidence" )
type TopologyKnowledge ¶ added in v0.2.2
type ValidationHint ¶ added in v0.2.0
type VarsGuidance ¶
type VarsKnowledge ¶ added in v0.2.2
type WorkflowKnowledge ¶ added in v0.2.2
type WorkflowRules ¶
Click to show internal directories.
Click to hide internal directories.