Skip to content

Commit

Permalink
fix(docs): Type method missing from OutputParser (#972)
Browse files Browse the repository at this point in the history
Added missing Type method, interface OutputParser in documentation is now identical to the /schema/output_parser.go
  • Loading branch information
chxru authored Sep 13, 2024
1 parent 7c553fb commit 346f626
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/modules/model_io/output_parsers/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ type OutputParser[T any] interface {
ParseWithPrompt(text string, prompt PromptValue) (T, error)
// GetFormatInstructions returns a string describing the format of the output.
GetFormatInstructions() string
// Type returns the string type key uniquely identifying this class of parser
Type() string
}
```
```

0 comments on commit 346f626

Please sign in to comment.