mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-06-12 19:55:17 +02:00
fix(filesystem): remove chat request started noise
This commit is contained in:
parent
cb1bfb00fa
commit
beed21647f
2 changed files with 0 additions and 17 deletions
|
|
@ -354,12 +354,6 @@ class PIFSAgentStreamObserver:
|
|||
self._start_section("tool_call", "[llm -> pifs command]")
|
||||
print(command, file=self.output, flush=True)
|
||||
|
||||
def emit_request_started(self) -> None:
|
||||
if not (self.wants_model_stream or self.wants_tool_stream):
|
||||
return
|
||||
self._start_section("request_started", "[llm request started]")
|
||||
print("waiting for first model token or PIFS tool call...", file=self.output, flush=True)
|
||||
|
||||
def emit_tool_result(
|
||||
self,
|
||||
*,
|
||||
|
|
@ -525,7 +519,6 @@ class PIFSAgentSession:
|
|||
self.normalized_stream_mode,
|
||||
stream_log=self.agent_log,
|
||||
)
|
||||
self.observer.emit_request_started()
|
||||
|
||||
async def _run_streamed() -> str:
|
||||
from agents import Runner
|
||||
|
|
|
|||
|
|
@ -92,16 +92,6 @@ class PIFSAgentStreamTest(unittest.TestCase):
|
|||
self.assertIn("more lines omitted from preview", printed)
|
||||
self.assertNotIn("line 49", printed)
|
||||
|
||||
def test_request_started_prints_immediate_stream_feedback(self):
|
||||
output = io.StringIO()
|
||||
observer = PIFSAgentStreamObserver("all", output=output)
|
||||
|
||||
observer.emit_request_started()
|
||||
|
||||
printed = output.getvalue()
|
||||
self.assertIn("[llm request started]", printed)
|
||||
self.assertIn("waiting for first model token or PIFS tool call", printed)
|
||||
|
||||
def test_raw_reasoning_is_not_logged_by_default_but_summary_is(self):
|
||||
output = io.StringIO()
|
||||
stream_log = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue