@elizaos/sweagent-root 2.0.0-alpha.26 → 2.0.0-alpha.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elizaos/sweagent-root",
3
3
  "private": false,
4
- "version": "2.0.0-alpha.26",
4
+ "version": "2.0.0-alpha.30",
5
5
  "description": "SWE-agent: AI software engineering agent with Python, TypeScript, and Rust implementations",
6
6
  "type": "module",
7
7
  "main": "typescript/dist/index.js",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "91dceb1d2e9762af27353dbc764e40e1a0599508"
70
+ "gitHead": "b6d792be2dddcbe53f0342e04d99512a6cf33fef"
71
71
  }
@@ -1,11 +1,11 @@
1
1
 
2
2
  import asyncio
3
- from typing import Any, List, Dict
4
- import threading
3
+ from typing import Any
5
4
 
6
5
  from sweagent.agent.models import AbstractModel, GenericAPIModelConfig, InstanceStats
7
- from sweagent.types import History
8
6
  from sweagent.tools.tools import ToolConfig
7
+ from sweagent.types import History
8
+
9
9
 
10
10
  class OrchestratorModelConfig(GenericAPIModelConfig):
11
11
  name: str = "orchestrator"
@@ -28,7 +28,7 @@ class OrchestratorModel(AbstractModel):
28
28
  # Assumption: `SWEAgentProvider` will run `agent.step()` in a strictly synchronous manner
29
29
  # (potentially in a `run_in_executor`).
30
30
 
31
- def query(self, history: History, action_prompt: str = "> ") -> Dict[str, Any]:
31
+ def query(self, history: History, action_prompt: str = "> ") -> dict[str, Any]:
32
32
  """Synchronous query method that bridges to async runtime."""
33
33
  messages = self._history_to_messages(history)
34
34
 
@@ -47,7 +47,7 @@ class OrchestratorModel(AbstractModel):
47
47
 
48
48
  return asyncio.run(self._async_query(messages))
49
49
 
50
- async def _async_query(self, messages: List[Dict[str, str]]) -> Dict[str, Any]:
50
+ async def _async_query(self, messages: list[dict[str, str]]) -> dict[str, Any]:
51
51
  # Construct parameters for runtime.use_model
52
52
  params = {
53
53
  "messages": messages,
@@ -70,7 +70,7 @@ class OrchestratorModel(AbstractModel):
70
70
  "thinking_blocks": response.get("thinking_blocks", [])
71
71
  }
72
72
 
73
- def _history_to_messages(self, history: History) -> List[Dict[str, str]]:
73
+ def _history_to_messages(self, history: History) -> list[dict[str, str]]:
74
74
  # helper to convert sweagent history to standard messages
75
75
  messages = []
76
76
  for item in history:
@@ -1,5 +1,7 @@
1
1
 
2
- import asyncio
2
+ # We can't import ProviderTaskExecutionContext directly as it is in the benchmark code,
3
+ # so we will treat it as Any / duck-typed.
4
+ from dataclasses import dataclass
3
5
  from pathlib import PurePath
4
6
  from typing import Any
5
7
 
@@ -14,12 +16,6 @@ from swerex.runtime.abstract import (
14
16
  WriteFileRequest,
15
17
  )
16
18
 
17
- # We can't import ProviderTaskExecutionContext directly as it is in the benchmark code,
18
- # so we will treat it as Any / duck-typed.
19
-
20
-
21
-
22
- from dataclasses import dataclass
23
19
 
24
20
  @dataclass
25
21
  class BashActionResult:
@@ -1,3 +1,4 @@
1
+
1
2
  import pytest
2
3
  import yaml
3
4
  from swerex.exceptions import SwerexException