Removed redundant `str()` conversion in f-string.
@@ -21,7 +21,7 @@ def process_jsonl(input_file, model_name, output_file):
) # Write the list of JSON objects to a file
print(f'Output JSON list created at {output_file}')
except Exception as e:
- print(f'Error: {str(e)}')
+ print(f'Error: {e}')
# Usage: python script.py input.jsonl model_name output.json
@@ -122,7 +122,7 @@ class AgentController:
"""
self.state.error = message
if exception:
- self.state.error += f': {str(exception)}'
+ self.state.error += f': {exception}'
await self.event_stream.add_event(ErrorObservation(message), EventSource.AGENT)
async def add_history(self, action: Action, observation: Observation):