技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
core-components-and-structured-io【数据与研究】Build service-free AdalFlow Component, DataClass, Prompt, parser, and structured-output pipelines.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs AdalFlow's service-free building blocks:
Component, DataComponent, Sequential, nested component/parameter registration, state dictionaries, and lifecycle methods.DataClass, required_field, JSON/YAML/schema/signature helpers, and nested dataclass serialization.DataClassParser, string parsers, output parser selection, and Jinja Prompt rendering.Do not use this sub-skill for live model calls, provider clients, or Generator internals; route those to model-client-and-generator-workflows. Route tool/agent/streaming work to agents-tools-and-streaming, and trainer/optimizer work to evaluation-and-optimization.
super().__init__() before assigning child Component or Parameter attributes in a custom Component.call for synchronous inference. Implement acall only when the component genuinely has async work. Implement forward or bicall only for training-mode behavior.train() mode, Component.__call__ expects a Parameter output; in eval() mode, it rejects Parameter outputs. DataComponent is intentionally non-trainable and dispatches directly to call.DataClass subclass with @dataclass; use field(metadata={"desc": ...}) or metadata={"description": ...} to make prompt schemas useful.default_factory for mutable fields, and use required_field() when a required field must appear after optional fields.DataClassParser.get_output_format_str() and parse service-free strings with the same parser before connecting a Generator elsewhere.