Documentation
¶
Index ¶
- type AgentInscribeReq
- type AgentMetadataRequest
- type AgentType
- type AiDojoBackend
- func (c *AiDojoBackend) AgentBatchPromptItem(chainID, agentID string, outputMaxCharacter uint, agentType AgentType, ...) (string, error)
- func (c *AiDojoBackend) AgentBatchPromptItemOutput(inferId string) (string, string, error)
- func (c *AiDojoBackend) AgentInscribe(postData *AgentInscribeReq) (string, error)
- func (c *AiDojoBackend) AgentMintNft(chainID uint64, agentID string) error
- func (c AiDojoBackend) GenerateImage(systemContent, baseUrl string) (string, error)
- func (c *AiDojoBackend) GetAgentPoolBalance(chainID string, nftIds []string) (map[string]string, error)
- func (c *AiDojoBackend) GetBitcoinTxHash(txHash string) (string, error)
- func (c *AiDojoBackend) GetChainConfigs() ([]*ChainConfigsDetailResp, error)
- func (c *AiDojoBackend) LighthouseUpload(content string) (string, error)
- func (c *AiDojoBackend) OffchainAgentOutput(inferId string) (string, error)
- func (c *AiDojoBackend) OffchainAutoAgentOutput(endpoint string, funId string, xToken string) (string, error)
- type ChainConfigsDetailResp
- type ChainConfigsResp
- type ChatResponse
- type GenerateImageResponse
- type OffchainAutoAgentRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentInscribeReq ¶
type AgentMetadataRequest ¶
type AiDojoBackend ¶
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 (*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 ¶
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"` }
Click to show internal directories.
Click to hide internal directories.