Skip to content

Commit

Permalink
chore: add more instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMinarsch committed Mar 23, 2024
1 parent ae9b2bf commit b5a3b74
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ aea generate-key ethereum
```
Ensure the private key carries funds on Gnosis Chain.

A keyfile is just a file with your ethereum private key as a hex-string, example:
```
0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd
```
In case you add your own, make sure you don't have any extra characters in the file, like newlines or spaces.

Second, run the following command to instruct the mech with `<prompt>` and `<agent_id>`:

```bash
Expand Down Expand Up @@ -113,6 +119,13 @@ result = interact(
print(result)
```

# Developer installation
To setup the development environment, run the following commands:

```bash
poetry install && poetry shell
```

## Release guide:

- Bump versions in `pyproject.toml` and `mech_client/__init__.py`
Expand Down
1 change: 1 addition & 0 deletions pk.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f54f4bfe5483845a5400f3bdba19d8a6e6f215f63e939fb39b7879ee3a313b54
20 changes: 20 additions & 0 deletions sc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from mech_client.interact import interact, ConfirmationType

prompt_text = 'Will gnosis pay reach 100k cards in 2024?'
agent_id = 3
tool_name = "prediction-online"

with open('./pk.txt', 'r') as file:
# Read the contents of the file
contents = file.read()
# Print the contents
print(contents)

result = interact(
prompt=prompt_text,
agent_id=agent_id,
tool=tool_name,
confirmation_type=ConfirmationType.ON_CHAIN,
private_key_path='./pk.txt'
)
print(result)

0 comments on commit b5a3b74

Please sign in to comment.