open-swe/pyproject.toml
Adam Moussa 1c93e5c62b
feat: switch model providers to AWS Bedrock (Claude) and Fireworks (non-Claude)
Migrate off direct provider APIs: AWS Bedrock for Anthropic/Claude via the
cross-region inference profile us.anthropic.claude-opus-4-8, Fireworks AI for
all non-Claude models. Drop OpenAI (gpt-5.5) and Google (gemini-3.5-flash)
entirely. DEFAULT_MODEL_ID is now Bedrock Claude; all Fireworks models stay
freely selectable for the agent and reviewer graphs and via team/profile
defaults.

- pyproject: add langchain-aws (ChatBedrockConverse + boto3)
- options.py: Bedrock Claude entry + default; remove openai/google entries
- model.py: bedrock_converse provider_model_kwargs (effort -> thinking budget),
  region pin in make_model, bedrock<->fireworks fallback pairing, AWS_REGION/
  FIREWORKS_API_KEY local-dev validation
- server.py: provider-aware fallback kwargs build
- sanitize_thinking_blocks: also sanitize ChatBedrockConverse thinking blocks
- model_fallback: treat transient botocore ClientError codes as fallback-worthy
- eval_jobs: repoint hardcoded eval model id to Bedrock Claude
- tests: repoint dropped model ids; drop obsolete google test module
2026-06-29 14:57:14 -04:00

73 lines
1.7 KiB
TOML

[project]
name = "open-swe-agent"
version = "0.1.0"
description = "Open SWE Agent - Python agent for automating software engineering tasks"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
dependencies = [
"deepagents==0.6.8",
"fastapi>=0.136.3",
"uvicorn>=0.48.0",
"httpx>=0.28.1",
"PyJWT>=2.13.0",
"cryptography>=48.0.1",
"langgraph-sdk>=0.4.2",
"langchain>=1.3.9",
"langgraph>=1.1.10",
"markdownify>=1.2.2",
"langchain-anthropic>=1.4.6",
"langchain-aws>=0.2.0",
"langgraph-cli[inmem]>=0.4.30",
"langsmith==0.8.18",
"langchain-openai>=1.2.2",
"langchain-fireworks>=1.4.2",
# langchain-fireworks 1.4.2 pins a pre-release fireworks-ai; opt in explicitly so uv resolves it.
"fireworks-ai>=1.2.0a71",
"langchain-daytona>=0.0.5",
"langchain-modal>=0.0.3",
"langchain-runloop>=0.0.4",
"exa-py>=2.13.0",
"langchain-google-genai>=4.2.4",
"langchain-mcp-adapters>=0.2.2",
]
[project.optional-dependencies]
dev = [
"pytest>=9.0.3",
"pytest-asyncio>=1.4.0",
"ruff>=0.15.15",
"Pygments>=2.20.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["agent"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]