aidojo

package
v0.0.0-...-867c320 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentInscribeReq

type AgentInscribeReq struct {
	Content     string    `json:"content"`
	MysqlID     uint      `json:"mysql_id"`
	TweetID     string    `json:"tweet_id"`
	AgentID     uint      `json:"agent_id"`
	Type        string    `json:"type"`
	CreatedAt   time.Time `json:"created_at"`
	PostTweetAt time.Time `json:"post_tweet_at"`
}

type AgentMetadataRequest

type AgentMetadataRequest struct {
	TokenInfo struct {
		Name    string `json:"name"`
		Symbol  string `json:"symbol"`
		Address string `json:"address"`
		Chain   string `json:"chain"`
	} `json:"token_info"`
}

type AgentType

type AgentType int
const (
	AgentTypeNormal         AgentType = 0
	AgentTypeReasoningAgent AgentType = 1
)

type AiDojoBackend

type AiDojoBackend struct {
	BaseURL string
	ApiKey  string
}

func NewAiDojoBackend

func NewAiDojoBackend(baseUrl, apiKey string) *AiDojoBackend

func (*AiDojoBackend) AgentBatchPromptItem

func (c *AiDojoBackend) AgentBatchPromptItem(chainID, agentID string, outputMaxCharacter uint, agentType AgentType, toolset string, headSystemPrompt string, agentMetaData *AgentMetadataRequest, messages []*models.UserAgentInferDataItem, skipThough bool, toolList string) (string, error)

func (*AiDojoBackend) AgentBatchPromptItemOutput

func (c *AiDojoBackend) AgentBatchPromptItemOutput(inferId string) (string, string, error)

func (*AiDojoBackend) AgentInscribe

func (c *AiDojoBackend) AgentInscribe(postData *AgentInscribeReq) (string, error)

func (*AiDojoBackend) AgentMintNft

func (c *AiDojoBackend) AgentMintNft(chainID uint64, agentID string) error

func (AiDojoBackend) GenerateImage

func (c AiDojoBackend) GenerateImage(systemContent, baseUrl string) (string, error)

func (*AiDojoBackend) GetAgentPoolBalance

func (c *AiDojoBackend) GetAgentPoolBalance(chainID string, nftIds []string) (map[string]string, error)

func (*AiDojoBackend) GetBitcoinTxHash

func (c *AiDojoBackend) GetBitcoinTxHash(txHash string) (string, error)

func (*AiDojoBackend) GetChainConfigs

func (c *AiDojoBackend) GetChainConfigs() ([]*ChainConfigsDetailResp, error)

func (*AiDojoBackend) LighthouseUpload

func (c *AiDojoBackend) LighthouseUpload(content string) (string, error)

func (*AiDojoBackend) OffchainAgentOutput

func (c *AiDojoBackend) OffchainAgentOutput(inferId string) (string, error)

func (*AiDojoBackend) OffchainAutoAgentOutput

func (c *AiDojoBackend) OffchainAutoAgentOutput(endpoint string, funId string, xToken string) (string, error)

type ChainConfigsDetailResp

type ChainConfigsDetailResp struct {
	ChainId           string            `json:"chain_id"`
	SupportModelNames map[string]string `json:"support_model_names"`
}

////

type ChainConfigsResp

type ChainConfigsResp struct {
	Data []*ChainConfigsDetailResp `json:"data"`
}

type ChatResponse

type ChatResponse struct {
	Id      string `json:"id"`
	Choices []*struct {
		Message *struct {
			Content string `json:"content"`
		} `json:"message"`
	} `json:"choices"`
	OnchainData struct {
		InferTx      string `json:"infer_tx"`
		SubmitTx     string `json:"submit_tx"`
		SeizeMinerTx string `json:"seize_miner_tx"`
	} `json:"onchain_data"`
}

type GenerateImageResponse

type GenerateImageResponse struct {
	Output *struct {
		Result string `json:"result"`
	} `json:"output"`
}

type OffchainAutoAgentRequest

type OffchainAutoAgentRequest struct {
	RequestInput    string             `bson:"request_input" json:"request_input"`
	Response        string             `bson:"response" json:"response"`
	ResponseId      string             `bson:"response_id" json:"response_id"`
	ResponseStatus  int                `bson:"response_status" json:"response_status"`
	Url             string             `bson:"url" json:"url"`
	Log             string             `bson:"log" json:"log"`
	AssistantID     primitive.ObjectID `bson:"assistant_id" json:"assistant_id"`
	MissionID       primitive.ObjectID `bson:"mission_id" json:"mission_id"`
	ContractAgentID string             `bson:"contract_agent_id" json:"contract_agent_id"`
	ChainID         string             `bson:"chain_id" json:"chain_id"`
	Output          string             `json:"output" bson:"output"`
	BatchItemInput  string             `json:"batch_item_input" bson:"batch_item_input"`
	Toolset         string             `json:"toolset" bson:"toolset"`
	Task            string             `json:"task" bson:"task"`
}

Jump to

Keyboard shortcuts

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