agent

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentManager

type AgentManager struct {
	Ctx        *fiber.Ctx
	Pool       *websocket.Pool
	DB         *gorm.DB
	SessionID  uint
	Author     uint
	AuthorRole types.UserRole
	Prompt     string
}

AgentManager allows agents to send messages to the chat

func (*AgentManager) StartAgent

func (manager *AgentManager) StartAgent()

NOTE: This is an experimental AI Agent This agent is attempting to demonstrate tool usage by GPT4x models and report writing. This is not a production-ready agent and should not be considered secure or reliable for any purpose.

type Attack

type Attack struct {
	AttackName string `json:"attack_name"  jsonschema:"title=the attack name,default=BOLA,description=The name of the attack,enum=BOLA,example=BOLA"`
	Domain     string `` /* 130-byte string literal not displayed */
	Report     bool   `` /* 131-byte string literal not displayed */
}

type Report

type Report struct {
	Content string `json:"content"          jsonschema:"title=the content,description=The content of the report in markdown as a string"`
}

type WorstKey

type WorstKey struct {
	Name string `json:"name" jsonschema:"title=key name,description=The key to focus on in the fuzz attack"`
}

Jump to

Keyboard shortcuts

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