This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bitvargen | |
Kel | |
Chuck K | |
merlin | |
Tom | |
Retired Yield Farmer | |
poplovski | |
Nard | |
Blockomoco | |
JEEVES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.6; | |
contract SimpleStorage { | |
struct A { | |
uint256 id; | |
} | |
struct B { | |
A[] ids; | |
bool active; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import requests | |
import click | |
from web3 import Web3 | |
def create_message(delegate_address): | |
totp = int(time.time()) // 3600 | |
return delegate_address + str(totp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
# PickOptionChain: Given a prompt, call an LLM to generate options and present the user with a terminal UI to pick from the options. The result is the option the user picked. | |
## Example: | |
```python | |
theme_query = "Let's create a poem. The first thing we need to do is pick a message or a theme. List out 8 themes and then ask the human to pick one of them" | |
llm = OpenAI(temperature=.7) | |
chain = PickOptionChain(llm=llm) |
OlderNewer