Skip to content

Commit 6f235f2

Browse files
rishirajkumar97Rishi J
andauthored
Split ErrorClass to separate File (#913)
* Split Error to seperate file to ensure its accessible via Rails console by default * Fix Linting issue --------- Co-authored-by: Rishi J <[email protected]>
1 parent 4305119 commit 6f235f2

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

lib/langchain/output_parsers/base.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,4 @@ def get_format_instructions
2828
raise NotImplementedError
2929
end
3030
end
31-
32-
class OutputParserException < StandardError
33-
def initialize(message, text)
34-
@message = message
35-
@text = text
36-
end
37-
38-
def to_s
39-
"#{@message}\nText: #{@text}"
40-
end
41-
end
4231
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Langchain::OutputParsers::OutputParserException < StandardError
2+
def initialize(message, text)
3+
@message = message
4+
@text = text
5+
end
6+
7+
def to_s
8+
"#{@message}\nText: #{@text}"
9+
end
10+
end

0 commit comments

Comments
 (0)