From c8bff0ef3dc0e787c6f67d3934dc84e3a2d8e607 Mon Sep 17 00:00:00 2001 From: Rutger Cappendijk Date: Thu, 2 Nov 2023 11:11:11 +0100 Subject: [PATCH] updated the no op debug logger documentation --- src/intelligence_layer/core/logger.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/intelligence_layer/core/logger.py b/src/intelligence_layer/core/logger.py index 12ff2ab61..92fae5d51 100644 --- a/src/intelligence_layer/core/logger.py +++ b/src/intelligence_layer/core/logger.py @@ -158,10 +158,7 @@ class NoOpDebugLogger: """ def log(self, message: str, value: PydanticSerializable) -> None: - """Record a log of relevant information as part of a step within a task. - - By default, the `Input` and `Output` of each `Task` are logged automatically, but you can - log anything else that seems relevant to understanding the output of a given task. + """The `NoOpDebugLogger` does not do anything. Args: message: A description of the value you are logging, such as the step in the task this @@ -199,10 +196,7 @@ def task_span(self, task_name: str, input: PydanticSerializable) -> "NoOpTaskSpa class NoOpTaskSpan(NoOpDebugLogger, AbstractContextManager["NoOpTaskSpan"]): def record_output(self, output: PydanticSerializable) -> None: - """Record a `Task`'s output. Since a Context Manager can't provide this in the `__exit__` - method, output should be captured once it is generated. - - This should be handled automatically within the execution of the task. + """The `NoOpTaskSpan` does not do anything. Args: output: The output of the task that is being logged.