File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/codegen/extensions/tools Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ class ViewFileObservation(Observation):
22
22
content : str = Field (
23
23
description = "Content of the file" ,
24
24
)
25
+ raw_content : str = Field (
26
+ description = "Raw content of the file" ,
27
+ )
25
28
line_count : Optional [int ] = Field (
26
29
default = None ,
27
30
description = "Number of lines in the file" ,
@@ -64,7 +67,7 @@ def render(self, tool_call_id: str) -> ToolMessage:
64
67
"filepath" : self .filepath ,
65
68
"start_line" : self .start_line ,
66
69
"end_line" : self .end_line ,
67
- "content" : self .content ,
70
+ "content" : self .raw_content ,
68
71
"total_lines" : self .line_count ,
69
72
"has_more" : self .has_more ,
70
73
"max_lines_per_page" : self .max_lines_per_page ,
@@ -173,6 +176,7 @@ def view_file(
173
176
status = "success" ,
174
177
filepath = file .filepath ,
175
178
content = content ,
179
+ raw_content = file .content ,
176
180
line_count = total_lines ,
177
181
)
178
182
You can’t perform that action at this time.
0 commit comments