Skip to content

enriquebris/goagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goagent - Golang Agent Platform

goagent is a platform to manage agents.

Features

Get started

Inline-style: alt text

Skill example

package example

import (
	"github.com/enriquebris/goagent/cmd"
	"github.com/enriquebris/goagent/handler"
	botio "github.com/enriquebris/goagent/io"
	"github.com/enriquebris/goagent/message"
)

func GetMainCMD(commonHandler *handler.Common) cmd.CMD {
	return cmd.CMD{
		PatternType:  cmd.CMDTypeWord,
		Pattern:      []string{"example"},
		Description:  "Example command",
		Handler:      defaultHandler,
		HandlerError: commonHandler.GetErrorHandler([]string{"error"}),
	}
}

func defaultHandler(cmd cmd.CMD, pattern string, cmdContent string, metadata botio.Metadata, handlerType string, inputMetadata botio.Metadata, generalMetadata botio.Metadata, outputs []botio.Output) {
	message.SendMessageToOutput(
		"example",
		inputMetadata,
		botio.Metadata{
			"Tags": []string{"example"},
		},
		outputs,
	)
}

Input / Output

Commands / Skills

Nested subcommands

Security by restrictions

Parameters

Type checking

History

v0.1.0

Stable version including:

  • Multiple input / outputs
    • Flowdock implementation
  • Nested commands / skills
  • Parameters
  • Restrictions (by command)

v0.2.0

  • Added MSTeams input/output

Releases

No releases published

Packages

No packages published

Languages