mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 10:23:14 +00:00
Merge pull request #901 from langchain-ai/yogesh/model-update
fix: add langgraph-cli dependency, fix ChatAnthropic import
This commit is contained in:
commit
bcb429eb8c
3 changed files with 2308 additions and 1847 deletions
|
|
@ -29,6 +29,7 @@ from deepagents import create_deep_agent
|
|||
from deepagents.backends.sandbox import SandboxBackendProtocol
|
||||
|
||||
# Local import for encryption
|
||||
from langchain_anthropic import ChatAnthropic
|
||||
from .encryption import decrypt_token
|
||||
from .prompt import construct_system_prompt
|
||||
from .tools import fetch_url, http_request
|
||||
|
|
@ -912,7 +913,9 @@ async def get_agent(config: RunnableConfig) -> Pregel: # noqa: PLR0915
|
|||
|
||||
logger.info("Returning agent with sandbox for thread %s", thread_id)
|
||||
return create_deep_agent(
|
||||
model=None, # TODO: Actually pass a model here
|
||||
model=ChatAnthropic(
|
||||
model="claude-opus-4-6", max_tokens=20_000
|
||||
), # TODO: Actually pass a model here
|
||||
system_prompt=construct_system_prompt(repo_dir),
|
||||
tools=[http_request, fetch_url],
|
||||
backend=sandbox_backend,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ dependencies = [
|
|||
"langchain>=0.2.0",
|
||||
"langgraph>=0.2.0",
|
||||
"markdownify>=1.2.2",
|
||||
"langchain-anthropic>1.1.0",
|
||||
"langgraph-cli[inmem]>=0.4.12",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
|
|
|
|||
4148
apps/agent/uv.lock
generated
4148
apps/agent/uv.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue