计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
sdk-integrations【效率与协作】Guide Wren LangChain, LangGraph, and Pydantic AI integrations through WrenToolkit, project prerequisites, tool contracts, memory controls, and error recovery.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an application agent should consume an existing, CLI-prepared Wren project through LangChain/LangGraph or Pydantic AI.
wren context validate
wren context build
wren_project.yml and target/mdl.json are present before calling
WrenToolkit.from_project(...).from wren_langchain import WrenToolkit
from langchain.agents import create_agent
toolkit = WrenToolkit.from_project("analytics-project")
tools = toolkit.get_tools(include_memory_write=False)
agent = create_agent("openai:gpt-4o", tools=tools, system_prompt=toolkit.system_prompt(tools=tools))
Use get_tools(..., raise_on_error=True) only when the host loop should receive
exceptions instead of an LLM-readable error envelope.
from wren_pydantic import WrenToolkit
from pydantic_ai import Agent
toolkit = WrenToolkit.from_project("analytics-project")
toolset = toolkit.toolset(include_memory_write=False)
agent = Agent("openai:gpt-4o", instructions=toolkit.instructions(toolset=toolset), toolsets=[toolset])
Set takes_ctx=True only when combining Wren tools with a deps-typed Pydantic
AI toolset.
wren_dry_plan available when an agent may generate nontrivial SQL; it
is the cheap semantic check before wren_query.wren_list_models available so an agent can inspect its modeled surface
instead of hallucinating table names.include_memory_write=False.references/langchain.md for tool names, envelopes, and prompt behavior.references/pydantic-ai.md for typed tools and retry behavior.references/tool-contracts.md to keep the agent prompt synchronized
with the tools actually supplied.references/troubleshooting.md for project, profile, memory, and
framework errors.scripts/sdk_project_probe.py --project <directory> to check project
prerequisites and import available framework packages without making a query.