parse

package
v0.4.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractContentFromMarkdown

func ExtractContentFromMarkdown(markdownText string) ([]interface{}, error)

Types

type CodeBlock

type CodeBlock struct {
	Code     string
	Language string
}

type ExtractCodeBlocksStep

type ExtractCodeBlocksStep struct{}

func (*ExtractCodeBlocksStep) Start

type ExtractJSONStep

type ExtractJSONStep struct{}

ExtractJSONStep is a step that extracts JSON blocks from the given string.

func (*ExtractJSONStep) Start

func (e *ExtractJSONStep) Start(ctx context.Context, input string) (steps.StepResult[[]string], error)
type Header struct {
	Text  string
	Level int
}

type Image

type Image struct {
	Destination []byte
	Title       []byte
}
type Link struct {
	Destination []byte
	Title       []byte
}

type List

type List struct {
	Entries []string
}

type Paragraph

type Paragraph struct {
	Text string
}

type ParseMarkdownStep

type ParseMarkdownStep struct{}

type QuotedText

type QuotedText struct {
	Text string
}

type ValidateJsonStep added in v0.2.12

type ValidateJsonStep struct {
	JSONSchema string `yaml:"json_schema,omitempty"`
}

func (*ValidateJsonStep) Start added in v0.2.12

type ValidationResult added in v0.2.12

type ValidationResult struct {
	Valid            bool
	ValidationErrors string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL