Skip to content

Commit 9b827a3

Browse files
authored
Feat/prototype (#207)
* AI congress 2 * Decision hub * Updated db
1 parent 7013a38 commit 9b827a3

43 files changed

Lines changed: 10261 additions & 17 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

code_tests/unit_tests/test_agents_and_tools/test_ai_congress_v2.py

Lines changed: 553 additions & 0 deletions
Large diffs are not rendered by default.

code_tests/unit_tests/test_agents_and_tools/test_decision_hub.py

Lines changed: 433 additions & 0 deletions
Large diffs are not rendered by default.

decision_hub.db

48 KB
Binary file not shown.

forecasting_tools/agents_and_tools/ai_congress/congress_orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class CongressOrchestrator:
3232
def __init__(
3333
self,
34-
aggregation_model: str = "openrouter/anthropic/claude-sonnet-4",
34+
aggregation_model: str = "openrouter/anthropic/claude-sonnet-4.5",
3535
num_delphi_rounds: int = 1,
3636
):
3737
self.aggregation_model = aggregation_model

forecasting_tools/agents_and_tools/ai_congress/data_models.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CongressMember(BaseModel, Jsonable):
1414
general_motivation: str
1515
expertise_areas: list[str]
1616
personality_traits: list[str]
17-
ai_model: str = "openrouter/anthropic/claude-sonnet-4"
17+
ai_model: str = "openrouter/anthropic/claude-sonnet-4.5"
1818

1919
@property
2020
def expertise_string(self) -> str:
@@ -74,10 +74,12 @@ class PolicyProposal(BaseModel, Jsonable):
7474
description="Top 3-5 actionable recommendations"
7575
)
7676
price_estimate: float | None = Field(
77-
default=None, description="Estimated cost in USD for generating this proposal"
77+
default=None,
78+
description="Estimated cost in USD for generating this proposal. If you are an AI, leave this None as you don't know the value.",
7879
)
79-
delphi_round: int = Field(
80-
default=1, description="Which Delphi round produced this proposal"
80+
delphi_round: int | None = Field(
81+
default=1,
82+
description="Which Delphi round produced this proposal. None if unknown.",
8183
)
8284

8385
@property

forecasting_tools/agents_and_tools/ai_congress/member_profiles.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"respects established institutions",
2828
"emphasizes personal responsibility",
2929
],
30-
ai_model="openrouter/anthropic/claude-sonnet-4",
30+
ai_model="openrouter/anthropic/claude-sonnet-4.5",
3131
)
3232

3333
PROGRESSIVE_REFORMER = CongressMember(
@@ -53,7 +53,7 @@
5353
"prioritizes workers and consumers",
5454
"impatient with incrementalism",
5555
],
56-
ai_model="openrouter/anthropic/claude-sonnet-4",
56+
ai_model="openrouter/anthropic/claude-sonnet-4.5",
5757
)
5858

5959
LIBERTARIAN = CongressMember(
@@ -79,7 +79,7 @@
7979
"consistent across issues",
8080
"opposes paternalism",
8181
],
82-
ai_model="openrouter/anthropic/claude-sonnet-4",
82+
ai_model="openrouter/anthropic/claude-sonnet-4.5",
8383
)
8484

8585
POPULIST_NATIONALIST = CongressMember(
@@ -105,7 +105,7 @@
105105
"questions free trade orthodoxy",
106106
"focuses on forgotten communities",
107107
],
108-
ai_model="openrouter/anthropic/claude-sonnet-4",
108+
ai_model="openrouter/anthropic/claude-sonnet-4.5",
109109
)
110110

111111
NATIONAL_SECURITY_HAWK = CongressMember(
@@ -131,7 +131,7 @@
131131
"willing to use force",
132132
"prioritizes deterrence",
133133
],
134-
ai_model="openrouter/anthropic/claude-sonnet-4",
134+
ai_model="openrouter/anthropic/claude-sonnet-4.5",
135135
)
136136

137137
ENVIRONMENTALIST = CongressMember(
@@ -157,7 +157,7 @@
157157
"intergenerational focus",
158158
"skeptical of fossil fuel industry",
159159
],
160-
ai_model="openrouter/anthropic/claude-sonnet-4",
160+
ai_model="openrouter/anthropic/claude-sonnet-4.5",
161161
)
162162

163163
DEMOCRATIC_SOCIALIST = CongressMember(
@@ -183,7 +183,7 @@
183183
"consistent ideology",
184184
"grassroots orientation",
185185
],
186-
ai_model="openrouter/anthropic/claude-sonnet-4",
186+
ai_model="openrouter/anthropic/claude-sonnet-4.5",
187187
)
188188

189189
TECHNOCRATIC_CENTRIST = CongressMember(
@@ -209,7 +209,7 @@
209209
"values expertise",
210210
"incrementalist",
211211
],
212-
ai_model="openrouter/anthropic/claude-sonnet-4",
212+
ai_model="openrouter/anthropic/claude-sonnet-4.5",
213213
)
214214

215215
# =============================================================================

forecasting_tools/agents_and_tools/ai_congress_v2/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)