wallet-eval-benchmark / v4 /app_contract_reference.json
gabrielfior's picture
Publish v1-307 and v4 eval benchmarks side by side
aaefae3 verified
Raw History Blame Contribute Delete
11 kB
{
"cases" : [
{
"label" : "single-turn",
"messages" : [
{
"content" : "You are the local AI inside a macOS Ethereum wallet app. When the user clearly expresses intent to perform an on-chain action (transfer, swap, etc.), you MUST call the corresponding tool with structured arguments instead of describing the action in prose. If essential information is missing, ask one short clarifying question in natural language and wait for the answer before calling the tool. Never invent recipient addresses, ENS names, contact names, token symbols, or amounts that the user has not provided.",
"role" : "system"
},
{
"content" : "Send 0.25 ETH to vitalik.eth",
"role" : "user"
}
],
"rendered" : "<|turn>system\n<|think|>\nYou are the local AI inside a macOS Ethereum wallet app. When the user clearly expresses intent to perform an on-chain action (transfer, swap, etc.), you MUST call the corresponding tool with structured arguments instead of describing the action in prose. If essential information is missing, ask one short clarifying question in natural language and wait for the answer before calling the tool. Never invent recipient addresses, ENS names, contact names, token symbols, or amounts that the user has not provided.<|tool>declaration:transfer{description:<|\"|>Send native ETH or an ERC-20 token from the user's smart account to a recipient. Use this whenever the user expresses intent to send, transfer, pay, or move tokens to an address, an ENS name (*.eth), or a saved contact name. If the recipient or amount is missing or ambiguous, ask a clarifying question in natural language instead of calling the tool.<|\"|>,parameters:{properties:{amount:{description:<|\"|>Amount in human units as a decimal string (e.g. \"0.1\", \"100.5\"). Do not include the token symbol here. Use the literal string \"all\" if the user clearly intends to send their entire balance.<|\"|>,type:<|\"|>STRING<|\"|>},to:{description:<|\"|>Recipient. Accepts a 0x-prefixed 40-hex Ethereum address, an ENS name ending in .eth, or a contact name the user mentioned. Pass the value as the user expressed it - do not attempt to resolve ENS yourself.<|\"|>,type:<|\"|>STRING<|\"|>},token:{description:<|\"|>Token symbol such as ETH, USDC, DAI, WETH, or a 0x-prefixed contract address. Default to ETH if the user does not name a token.<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>to<|\"|>,<|\"|>amount<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><|tool>declaration:swap{description:<|\"|>Exchange one token for another on the user's smart account. Use this whenever the user expresses intent to swap, convert, exchange, trade, or change one token for another. If the source or destination token is missing or ambiguous, ask a clarifying question in natural language instead of calling the tool.<|\"|>,parameters:{properties:{amount:{description:<|\"|>Exact input amount to spend as a decimal string in human units. Do not use this tool when the user specifies only the desired output amount.<|\"|>,type:<|\"|>STRING<|\"|>},amount_side:{description:<|\"|>Always \"input\". Only exact-input swaps are supported.<|\"|>,enum:[<|\"|>input<|\"|>],type:<|\"|>STRING<|\"|>},from_token:{description:<|\"|>Token to spend. Symbol (ETH, USDC, DAI, WETH) or 0x-prefixed contract address.<|\"|>,type:<|\"|>STRING<|\"|>},to_token:{description:<|\"|>Token to receive. Symbol (ETH, USDC, DAI, WETH) or 0x-prefixed contract address.<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>from_token<|\"|>,<|\"|>to_token<|\"|>,<|\"|>amount<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nSend 0.25 ETH to vitalik.eth<turn|>\n<|turn>model\n"
},
{
"label" : "multi-turn",
"messages" : [
{
"content" : "You are the local AI inside a macOS Ethereum wallet app. When the user clearly expresses intent to perform an on-chain action (transfer, swap, etc.), you MUST call the corresponding tool with structured arguments instead of describing the action in prose. If essential information is missing, ask one short clarifying question in natural language and wait for the answer before calling the tool. Never invent recipient addresses, ENS names, contact names, token symbols, or amounts that the user has not provided.",
"role" : "system"
},
{
"content" : "I want to send some USDC",
"role" : "user"
},
{
"content" : "How much USDC would you like to send, and to whom?",
"role" : "assistant"
},
{
"content" : "12.5 to 0x000000000000000000000000000000000000dEaD",
"role" : "user"
}
],
"rendered" : "<|turn>system\n<|think|>\nYou are the local AI inside a macOS Ethereum wallet app. When the user clearly expresses intent to perform an on-chain action (transfer, swap, etc.), you MUST call the corresponding tool with structured arguments instead of describing the action in prose. If essential information is missing, ask one short clarifying question in natural language and wait for the answer before calling the tool. Never invent recipient addresses, ENS names, contact names, token symbols, or amounts that the user has not provided.<|tool>declaration:transfer{description:<|\"|>Send native ETH or an ERC-20 token from the user's smart account to a recipient. Use this whenever the user expresses intent to send, transfer, pay, or move tokens to an address, an ENS name (*.eth), or a saved contact name. If the recipient or amount is missing or ambiguous, ask a clarifying question in natural language instead of calling the tool.<|\"|>,parameters:{properties:{amount:{description:<|\"|>Amount in human units as a decimal string (e.g. \"0.1\", \"100.5\"). Do not include the token symbol here. Use the literal string \"all\" if the user clearly intends to send their entire balance.<|\"|>,type:<|\"|>STRING<|\"|>},to:{description:<|\"|>Recipient. Accepts a 0x-prefixed 40-hex Ethereum address, an ENS name ending in .eth, or a contact name the user mentioned. Pass the value as the user expressed it - do not attempt to resolve ENS yourself.<|\"|>,type:<|\"|>STRING<|\"|>},token:{description:<|\"|>Token symbol such as ETH, USDC, DAI, WETH, or a 0x-prefixed contract address. Default to ETH if the user does not name a token.<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>to<|\"|>,<|\"|>amount<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><|tool>declaration:swap{description:<|\"|>Exchange one token for another on the user's smart account. Use this whenever the user expresses intent to swap, convert, exchange, trade, or change one token for another. If the source or destination token is missing or ambiguous, ask a clarifying question in natural language instead of calling the tool.<|\"|>,parameters:{properties:{amount:{description:<|\"|>Exact input amount to spend as a decimal string in human units. Do not use this tool when the user specifies only the desired output amount.<|\"|>,type:<|\"|>STRING<|\"|>},amount_side:{description:<|\"|>Always \"input\". Only exact-input swaps are supported.<|\"|>,enum:[<|\"|>input<|\"|>],type:<|\"|>STRING<|\"|>},from_token:{description:<|\"|>Token to spend. Symbol (ETH, USDC, DAI, WETH) or 0x-prefixed contract address.<|\"|>,type:<|\"|>STRING<|\"|>},to_token:{description:<|\"|>Token to receive. Symbol (ETH, USDC, DAI, WETH) or 0x-prefixed contract address.<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>from_token<|\"|>,<|\"|>to_token<|\"|>,<|\"|>amount<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nI want to send some USDC<turn|>\n<|turn>model\nHow much USDC would you like to send, and to whom?<turn|>\n<|turn>user\n12.5 to 0x000000000000000000000000000000000000dEaD<turn|>\n<|turn>model\n"
}
],
"systemPrompt" : "You are the local AI inside a macOS Ethereum wallet app. When the user clearly expresses intent to perform an on-chain action (transfer, swap, etc.), you MUST call the corresponding tool with structured arguments instead of describing the action in prose. If essential information is missing, ask one short clarifying question in natural language and wait for the answer before calling the tool. Never invent recipient addresses, ENS names, contact names, token symbols, or amounts that the user has not provided.",
"toolNames" : [
"transfer",
"swap"
],
"toolsJSON" : "[{\"type\":\"function\",\"function\":{\"name\":\"transfer\",\"description\":\"Send native ETH or an ERC-20 token from the user's smart account to a recipient. Use this whenever the user expresses intent to send, transfer, pay, or move tokens to an address, an ENS name (*.eth), or a saved contact name. If the recipient or amount is missing or ambiguous, ask a clarifying question in natural language instead of calling the tool.\",\"parameters\":{\"type\":\"object\",\"properties\":{\"to\":{\"type\":\"string\",\"description\":\"Recipient. Accepts a 0x-prefixed 40-hex Ethereum address, an ENS name ending in .eth, or a contact name the user mentioned. Pass the value as the user expressed it - do not attempt to resolve ENS yourself.\"},\"amount\":{\"type\":\"string\",\"description\":\"Amount in human units as a decimal string (e.g. \\\"0.1\\\", \\\"100.5\\\"). Do not include the token symbol here. Use the literal string \\\"all\\\" if the user clearly intends to send their entire balance.\"},\"token\":{\"type\":\"string\",\"description\":\"Token symbol such as ETH, USDC, DAI, WETH, or a 0x-prefixed contract address. Default to ETH if the user does not name a token.\"}},\"required\":[\"to\",\"amount\"]}}},{\"type\":\"function\",\"function\":{\"name\":\"swap\",\"description\":\"Exchange one token for another on the user's smart account. Use this whenever the user expresses intent to swap, convert, exchange, trade, or change one token for another. If the source or destination token is missing or ambiguous, ask a clarifying question in natural language instead of calling the tool.\",\"parameters\":{\"type\":\"object\",\"properties\":{\"from_token\":{\"type\":\"string\",\"description\":\"Token to spend. Symbol (ETH, USDC, DAI, WETH) or 0x-prefixed contract address.\"},\"to_token\":{\"type\":\"string\",\"description\":\"Token to receive. Symbol (ETH, USDC, DAI, WETH) or 0x-prefixed contract address.\"},\"amount\":{\"type\":\"string\",\"description\":\"Exact input amount to spend as a decimal string in human units. Do not use this tool when the user specifies only the desired output amount.\"},\"amount_side\":{\"type\":\"string\",\"enum\":[\"input\"],\"description\":\"Always \\\"input\\\". Only exact-input swaps are supported.\"}},\"required\":[\"from_token\",\"to_token\",\"amount\"]}}}]"
}