Skip to content

Commit d68b996

Browse files
committed
local changes to make shiz work
1 parent 84bdf7b commit d68b996

12 files changed

Lines changed: 1112 additions & 352 deletions

File tree

Scripts/verify-database.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22
# Database initialization verification and fix script
33

44
echo "=== Checking PostgreSQL Connection ==="

Sources/Agentic_System/IkaCore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 32bcea0773ff4a6a9455c81c9e0e227830dfc1b1
1+
Subproject commit fc2b7ea427520292d8d585967b107ccfca1711f5

Sources/Agentic_System/agents/BaseAgent.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
logger.disabled = True
2222
est_timezone = pytz.timezone('US/Eastern')
2323

24+
# Global default logging level for all IkaBaseAgent instances.
25+
# Override by passing logging_level into Agent.__init__.
26+
DEFAULT_AGENT_LOGGING_LEVEL = 1
27+
2428
def enable_base_agent_logging():
2529
try:
2630
if os.getenv("FOG_DEBUG") == "1":
@@ -48,10 +52,18 @@ def enable_base_agent_logging():
4852

4953
class Agent(ABC):
5054

51-
def __init__(self, model=None, api_key: str = None, anthropic_api_key: str = None, model_id: str = None):
55+
def __init__(
56+
self,
57+
model=None,
58+
api_key: str = None,
59+
anthropic_api_key: str = None,
60+
model_id: str = None,
61+
logging_level=None,
62+
):
5263
self.model_id = model_id or (getattr(model, "model_id", None) if model else None) or "deepseek"
5364
self.api_key = api_key or (getattr(model, "api_key", None) if model else None)
5465
self.anthropic_api_key = anthropic_api_key
66+
self.logging_level = DEFAULT_AGENT_LOGGING_LEVEL if logging_level is None else logging_level
5567
self.agents = {}
5668
self.setup_agents()
5769

@@ -99,7 +111,7 @@ def run_task(self, task_description: str, context: dict = None) -> dict:
99111
return results
100112

101113
prompt = self._create_task_prompt(task_description, context)
102-
base = getattr(manager_agent, "_base_prompt", None)
114+
base = getattr(manager_agent, "_base_prompt", None) or getattr(manager_agent, "prompt", None)
103115
full = (base + "\n\n" + prompt) if base else prompt
104116

105117
logger.info(f"Using {manager_agent.name} for task: {task_description}")

0 commit comments

Comments
 (0)