Coverage for agentos/prompts/__init__.py: 100%
4 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-09 09:19 +0800
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-09 09:19 +0800
1"""AgentOS Prompt Management — v1.2.7 / v1.3.12.
3- PromptTemplate: 参数化模板,变量注入 + 版本管理。
4- PromptRegistry: 全局注册中心,按名称/标签检索。
5- PromptOptimizer: DSPy-inspired 自动提示词优化。
6- FewShotSelector: 智能 few-shot 示例选择与格式化。
7"""
9from agentos.prompts.few_shot import (
10 Example,
11 FewShotSelector,
12 SelectionStrategy,
13 build_examples,
14)
15from agentos.prompts.manager import PromptRegistry, PromptTemplate
16from agentos.prompts.optimizer import (
17 OptimizationResult,
18 OptimizationStrategy,
19 OptimizerConfig,
20 PromptCandidate,
21 PromptOptimizer,
22)
24__all__ = [
25 "PromptTemplate",
26 "PromptRegistry",
27 "PromptOptimizer",
28 "OptimizerConfig",
29 "OptimizationStrategy",
30 "OptimizationResult",
31 "PromptCandidate",
32 "FewShotSelector",
33 "Example",
34 "SelectionStrategy",
35 "build_examples",
36]