note

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package note provides models for generating simple messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	// Summary of the message content
	Title string `json:"title,omitempty" jsonschema:"title=Title"`
	// Details of what exactly this message wants to communicate.
	Content string `json:"content" jsonschema:"title=Content"`
	// Any additional semi-structured data that might be useful.
	Meta cbc.Meta `json:"meta,omitempty" jsonschema:"title=Meta Data"`
}

Message represents a simple message object with a title and some content meant.

func (Message) JSONSchemaExtend added in v0.37.0

func (Message) JSONSchemaExtend(s *jsonschema.Schema)

JSONSchemaExtend adds examples to the JSON Schema.

func (*Message) Validate

func (m *Message) Validate() error

Validate ensures the message contains everything it should.

Jump to

Keyboard shortcuts

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