Skip to content

Commit

Permalink
Refactor: Make referee a part of outcome engine folder
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Sep 20, 2023
1 parent f1f4975 commit 9b6b7bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/agents/dungeon_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from langchain.agents import initialize_agent
import logging
from src.npc_generation import generate_npc
from src.referee import decide_difficulty
from src.outcome_engine.referee import decide_difficulty
from src.text_generation.text_generator import get_default_text_generator

# Set up logging
Expand Down Expand Up @@ -67,7 +67,7 @@ def narrate(prompt: str) -> str:
agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
verbose=False,
memory=memory,
max_iterations=1,
max_iterations=2,
)

def run_dungeon_master(prompt) -> str:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_referee.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from src.referee import Difficulty, decide_difficulty
from src.outcome_engine.referee import Difficulty, decide_difficulty

@pytest.fixture
def TRIVIAL_CONTEXT():
Expand Down

0 comments on commit 9b6b7bb

Please sign in to comment.