[PR #1253] feat(acp): add model parameter to ACPDeepAgent #1250

Open
opened 2026-02-16 09:18:31 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagents/pull/1253
Author: @3coins
Created: 2/10/2026
Status: 🔄 Open

Base: mainHead: feat/acp-model-support


📝 Commits (1)

  • 4184942 feat(acp): add model parameter to ACPDeepAgent

📊 Changes

3 files changed (+86 additions, -2 deletions)

View changed files

📝 libs/acp/deepagents_acp/__main__.py (+11 -1)
📝 libs/acp/deepagents_acp/agent.py (+10 -1)
📝 libs/acp/tests/test_agent.py (+65 -0)

📄 Description

Description

Adds the model parameter from create_deep_agent to ACPDeepAgent and run_agent so users can specify which LLM to use instead of being locked to the default Claude Sonnet 4.5.

Changes

Python API:

from deepagents_acp.agent import ACPDeepAgent, run_agent
from langgraph.checkpoint.memory import MemorySaver

# Without model (defaults to Claude Sonnet 4.5)
agent = ACPDeepAgent(
    root_dir="/path/to/project",
    mode="auto",
    checkpointer=MemorySaver(),
)

# With a model string
agent = ACPDeepAgent(
    root_dir="/path/to/project",
    mode="auto",
    checkpointer=MemorySaver(),
    model="openai:gpt-5",
)

# With a LangChain chat model instance
from langchain_anthropic import ChatAnthropic

agent = ACPDeepAgent(
    root_dir="/path/to/project",
    mode="auto",
    checkpointer=MemorySaver(),
    model=ChatAnthropic(model="claude-sonnet-4-5-20250514"),
)

CLI:

# Without model (defaults to Claude Sonnet 4.5)
python -m deepagents_acp --root-dir /path/to/project

# With model
python -m deepagents_acp --root-dir /path/to/project --model openai:gpt-5

Backward Compatibility

Fully backward compatible — model defaults to None, which lets create_deep_agent use its own default (Claude Sonnet 4.5). No existing behavior changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagents/pull/1253 **Author:** [@3coins](https://github.com/3coins) **Created:** 2/10/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/acp-model-support` --- ### 📝 Commits (1) - [`4184942`](https://github.com/langchain-ai/deepagents/commit/4184942f774df2b3fae5ba97906172b6f0ea7d0b) feat(acp): add model parameter to ACPDeepAgent ### 📊 Changes **3 files changed** (+86 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `libs/acp/deepagents_acp/__main__.py` (+11 -1) 📝 `libs/acp/deepagents_acp/agent.py` (+10 -1) 📝 `libs/acp/tests/test_agent.py` (+65 -0) </details> ### 📄 Description ## Description Adds the `model` parameter from `create_deep_agent` to `ACPDeepAgent` and `run_agent` so users can specify which LLM to use instead of being locked to the default Claude Sonnet 4.5. ## Changes **Python API:** ```python from deepagents_acp.agent import ACPDeepAgent, run_agent from langgraph.checkpoint.memory import MemorySaver # Without model (defaults to Claude Sonnet 4.5) agent = ACPDeepAgent( root_dir="/path/to/project", mode="auto", checkpointer=MemorySaver(), ) # With a model string agent = ACPDeepAgent( root_dir="/path/to/project", mode="auto", checkpointer=MemorySaver(), model="openai:gpt-5", ) # With a LangChain chat model instance from langchain_anthropic import ChatAnthropic agent = ACPDeepAgent( root_dir="/path/to/project", mode="auto", checkpointer=MemorySaver(), model=ChatAnthropic(model="claude-sonnet-4-5-20250514"), ) ``` **CLI:** ```bash # Without model (defaults to Claude Sonnet 4.5) python -m deepagents_acp --root-dir /path/to/project # With model python -m deepagents_acp --root-dir /path/to/project --model openai:gpt-5 ``` ## Backward Compatibility Fully backward compatible — `model` defaults to `None`, which lets `create_deep_agent` use its own default (Claude Sonnet 4.5). No existing behavior changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 09:18:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagents#1250