Documentation
¶
Index ¶
Constants ¶
const DeepSeekAddon = `` /* 274-byte string literal not displayed */
const GLMAddon = `` /* 276-byte string literal not displayed */
const KimiAddon = `` /* 215-byte string literal not displayed */
const QwenAddon = `` /* 200-byte string literal not displayed */
const SerialAddon = `` /* 149-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func FamilyAddon ¶
FamilyAddon returns a model-family-specific prompt nudge, or "" when the family is unknown or needs no special handling. These addons are appended after the base system prompt + thinking/serial addons (see ForModel).
Each addon targets observed failure modes:
- qwen: tool-call format drift (mixed prose + tool args)
- glm: parallel tool calls sometimes drop; serial is safer
- deepseek: weak instruction following on multi-step; needs explicit sequencing
- kimi: over-elaboration; needs conciseness guard
func ForModel ¶
ForModel returns a model-specific prompt addon. The base DefaultSystemPrompt is model-agnostic; this function adds targeted instructions for models that need them (e.g. serial-constraint models). Returns empty string for models that work fine with the default prompt.
Note: thinking behavior is now declared per-provider via ProviderEntry.ReasoningProtocol rather than injected as a prompt addon for a hardcoded model allowlist, so there is no thinking-protocol branch here.
func ModelFamily ¶
ModelFamily detects the vendor family from a model ID like "openai/gpt-4o" or "qwen/qwen3-max" or bare "gpt-4o".
func WithChecks ¶
func WithChecks(ctx context.Context, checks []VerifyCheck) context.Context
Types ¶
type VerifyCheck ¶
VerifyCheck is a host-observable project check extracted from structured project memory. It is runtime-only and is not serialized into prompts.
func ExtractHostChecks ¶
func ExtractHostChecks(docs []memory.Source) []VerifyCheck
ExtractHostChecks reads only the structured "fairpeer host checks" section. Ordinary project instructions remain guidance and do not become hard gates.
func FromContext ¶
func FromContext(ctx context.Context) []VerifyCheck