Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
odashi committed Mar 5, 2023
1 parent e51dfcb commit 21372f1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ True # Wrong answer! This kind of mistakes happens very often: please take care
False
```

### `davinci_functions.function`

Synthesizes a Python function described in the prompt.

```python
>>> f = davinci_functions.function("Multiply the argument x by 2.")
>>> f(3)
6
>>> f = davinci_functions.function("Arithmetic mean of all elements in the list x.")
>>> f([1, 2, 3])
2.0
```


## Caveats

Expand Down

0 comments on commit 21372f1

Please sign in to comment.