chore: config, layout, project history, simulation framework updates
This commit is contained in:
@@ -10,6 +10,7 @@ class ToolsSimulation(BaseSimulation):
|
||||
msg = "List the files in the current directory."
|
||||
print(f"[Sim] Sending message to trigger tool: {msg}")
|
||||
self.sim.run_discussion_turn(msg)
|
||||
time.sleep(2)
|
||||
# 2. Wait for AI to execute tool
|
||||
print("[Sim] Waiting for tool execution...")
|
||||
time.sleep(5) # Give it some time
|
||||
@@ -21,6 +22,7 @@ class ToolsSimulation(BaseSimulation):
|
||||
msg = "Read the first 10 lines of aggregate.py."
|
||||
print(f"[Sim] Sending message to trigger tool: {msg}")
|
||||
self.sim.run_discussion_turn(msg)
|
||||
time.sleep(2)
|
||||
# 5. Wait and Verify
|
||||
print("[Sim] Waiting for tool execution...")
|
||||
time.sleep(5)
|
||||
@@ -32,7 +34,9 @@ class ToolsSimulation(BaseSimulation):
|
||||
# Actually in Gemini history, they might be nested.
|
||||
# But our GUI disc_entries list usually has them as separate entries or
|
||||
# they are part of the AI turn.
|
||||
# Let's check if the AI mentions it in its response
|
||||
if not entries:
|
||||
print("[Sim] ERROR: No history entries found after tool execution.")
|
||||
return
|
||||
last_ai_msg = entries[-1]['content']
|
||||
print(f"[Sim] Final AI Response: {last_ai_msg[:100]}...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user