从提示词工程到AI智能体开发:2026年AI工程师进阶指南

发布时间:2026/7/17 11:08:51
从提示词工程到AI智能体开发:2026年AI工程师进阶指南 如果你还在把AI当作简单的聊天机器人或者只会用帮我写个代码这样的基础提示词那么2026年的AI职场可能会让你措手不及。真正的AI能力分水岭已经出现一边是只会简单对话的用户另一边是能够设计、构建和部署AI智能体的专业开发者。最近与多家科技公司技术负责人交流时发现一个明显趋势企业对AI人才的需求正在从会使用AI工具转向能构建AI系统。普通提示词工程师的薪资增长已经放缓而能够设计复杂AI智能体的工程师薪资却逆势上涨30%以上。这篇文章不会告诉你AI很重要这样的正确废话而是直接拆解从基础提示词到高级AI智能体的完整技能栈。无论你是想转型AI的开发工程师还是希望提升效率的技术管理者都能找到可立即落地的学习路径。1. 这篇文章真正要解决的问题很多开发者学习AI技能时容易陷入两个误区要么停留在基础提示词层面觉得AI能力不过如此要么直接跳到复杂的智能体开发却被各种框架和概念搞得一头雾水。真正的问题在于缺少一个清晰的进阶路径不知道每个阶段应该掌握什么技能达到什么水平。更具体地说开发者需要解决以下实际问题技能断层从简单的对话式AI到可执行复杂任务的智能体中间缺少过渡性的实践项目工具选择困难面对数十种AI开发框架和工具不知道哪些值得投入时间学习工程化盲区会写提示词但不知道如何将AI能力集成到现有系统中缺乏生产环境部署经验效果评估缺失无法系统评估AI应用的效果不知道优化方向在哪里本文将通过具体的代码示例、架构设计和实战案例帮你建立从提示词工程到AI智能体开发的完整技能体系。重点不是概念介绍而是可复用的工程实践。2. 基础概念与核心原理2.1 提示词工程从技巧到科学传统认知中提示词工程就是如何更好地提问。但实际它更接近自然语言接口设计。区别在于前者关注单次交互效果后者关注系统级的稳定输出。关键认知升级提示词不是对话技巧而是约束系统行为的工程方法。# 不好的提示词示例 - 过于开放 prompt 帮我分析一下这个数据集 # 好的提示词示例 - 明确约束和输出格式 prompt 你是一个数据分析专家请按照以下要求处理数据 1. 首先识别数据集的字段类型和缺失值比例 2. 对数值型字段进行描述性统计均值、标准差、分位数 3. 输出格式要求 - 使用Markdown表格展示结果 - 缺失值比例超过20%的字段需要标注警告 - 统计结果保留两位小数 数据集{dataset} 这种结构化提示词将AI从创意伙伴变成了可靠的工具输出结果可预测、可解析便于后续自动化处理。2.2 AI智能体从对话到行动智能体Agent与普通AI助手的本质区别在于自主行动能力。普通AI生成文本智能体执行任务。维度普通AI助手AI智能体目标回答单次问题完成复杂任务时效单次对话有效跨多轮会话能力文本生成工具调用决策执行输出自然语言回复结构化结果行动日志智能体的核心组件包括身份定义明确的角色和专业领域工具集可调用的API、函数、外部服务记忆系统会话历史、知识库、状态管理决策逻辑任务分解、优先级判断、错误处理3. 环境准备与前置条件开始AI智能体开发前需要搭建合适的技术栈。以下是2026年主流的选择方案3.1 基础环境要求# 推荐Python版本 python --version # Python 3.9 # 安装核心AI开发库 pip install openai anthropic langchain crewai autogen # 开发工具链 pip install jupyter notebook # 实验环境 pip install pytest pytest-asyncio # 测试框架 pip install black isort # 代码格式化3.2 模型API配置根据使用场景选择适合的模型提供商# 多模型配置示例 MODEL_CONFIG { openai: { api_key: sk-..., model: gpt-4o, # 综合能力最强 max_tokens: 4000 }, anthropic: { api_key: claude-3-5-sonnet, # 推理能力突出 max_tokens: 4096 }, local: { base_url: http://localhost:11434/api/generate, model: llama3.1:8b # 隐私敏感场景 } }3.3 开发环境选择初学者推荐Google Colab OpenAI API优点零配置立即开始实验缺点网络依赖强不适合生产环境进阶开发者VSCode Local AI模型优点完全控制数据隐私有保障缺点需要硬件资源调试复杂度高企业级开发Docker 云服务API优点可扩展易于集成到现有系统缺点成本较高需要运维支持4. 提示词工程实战进阶4.1 结构化提示词设计模板基于网络搜索材料中的智能体提示词工程原则我们可以构建一个可复用的提示词模板def build_agent_prompt(role, capabilities, constraints, tools, examples): 构建智能体系统提示词 prompt_template # 身份定义 你是{role}具有以下核心特质 {traits} # 能力边界 ## 你可以执行的操作 {can_do} ## 你不能执行的操作 {cannot_do} # 行为约束 {constraints} # 可用工具 {tools_description} # 输出格式要求 {output_format} # 任务执行示例 {examples} 当前任务{{task}} return prompt_template.format( rolerole, traits\n.join([f- {trait} for trait in capabilities[traits]]), can_do\n.join([f- {action} for action in capabilities[can_do]]), cannot_do\n.join([f- {action} for action in capabilities[cannot_do]]), constraints\n.join([f- {constraint} for constraint in constraints]), tools_descriptiontools, output_formatbuild_output_format(), examplesexamples ) # 具体示例代码审查智能体 code_review_agent build_agent_prompt( role高级代码审查专家, capabilities{ traits: [精通Python、JavaScript代码规范, 注重安全性和性能, 善于发现潜在bug], can_do: [ 审查代码逻辑错误, 检查安全漏洞, 提出性能优化建议, 验证代码规范符合性 ], cannot_do: [ 直接修改代码, 执行可能有破坏性的操作, 提供法律建议 ] }, constraints[ 安全审查优先于性能优化, 不确定的建议必须明确标注待验证, 每个问题必须提供具体代码行号和修改建议 ], tools..., examples... )4.2 高级提示词技巧思维链与自我修正简单的提示词只能得到简单的回答复杂的任务需要引导模型展示推理过程# ReAct模式推理行动 react_prompt 请用以下格式回答问题 思考你的推理过程 行动需要执行的操作 观察行动结果 答案最终结论 问题计算2024年北京奥运会中国代表团的金牌数并分析主要夺金项目。 思考首先需要确认2024年奥运会的实际举办情况... # 自我修正提示词 self_correction_prompt 请按以下步骤处理任务 1. 首先给出初步答案 2. 从三个不同角度验证答案的合理性 3. 识别潜在的错误或偏见 4. 给出修正后的最终答案 任务评估这个投资方案的风险等级。 4.3 提示词缓存与性能优化当提示词变得复杂时需要考虑性能问题。基于搜索材料中的提示词缓存技术class PromptCache: 提示词缓存管理器 def __init__(self): self.static_prefix None self.cache_enabled True def build_messages(self, task, tools, runtime_state): 构建消息序列优化缓存命中 # 静态部分前置 system_prompt self._load_base_prompt() self._format_tools(tools) # 动态部分后置 volatile_sections [] if runtime_state.active_project: volatile_sections.append(f当前项目{runtime_state.active_project}) messages [ {role: system, content: system_prompt}, ] if volatile_sections: messages.append({ role: developer, content: \n.join(volatile_sections) }) messages.append({role: user, content: task}) return messages def _load_base_prompt(self): 加载基础提示词可缓存部分 return # 身份定义 你是专业的AI助手... # 核心规范 - 准确性和安全性优先 - 不确定时主动说明 ... # 使用示例 cache_manager PromptCache() messages cache_manager.build_messages( task分析Q3财报数据, toolsavailable_tools, runtime_statecurrent_state )5. AI智能体开发实战5.1 智能体架构设计一个完整的AI智能体包含多个核心模块class AIAgent: AI智能体基础架构 def __init__(self, name, role, capabilities, tools): self.name name self.role role self.capabilities capabilities self.tools tools self.memory ShortTermMemory() self.knowledge_base KnowledgeBase() async def execute_task(self, task_description): 执行任务的核心流程 try: # 1. 任务解析与规划 plan await self.plan(task_description) # 2. 分步骤执行 results [] for step in plan.steps: result await self.execute_step(step) results.append(result) # 3. 阶段性验证 if not self.validate_step_result(step, result): correction await self.correct_course(step, result) results.append(correction) # 4. 结果整合与输出 final_result await self.synthesize_results(results) return final_result except Exception as e: error_result await self.handle_error(e, task_description) return error_result async def plan(self, task): 任务分解与规划 planning_prompt f 基于你的角色{self.role}和能力{self.capabilities}将以下任务分解为具体步骤 任务{task} 请按以下格式输出 1. 步骤1描述 [预计耗时] [所需工具] 2. 步骤2描述 [预计耗时] [所需工具] ... response await self.llm_call(planning_prompt) return self.parse_plan(response) class ResearchAgent(AIAgent): 研究分析专用智能体 def __init__(self): super().__init__( nameResearchAnalyst, role专业研究分析员, capabilities{ data_analysis: 高级, web_research: 专家, report_writing: 专业 }, tools[WebSearchTool(), DataAnalysisTool(), ReportGenerator()] ) async def execute_step(self, step): 重写步骤执行逻辑 if 搜索 in step.description: return await self.tools[web_search].execute(step.parameters) elif 分析 in step.description: return await self.tools[data_analysis].execute(step.parameters) # ... 其他工具调用5.2 多智能体协作系统复杂任务需要多个智能体协作完成class MultiAgentSystem: 多智能体协作系统 def __init__(self): self.agents { researcher: ResearchAgent(), analyst: DataAnalystAgent(), writer: ReportWriterAgent(), reviewer: QualityReviewAgent() } self.coordinator CoordinatorAgent() self.communication_bus MessageBus() async def execute_complex_task(self, task): 执行复杂任务的多智能体协作 # 1. 任务分配 subtasks await self.coordinator.decompose_task(task) # 2. 智能体分配 assignments await self.coordinator.assign_subtasks(subtasks) # 3. 并行执行 tasks [] for agent_name, subtask in assignments.items(): task asyncio.create_task( self.agents[agent_name].execute_task(subtask) ) tasks.append(task) # 4. 结果收集与整合 results await asyncio.gather(*tasks, return_exceptionsTrue) # 5. 最终合成 final_result await self.coordinator.synthesize_results(results) return final_result # 使用示例市场研究报告生成 async def generate_market_research(topic): system MultiAgentSystem() report await system.execute_complex_task( f生成关于{topic}的详细市场研究报告包括市场规模、竞争分析、趋势预测 ) return report5.3 工具集成与API调用智能体的核心价值在于能够使用工具执行实际任务class ToolRegistry: 工具注册与管理 def __init__(self): self.tools {} def register_tool(self, name, tool_instance): 注册工具 self.tools[name] tool_instance def get_tool_schema(self, name): 获取工具的JSON Schema描述 tool self.tools[name] return { name: name, description: tool.description, parameters: tool.parameters_schema, returns: tool.returns_schema } class WebSearchTool: 网页搜索工具示例 def __init__(self): self.description 使用搜索引擎获取最新信息 self.parameters_schema { type: object, properties: { query: {type: string, description: 搜索关键词}, max_results: {type: integer, description: 最大结果数} }, required: [query] } async def execute(self, parameters): 执行搜索 import requests search_url https://api.searchprovider.com/v1/search response requests.get(search_url, params{ q: parameters[query], limit: parameters.get(max_results, 5) }) return { status: success, data: response.json()[results], metadata: { result_count: len(response.json()[results]), search_time: response.elapsed.total_seconds() } } # 工具使用示例 tool_registry ToolRegistry() tool_registry.register_tool(web_search, WebSearchTool()) # 智能体调用工具 async def agent_tool_call(agent, tool_name, parameters): 智能体安全调用工具 if tool_name not in agent.authorized_tools: raise PermissionError(fAgent not authorized to use {tool_name}) tool tool_registry.tools[tool_name] return await tool.execute(parameters)6. 完整项目实战智能代码审查系统让我们通过一个完整的项目来整合所有概念构建一个能够自动审查代码质量的AI智能体系统。6.1 系统架构设计# 文件结构 project/ ├── agents/ │ ├── code_analyzer.py # 代码分析智能体 │ ├── security_auditor.py # 安全审计智能体 │ └── quality_reviewer.py # 质量评审智能体 ├── tools/ │ ├── static_analyzer.py # 静态分析工具 │ ├── test_runner.py # 测试运行工具 │ └── metric_calculator.py # 指标计算工具 ├── core/ │ ├── agent_orchestrator.py # 智能体协调器 │ └── report_generator.py # 报告生成器 └── config/ └── prompts.py # 所有提示词配置 # 核心协调器实现 class CodeReviewOrchestrator: 代码审查协调器 def __init__(self): self.agents self.initialize_agents() self.workflow self.define_review_workflow() def initialize_agents(self): 初始化各专业智能体 return { analyzer: CodeAnalysisAgent( name代码分析专家, focus_areas[复杂度, 重复代码, 规范符合性] ), auditor: SecurityAuditAgent( name安全审计专家, checklists[OWASP, CWE, 公司安全规范] ), reviewer: QualityReviewAgent( name质量评审专家, standards[可维护性, 性能, 可读性] ) } def define_review_workflow(self): 定义审查工作流 return [ { stage: 初步分析, agent: analyzer, tasks: [计算复杂度指标, 检测重复代码, 检查编码规范] }, { stage: 安全审计, agent: auditor, tasks: [漏洞扫描, 依赖安全检查, 权限配置验证] }, { stage: 质量评审, agent: reviewer, tasks: [可维护性评估, 性能建议, 改进优先级排序] } ] async def review_codebase(self, codebase_path): 执行代码库审查 results {} for stage in self.workflow: agent_name stage[agent] agent self.agents[agent_name] print(f开始{stage[stage]}阶段...) stage_results await agent.analyze_codebase( codebase_path, stage[tasks] ) results[stage[stage]] stage_results # 生成综合报告 final_report await self.generate_comprehensive_report(results) return final_report6.2 代码分析智能体实现class CodeAnalysisAgent(AIAgent): 代码分析专用智能体 def __init__(self, name, focus_areas): super().__init__(name, 代码质量分析专家, capabilitiesself.build_capabilities(focus_areas), toolsself.initialize_tools()) self.focus_areas focus_areas def build_capabilities(self, focus_areas): 构建能力描述 return { traits: [ 精通多种编程语言的代码质量分析, 善于识别代码坏味道和优化机会, 注重可维护性和可读性 ], can_do: [ 静态代码分析, 复杂度计算, 重复代码检测, 编码规范验证, 架构合理性评估 ], cannot_do: [ 直接修改代码, 运行测试用例, 性能压测 ] } def initialize_tools(self): 初始化分析工具 return { complexity: CodeComplexityTool(), duplication: DuplicationDetector(), metrics: CodeMetricsCalculator(), linter: CodeLinter() } async def analyze_codebase(self, codebase_path, tasks): 分析代码库 analysis_results {} for task in tasks: if 复杂度 in task: result await self.tools[complexity].analyze(codebase_path) analysis_results[complexity] result elif 重复代码 in task: result await self.tools[duplication].scan(codebase_path) analysis_results[duplication] result # ... 其他任务处理 return await self.interpret_results(analysis_results) async def interpret_results(self, raw_results): 解释分析结果并生成建议 interpretation_prompt 你是一个代码质量专家请基于以下分析结果生成改进建议 分析结果 {raw_results} 请按以下格式输出 ## 总体评估 - 代码质量等级[优秀/良好/一般/需要改进] - 主要优势[列出2-3个优点] - 关键问题[列出需要优先解决的问题] ## 详细建议 ### 1. 复杂度优化 [具体建议...] ### 2. 重复代码处理 [具体建议...] ### 3. 规范符合性 [具体建议...] ## 改进优先级 1. [高优先级问题] 2. [中优先级问题] 3. [低优先级问题] response await self.llm_call( interpretation_prompt.format(raw_resultsraw_results) ) return self.parse_interpretation(response)6.3 运行与验证# 测试代码审查系统 async def test_code_review_system(): 测试完整的代码审查流程 # 初始化系统 orchestrator CodeReviewOrchestrator() # 准备测试代码库 test_codebase path/to/test/project try: # 执行审查 print(开始代码审查...) start_time time.time() report await orchestrator.review_codebase(test_codebase) elapsed_time time.time() - start_time print(f审查完成耗时{elapsed_time:.2f}秒) # 验证结果 assert report is not None, 报告生成失败 assert 总体评估 in report, 缺少总体评估 assert 详细建议 in report, 缺少详细建议 assert 改进优先级 in report, 缺少优先级排序 # 输出关键指标 print(\n 审查结果摘要 ) print(f代码质量等级: {report.get(质量等级, 未知)}) print(f发现问题数量: {report.get(问题数量, 0)}) print(f高优先级问题: {report.get(高优先级问题, [])}) return report except Exception as e: print(f审查过程出错: {e}) return None # 运行测试 if __name__ __main__: import asyncio report asyncio.run(test_code_review_system()) if report: # 保存报告 with open(code_review_report.md, w, encodingutf-8) as f: f.write(report) print(审查报告已保存至 code_review_report.md)7. 常见问题与排查思路在实际开发AI智能体过程中会遇到各种典型问题。以下是经过实践验证的解决方案问题现象可能原因排查方式解决方案智能体行为不一致提示词冲突或模糊检查提示词中的优先级定义建立明确的规则层次安全 约束 任务工具调用失败参数格式错误或权限不足查看工具调用日志和错误信息使用JSON Schema验证参数添加权限检查长对话后遗忘指令上下文窗口限制监控对话长度和关键指令位置关键指令同时放在开头和结尾使用分层提示词响应速度慢提示词过长或缓存未命中分析提示词结构和API响应时间静态内容前置启用提示词缓存优化网络请求输出格式不符合预期输出格式定义不清晰检查输出格式指令和示例提供结构化示例使用XML标签明确边界7.1 智能体稳定性问题排查class AgentDebugger: 智能体调试工具 staticmethod async def diagnose_agent_issue(agent, problematic_input): 诊断智能体问题 diagnosis_report { input_analysis: await analyze_input(problematic_input), prompt_analysis: await analyze_prompt_structure(agent), tool_usage: await analyze_tool_usage(agent), memory_state: await analyze_memory_usage(agent) } recommendations [] # 基于分析结果生成建议 if diagnosis_report[prompt_analysis][conflict_count] 0: recommendations.append(优化提示词中的指令优先级) if diagnosis_report[tool_usage][failure_rate] 0.1: recommendations.append(加强工具调用的错误处理) return { diagnosis: diagnosis_report, recommendations: recommendations } async def analyze_prompt_structure(agent): 分析提示词结构问题 prompt agent.system_prompt analysis { length: len(prompt), instruction_count: prompt.count(#), conflict_count: 0, ambiguity_issues: [] } # 检测指令冲突 if 尽量 in prompt and 必须 in prompt: analysis[conflict_count] 1 analysis[ambiguity_issues].append(模糊指令与强制指令共存) return analysis7.2 性能优化实战class PerformanceOptimizer: 智能体性能优化器 def __init__(self, agent): self.agent agent self.metrics_collector MetricsCollector() async def optimize(self): 执行综合优化 optimizations [] # 1. 提示词优化 prompt_optimization await self.optimize_prompt() if prompt_optimization: optimizations.append((prompt, prompt_optimization)) # 2. 工具调用优化 tool_optimization await self.optimize_tool_usage() if tool_optimization: optimizations.append((tools, tool_optimization)) # 3. 缓存策略优化 cache_optimization await self.optimize_caching() if cache_optimization: optimizations.append((cache, cache_optimization)) return optimizations async def optimize_prompt(self): 优化提示词结构 current_prompt self.agent.system_prompt # 分析提示词组成 sections self.analyze_prompt_sections(current_prompt) optimizations [] if sections[static][percentage] 0.7: optimizations.append(将更多静态内容前置以提高缓存命中率) if sections[examples][count] 5: optimizations.append(考虑将部分示例移至检索系统按需加载) return optimizations8. 最佳实践与工程建议基于大量AI智能体项目实践总结出以下关键最佳实践8.1 提示词工程最佳实践1. 分层设计原则基础层身份定义和核心规范稳定不变角色层特定任务的专业角色按需切换任务层当前具体目标每次变化上下文层运行时状态动态更新def build_layered_prompt(base_layer, role_layer, task_layer, context_layer): 分层提示词构建 return f {base_layer} {role_layer} 当前任务{task_layer} 上下文信息 {context_layer} 2. 防御性提示词设计明确输入边界标记防止提示词注入建立指令优先级确保安全规则不被覆盖对用户输入进行清洗和验证def sanitize_user_input(user_input): 清洗用户输入防止提示词注入 # 移除可能被误解为系统指令的特殊标记 dangerous_patterns [ r忽略.*指令, r忘记.*规则, r系统提示词, r#.*身份定义 ] sanitized user_input for pattern in dangerous_patterns: sanitized re.sub(pattern, [已过滤], sanitized) return sanitized8.2 智能体开发最佳实践1. 模块化设计每个智能体应该专注于单一职责通过组合实现复杂功能# 好的设计职责单一 class SpecialistAgent: 专家型智能体专注特定领域 pass # 不好的设计功能混杂 class JackOfAllTradesAgent: 什么都会但都不精通的智能体 pass2. 错误处理与回退机制智能体必须能够优雅处理失败情况class RobustAgent(AIAgent): 具有强健错误处理能力的智能体 async def execute_with_fallback(self, task, primary_tool, fallback_tools): 带回退机制的任務执行 try: result await primary_tool.execute(task) return result except PrimaryToolFailure: for fallback_tool in fallback_tools: try: result await fallback_tool.execute(task) return result except FallbackToolFailure: continue # 所有工具都失败后的最终处理 return await self.handle_complete_failure(task)3. 测试策略AI智能体需要特殊的测试方法class AgentTestCase: 智能体测试用例 def test_agent_identity(self): 测试智能体身份一致性 # 在不同对话轮次中验证身份认知是否一致 pass def test_tool_usage_boundaries(self): 测试工具使用边界 # 验证智能体不会越权使用工具 pass def test_safety_constraints(self): 测试安全约束有效性 # 尝试触发安全规则验证防护效果 pass8.3 生产环境部署建议1. 监控与日志记录所有智能体决策过程监控工具调用成功率和响应时间设置异常行为告警class ProductionAgentMonitor: 生产环境智能体监控 def log_agent_decision(self, agent, input_data, decision, reasoning): 记录智能体决策过程 log_entry { timestamp: datetime.now(), agent_id: agent.id, input: input_data, decision: decision, reasoning: reasoning, performance_metrics: self.collect_metrics(agent) } self.logging_system.record(log_entry) def check_anomalies(self): 检查异常行为模式 recent_decisions self.get_recent_decisions(hours24) anomaly_score self.calculate_anomaly_score(recent_decisions) if anomaly_score self.threshold: self.alert_engineering_team(anomaly_score)2. 版本控制与回滚对提示词和智能体配置进行版本控制支持快速回滚到稳定版本A/B测试不同版本的性能class AgentVersionManager: 智能体版本管理 def deploy_new_version(self, new_agent_config, rollout_percentage10): 渐进式部署新版本 # 先在小范围流量中测试 test_results self.canary_deploy(new_agent_config, rollout_percentage) if test_results[success_rate] 0.95: self.full_deploy(new_agent_config) else: self.rollback_to_previous() def rollback_to_previous(self): 回滚到上一个稳定版本 stable_version self.get_latest_stable_version() self.deploy_agent(stable_version)9. 学习路径与资源推荐9.1 技能发展路线图阶段1提示词工程基础1-2个月掌握结构化提示词编写学习思维链、Few-shot等高级技巧实践常见场景的提示词设计阶段2工具集成与API使用2-3个月学习REST API调用和错误处理掌握常见AI开发框架LangChain、CrewAI等实践简单智能体的构建阶段3复杂智能体系统3-6个月学习多智能体协作模式掌握记忆系统和状态管理实践完整项目的架构设计阶段4生产环境部署持续学习学习监控、日志、性能优化掌握安全性和可靠性工程参与实际企业项目9.2 推荐学习资源实践平台Google Colab零配置的实验环境Hugging Face Spaces部署和分享AI应用AWS SageMaker企业级AI开发平台开源项目参考AutoGPT自动化任务处理智能体BabyAGI任务驱动的智能体系统LangChainAI应用开发框架社区与论坛AI相关技术社区的智能体开发版块GitHub上的开源智能体项目技术大会的AI智能体专题分享从提示词工程到AI智能体开发是一个从使用者到创造者的转变过程。真正的价值不在于掌握多少技巧而在于能够设计出解决实际问题的AI系统。2026年的AI职场需要的是能够将AI技术工程化落地的综合能力。开始实践的最佳方式是从一个小而具体的项目入手比如构建一个能够自动整理会议纪要的智能体或者一个代码审查助手。在实践过程中你会遇到各种预料之外的问题而解决这些问题的经验才是最有价值的学习成果。