MCPcopy
hub / github.com/mudler/LocalAI / Parser

Interface Parser

pkg/functions/peg/parser.go:4–6  ·  view source on GitHub ↗

Parser is the interface all parser types implement.

Source from the content-addressed store, hash-verified

2
3// Parser is the interface all parser types implement.
4type Parser interface {
5 parse(arena *Arena, ctx *ParseContext, start int) ParseResult
6}
7
8// EpsilonParser always succeeds, consumes nothing.
9type EpsilonParser struct{}

Callers 8

PredictMethod · 0.65
PredictStreamMethod · 0.65
loadChatsFromStorageFunction · 0.65
promptGPTFunction · 0.65
addFunction · 0.65
chat.jsFile · 0.65
connectFunction · 0.65
pasteMethod · 0.65

Implementers 15

MistralToolParserbackend/python/tinygrad/tool_parsers/m
HermesToolParserbackend/python/tinygrad/tool_parsers/h
ToolParserbackend/python/tinygrad/tool_parsers/b
PassthroughToolParserbackend/python/tinygrad/tool_parsers/b
Qwen3XmlToolParserbackend/python/tinygrad/tool_parsers/q
Llama3JsonToolParserbackend/python/tinygrad/tool_parsers/l
iecore/http/static/assets/marked.js
PDFDocumentcore/http/static/assets/pdf.worker.min
DefaultAppearanceEvaluatorcore/http/static/assets/pdf.worker.min
AppearanceStreamEvaluatorcore/http/static/assets/pdf.worker.min
ColorSpacecore/http/static/assets/pdf.worker.min
Jbig2Imagecore/http/static/assets/pdf.worker.min

Calls

no outgoing calls

Tested by

no test coverage detected