Documentation
¶
Overview ¶
Package query provides natural-language plan search powered by an AI provider. It serialises the current plan into a compact context block and submits the user's question to the provider, returning a plain-text answer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Query ¶
func Query(ctx context.Context, p provider.Provider, model string, plan *pm.Plan, question string) (string, error)
Query answers a natural-language question about the given plan. plan must not be nil. question is the free-form user query. model may be empty (the provider will use its default). The raw provider response is returned as-is (trimmed of leading/trailing whitespace).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.