Skip to content

Commit

Permalink
"wip : improve response prompts from agent"
Browse files Browse the repository at this point in the history
  • Loading branch information
enigmarikki committed Jan 14, 2025
1 parent 7fb3900 commit 7fb5786
Show file tree
Hide file tree
Showing 24 changed files with 1,775 additions and 1,731 deletions.
7 changes: 0 additions & 7 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,9 @@ import { evmPlugin } from "@elizaos/plugin-evm";
import { flowPlugin } from "@elizaos/plugin-flow";
import { fuelPlugin } from "@elizaos/plugin-fuel";
import { genLayerPlugin } from "@elizaos/plugin-genlayer";
import { giphyPlugin } from "@elizaos/plugin-giphy";
import { gitcoinPassportPlugin } from "@elizaos/plugin-gitcoin-passport";
import { hyperliquidPlugin } from "@elizaos/plugin-hyperliquid";
import { imageGenerationPlugin } from "@elizaos/plugin-image-generation";
import { lensPlugin } from "@elizaos/plugin-lensNetwork";
import { letzAIPlugin } from "@elizaos/plugin-letzai";
import { multiversxPlugin } from "@elizaos/plugin-multiversx";
import { nearPlugin } from "@elizaos/plugin-near";
import createNFTCollectionsPlugin from "@elizaos/plugin-nft-collections";
Expand All @@ -94,18 +91,14 @@ import { TEEMode, teePlugin } from "@elizaos/plugin-tee";
import { teeLogPlugin } from "@elizaos/plugin-tee-log";
import { teeMarlinPlugin } from "@elizaos/plugin-tee-marlin";
import { verifiableLogPlugin } from "@elizaos/plugin-tee-verifiable-log";
import { thirdwebPlugin } from "@elizaos/plugin-thirdweb";
import { tonPlugin } from "@elizaos/plugin-ton";
import { squidRouterPlugin } from "@elizaos/plugin-squid-router";
import { webSearchPlugin } from "@elizaos/plugin-web-search";
<<<<<<< HEAD
import { injectivePlugin } from "@elizaos/plugin-injective";
import { giphyPlugin } from "@elizaos/plugin-giphy";
import { letzAIPlugin } from "@elizaos/plugin-letzai";
import { thirdwebPlugin } from "@elizaos/plugin-thirdweb";
import { hyperliquidPlugin } from "@elizaos/plugin-hyperliquid";
=======
>>>>>>> develop
import { zksyncEraPlugin } from "@elizaos/plugin-zksync-era";
import Database from "better-sqlite3";
import fs from "fs";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getAuctionModuleParamsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Auction module parameters retrieved successfully.",
action: "GET_AUCTION_MODULE_PARAMS",
Expand All @@ -26,7 +26,7 @@ export const getAuctionModuleStateExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Auction module state retrieved successfully.",
action: "GET_AUCTION_MODULE_STATE",
Expand Down Expand Up @@ -54,7 +54,7 @@ export const getCurrentBasketExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Current auction basket details retrieved successfully.",
action: "GET_CURRENT_BASKET",
Expand Down Expand Up @@ -86,7 +86,7 @@ export const getAuctionRoundExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Auction round 12 details retrieved successfully.",
action: "GET_AUCTION_ROUND",
Expand Down Expand Up @@ -133,7 +133,7 @@ export const getAuctionsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "List of auctions retrieved successfully.",
action: "GET_AUCTIONS",
Expand Down Expand Up @@ -185,7 +185,7 @@ export const msgBidExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Bid placed successfully.",
action: "PLACE_BID",
Expand All @@ -205,7 +205,7 @@ export const msgBidResponseExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Bid transaction processed.",
action: "BID_TRANSACTION_RESPONSE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getAuthModuleParamsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Auth module parameters retrieved successfully.",
action: "GET_AUTH_MODULE_PARAMS",
Expand All @@ -29,7 +29,7 @@ export const getAccountDetailsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Account details retrieved successfully.",
action: "GET_ACCOUNT_DETAILS",
Expand Down Expand Up @@ -57,7 +57,7 @@ export const getAccountsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Accounts list retrieved successfully.",
action: "GET_ACCOUNTS",
Expand Down Expand Up @@ -105,7 +105,7 @@ export const getGrantsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Grants fetched successfully.",
action: "GET_GRANTS",
Expand Down Expand Up @@ -151,7 +151,7 @@ export const getGranterGrantsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Granter's grants fetched successfully.",
action: "GET_GRANTER_GRANTS",
Expand Down Expand Up @@ -201,7 +201,7 @@ export const getGranteeGrantsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Grantee's grants fetched successfully.",
action: "GET_GRANTEE_GRANTS",
Expand Down Expand Up @@ -254,7 +254,7 @@ export const msgGrantExample = [

export const msgGrantResponseExample = [
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Authorization granted successfully.",
action: "MSG_GRANT",
Expand All @@ -277,7 +277,7 @@ export const msgExecExample = [

export const msgExecResponseExample = [
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Authorized messages executed successfully.",
action: "MSG_EXEC",
Expand All @@ -300,7 +300,7 @@ export const msgRevokeExample = [

export const msgRevokeResponseExample = [
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Authorization revoked successfully.",
action: "MSG_REVOKE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getBankModuleParamsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Bank module parameters retrieved successfully.",
action: "GET_BANK_MODULE_PARAMS",
Expand Down Expand Up @@ -35,7 +35,7 @@ export const getBankBalanceExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Bank balance retrieved successfully.",
action: "GET_BANK_BALANCE",
Expand All @@ -55,7 +55,7 @@ export const getBankBalancesExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Bank balances retrieved successfully.",
action: "GET_BANK_BALANCES",
Expand Down Expand Up @@ -87,7 +87,7 @@ export const getTotalSupplyExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Total supply retrieved successfully.",
action: "GET_TOTAL_SUPPLY",
Expand Down Expand Up @@ -119,7 +119,7 @@ export const getAllTotalSupplyExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Complete total supply retrieved successfully.",
action: "GET_ALL_TOTAL_SUPPLY",
Expand Down Expand Up @@ -155,7 +155,7 @@ export const getSupplyOfExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Supply of inj retrieved successfully.",
action: "GET_SUPPLY_OF",
Expand All @@ -175,7 +175,7 @@ export const getDenomsMetadataExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Denomination metadata fetched successfully.",
action: "GET_DENOMS_METADATA",
Expand Down Expand Up @@ -228,7 +228,7 @@ export const getDenomMetadataExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Denomination metadata for inj retrieved successfully.",
action: "GET_DENOM_METADATA",
Expand Down Expand Up @@ -264,7 +264,7 @@ export const getDenomOwnersExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Denomination owners retrieved successfully.",
action: "GET_DENOM_OWNERS",
Expand Down Expand Up @@ -302,7 +302,7 @@ export const msgSendExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Send transaction submitted successfully.",
action: "MSG_SEND",
Expand All @@ -326,7 +326,7 @@ export const msgSendResponseExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Send transaction processed successfully.",
action: "MSG_SEND_RESPONSE",
Expand All @@ -346,7 +346,7 @@ export const msgMultiSendExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Multi-send transaction submitted successfully.",
action: "MSG_MULTI_SEND",
Expand Down Expand Up @@ -399,7 +399,7 @@ export const msgMultiSendResponseExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Multi-send transaction processed successfully.",
action: "MSG_MULTI_SEND_RESPONSE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getDistributionModuleParamsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Distribution module parameters retrieved successfully.",
action: "GET_DISTRIBUTION_MODULE_PARAMS",
Expand All @@ -28,7 +28,7 @@ export const getDelegatorRewardsForValidatorExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Delegator rewards retrieved successfully.",
action: "GET_DELEGATOR_REWARDS_FOR_VALIDATOR",
Expand All @@ -50,7 +50,7 @@ export const getDelegatorRewardsForValidatorNoThrowExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Delegator rewards retrieved successfully (no-throw).",
action: "GET_DELEGATOR_REWARDS_FOR_VALIDATOR_NO_THROW",
Expand All @@ -72,7 +72,7 @@ export const getDelegatorRewardsExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Delegator rewards retrieved successfully.",
action: "GET_DELEGATOR_REWARDS",
Expand Down Expand Up @@ -108,7 +108,7 @@ export const getDelegatorRewardsNoThrowExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Delegator rewards retrieved successfully (no-throw).",
action: "GET_DELEGATOR_REWARDS_NO_THROW",
Expand Down Expand Up @@ -147,7 +147,7 @@ export const msgWithdrawDelegatorRewardExample = [

export const msgWithdrawDelegatorRewardResponseExample = [
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Delegator rewards withdrawal submitted successfully.",
action: "MSG_WITHDRAW_DELEGATOR_REWARD",
Expand All @@ -167,7 +167,7 @@ export const msgWithdrawDelegatorRewardTransactionResponseExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Withdraw delegator reward transaction processed successfully.",
action: "MSG_WITHDRAW_DELEGATOR_REWARD_RESPONSE",
Expand All @@ -190,7 +190,7 @@ export const msgWithdrawValidatorCommissionExample = [

export const msgWithdrawValidatorCommissionResponseExample = [
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Validator commission withdrawal submitted successfully.",
action: "MSG_WITHDRAW_VALIDATOR_COMMISSION",
Expand All @@ -209,7 +209,7 @@ export const msgWithdrawValidatorCommissionTransactionResponseExample = [
},
},
{
user: "{{user2}}",
user: "{{agent}}",
content: {
text: "Withdraw validator commission transaction processed successfully.",
action: "MSG_WITHDRAW_VALIDATOR_COMMISSION_RESPONSE",
Expand Down
Loading

0 comments on commit 7fb5786

Please sign in to comment.