parse

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 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) Close added in v0.2.12

func (*ExtractCodeBlocksStep) Start

type ExtractJSONStep

type ExtractJSONStep struct{}

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

func (*ExtractJSONStep) Close

func (e *ExtractJSONStep) Close(ctx context.Context) error

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) Close added in v0.2.12

func (v *ValidateJsonStep) Close(ctx context.Context) error

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