Skip to content

Conversation

@lwaekfjlk
Copy link
Collaborator

Closes #

📑 Description

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed
  • Branch name follows type/descript (e.g. feature/add-llm-agents)
  • Ready for code review

ℹ Additional Information

OPENAI_AVAILABLE = False

try:
import anthropic
for p in children:
try:
p.terminate()
except Exception:
except Exception:
try:
p.kill()
except Exception:
# beta_t = per_turn_budget * (1 + fluctuation * tanh(gamma * (u - baseline) / baseline))
# This gives each turn a base budget, adjusted up/down by WM uncertainty
per_turn_budget = get_config_value(wm_config, "per_turn_budget", 0.002)
baseline = get_config_value(wm_config, "baseline", 2.0) # Expected "normal" uncertainty
# Legacy config support (fallback to old beta_0/beta_1 if per_turn_budget not set)
beta_0 = get_config_value(wm_config, "beta_0", None)
beta_1 = get_config_value(wm_config, "beta_1", None)
use_legacy_mode = beta_0 is not None and beta_1 is not None and per_turn_budget == 0.002
use_legacy_mode = beta_0 is not None and beta_1 is not None and per_turn_budget == 0.002

if beta_0 is None:
beta_0 = base_entropy_coeff
if beta_0 is None:
beta_0 = base_entropy_coeff
if beta_1 is None:
beta_1 = base_entropy_coeff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants