acoustic-carpenter-78188
07/14/2026, 4:13 PMpyproject.toml (+ tracked uv.lock) with framework-specific dependencies
• __init__.py exporting tool and run_agent (langgraph also exports `ai_node`/`tool_node`)
• _run.py with SDK-specific run_agent implementation
• _tools.py with @tool decorator stacking on @env.task and producing the framework's native tool type (crewai BaseTool, LangChain StructuredTool, pydantic-ai callable tool)
• _memory.py — cross-run conversation persistence over a keyed MemoryStore
• _durable.py — model-turn record/replay via durable_step (parity with the openai adapter)
• examples/ with custom_agent, durable_agent, memory, and multi_agent demos
• tests/ with conformance, tool, memory, durability, and run tests
Key design decisions
• Standardized run_agent signature across all adapters: tools, model, instructions, durable, observability, memory_key — enforced by flyteplugins.agents.core.testing.assert_adapter_conforms
• Native tool attachment: each *_custom_agent.py example attaches @tool-wrapped tasks using the framework's own convention (Agent(tools=[...]) for crewai/pydantic-ai/hermes, create_agent(model, tools, ...) for langchain, user-built StateGraph for langgraph); run_agent(agent=...) and run_agent(tools=...) are mutually exclusive
• LangGraph devex: users build the StateGraph themselves; ai_node(model, tools) (durable model turns) and tool_node(tools) (durable tool-call child actions) are the Flyte-durable building blocks, wired with tools_condition into the standard tool-calling loop
• Memory: run_agent(memory_key=...) loads/saves the conversation to a path-addressed JSON slot in the keyed MemoryStore using framework-native serialization (ModelMessagesTypeAdapter, messages_to_dict, role/content transcripts); best-effort so memory never breaks a run
• Durability: per-model-turn record/replay via durable_step — FlyteModel (pydantic-ai, incl. prebuilt agents via Agent.override), DurableChatModel (langchain), a durable LLM provider subclass (crewai), ai_node (langgraph); hermes records at run granularity (template SDK, no per-turn hook). Prebuilt agents that own their inner model keep their own turns non-durable (documented); tool calls stay durable regardless
Compatibility
All adapter code is verified against the pinned framework versions:
crewai 1.15 (BaseTool + kickoff_async), pydantic-ai 2.9 (Agent(tools=...), result.output), langchain 1.3 (`create_agent`; `AgentExecutor`/`create_tool_calling_agent` are gone), langgraph 1.2 (StructuredTool + MessagesState).
Testing
94 tests passing across the five adapters (plus the shared assert_adapter_conforms harness). Run with:
uv run pytest plugins/agents/{crewai,langgraph,langchain,pydantic_ai,hermes}/tests/
🤖 Generated with Claude Code
flyteorg/flyte-sdkacoustic-carpenter-78188
07/17/2026, 4:35 PM