cmds

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WebsocketCmd = &cobra.Command{
	Use:   "websocket",
	Short: "Connect to the Bee API websocket",
	Run: func(cmd *cobra.Command, args []string) {
		websocket_()
	},
}

Functions

This section is empty.

Types

type Bee

type Bee struct {
	// contains filtered or unexported fields
}

func NewBee

func NewBee(apiKey string) *Bee

func (*Bee) Connect

func (b *Bee) Connect(ctx context.Context) error

func (*Bee) Listen

func (b *Bee) Listen(ctx context.Context)

type CreateFactCommand

type CreateFactCommand struct {
	*cmds.CommandDescription
}

CreateFactCommand

func NewCreateFactCommand

func NewCreateFactCommand() (*CreateFactCommand, error)

func (*CreateFactCommand) RunIntoGlazeProcessor

func (c *CreateFactCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type CreateFactSettings

type CreateFactSettings struct {
	Text      string `glazed.parameter:"text"`
	Confirmed bool   `glazed.parameter:"confirmed"`
}

type CreateTodoCommand

type CreateTodoCommand struct {
	*cmds.CommandDescription
}

CreateTodoCommand

func NewCreateTodoCommand

func NewCreateTodoCommand() (*CreateTodoCommand, error)

func (*CreateTodoCommand) RunIntoGlazeProcessor

func (c *CreateTodoCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type CreateTodoSettings

type CreateTodoSettings struct {
	Text      string `glazed.parameter:"text"`
	Completed bool   `glazed.parameter:"completed"`
}

type DeleteConversationCommand

type DeleteConversationCommand struct {
	*cmds.CommandDescription
}

DeleteConversationCommand

func NewDeleteConversationCommand

func NewDeleteConversationCommand() (*DeleteConversationCommand, error)

func (*DeleteConversationCommand) Run

func (c *DeleteConversationCommand) Run(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
) error

type DeleteConversationSettings

type DeleteConversationSettings struct {
	ConversationID int `glazed.parameter:"conversation_id"`
}

type DeleteFactCommand

type DeleteFactCommand struct {
	*cmds.CommandDescription
}

DeleteFactCommand

func NewDeleteFactCommand

func NewDeleteFactCommand() (*DeleteFactCommand, error)

func (*DeleteFactCommand) Run

func (c *DeleteFactCommand) Run(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
) error

type DeleteFactSettings

type DeleteFactSettings struct {
	FactID int `glazed.parameter:"fact_id"`
}

type DeleteTodoCommand

type DeleteTodoCommand struct {
	*cmds.CommandDescription
}

DeleteTodoCommand

func NewDeleteTodoCommand

func NewDeleteTodoCommand() (*DeleteTodoCommand, error)

func (*DeleteTodoCommand) Run

func (c *DeleteTodoCommand) Run(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
) error

type DeleteTodoSettings

type DeleteTodoSettings struct {
	TodoID int `glazed.parameter:"todo_id"`
}

type EndConversationCommand

type EndConversationCommand struct {
	*cmds.CommandDescription
}

EndConversationCommand

func NewEndConversationCommand

func NewEndConversationCommand() (*EndConversationCommand, error)

func (*EndConversationCommand) Run

func (c *EndConversationCommand) Run(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
) error

type EndConversationSettings

type EndConversationSettings struct {
	ConversationID int `glazed.parameter:"conversation_id"`
}

type GetConversationCommand

type GetConversationCommand struct {
	*cmds.CommandDescription
}

GetConversationCommand

func NewGetConversationCommand

func NewGetConversationCommand() (*GetConversationCommand, error)

func (*GetConversationCommand) RunIntoGlazeProcessor

func (c *GetConversationCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type GetConversationSettings

type GetConversationSettings struct {
	ConversationID  int  `glazed.parameter:"conversation_id"`
	FullTranscript  bool `glazed.parameter:"full_transcript"`
	WithoutSpeakers bool `glazed.parameter:"without_speakers"`
}

type GetFactCommand

type GetFactCommand struct {
	*cmds.CommandDescription
}

GetFactCommand

func NewGetFactCommand

func NewGetFactCommand() (*GetFactCommand, error)

func (*GetFactCommand) RunIntoGlazeProcessor

func (c *GetFactCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type GetFactSettings

type GetFactSettings struct {
	FactID int `glazed.parameter:"fact_id"`
}

type GetTodoCommand

type GetTodoCommand struct {
	*cmds.CommandDescription
}

GetTodoCommand

func NewGetTodoCommand

func NewGetTodoCommand() (*GetTodoCommand, error)

func (*GetTodoCommand) RunIntoGlazeProcessor

func (c *GetTodoCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type GetTodoSettings

type GetTodoSettings struct {
	TodoID int `glazed.parameter:"todo_id"`
}

type ListConversationsCommand

type ListConversationsCommand struct {
	*cmds.CommandDescription
}

func NewListConversationsCommand

func NewListConversationsCommand() (*ListConversationsCommand, error)

func (*ListConversationsCommand) RunIntoGlazeProcessor

func (c *ListConversationsCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type ListConversationsSettings

type ListConversationsSettings struct {
	Page  int `glazed.parameter:"page"`
	Limit int `glazed.parameter:"limit"`
}

type ListFactsCommand

type ListFactsCommand struct {
	*cmds.CommandDescription
}

ListFactsCommand

func NewListFactsCommand

func NewListFactsCommand() (*ListFactsCommand, error)

func (*ListFactsCommand) RunIntoGlazeProcessor

func (c *ListFactsCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type ListFactsSettings

type ListFactsSettings struct {
	Page      int  `glazed.parameter:"page"`
	Limit     int  `glazed.parameter:"limit"`
	Confirmed bool `glazed.parameter:"confirmed"`
}

type ListTodosCommand

type ListTodosCommand struct {
	*cmds.CommandDescription
}

ListTodosCommand

func NewListTodosCommand

func NewListTodosCommand() (*ListTodosCommand, error)

func (*ListTodosCommand) RunIntoGlazeProcessor

func (c *ListTodosCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type ListTodosSettings

type ListTodosSettings struct {
	Page  int `glazed.parameter:"page"`
	Limit int `glazed.parameter:"limit"`
}

type RetryConversationCommand

type RetryConversationCommand struct {
	*cmds.CommandDescription
}

RetryConversationCommand

func NewRetryConversationCommand

func NewRetryConversationCommand() (*RetryConversationCommand, error)

func (*RetryConversationCommand) Run

func (c *RetryConversationCommand) Run(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
) error

type RetryConversationSettings

type RetryConversationSettings struct {
	ConversationID int `glazed.parameter:"conversation_id"`
}

type UpdateFactCommand

type UpdateFactCommand struct {
	*cmds.CommandDescription
}

UpdateFactCommand

func NewUpdateFactCommand

func NewUpdateFactCommand() (*UpdateFactCommand, error)

func (*UpdateFactCommand) RunIntoGlazeProcessor

func (c *UpdateFactCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type UpdateFactSettings

type UpdateFactSettings struct {
	FactID    int    `glazed.parameter:"fact_id"`
	Text      string `glazed.parameter:"text"`
	Confirmed bool   `glazed.parameter:"confirmed"`
}

type UpdateTodoCommand

type UpdateTodoCommand struct {
	*cmds.CommandDescription
}

UpdateTodoCommand

func NewUpdateTodoCommand

func NewUpdateTodoCommand() (*UpdateTodoCommand, error)

func (*UpdateTodoCommand) RunIntoGlazeProcessor

func (c *UpdateTodoCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type UpdateTodoSettings

type UpdateTodoSettings struct {
	TodoID    int    `glazed.parameter:"todo_id"`
	Text      string `glazed.parameter:"text"`
	Completed bool   `glazed.parameter:"completed"`
}

Jump to

Keyboard shortcuts

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