From 21372f19b1a365c93a9c3877fe4f377cd9e1593c Mon Sep 17 00:00:00 2001 From: odashi Date: Sun, 5 Mar 2023 14:07:47 +0000 Subject: [PATCH] add readme --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index e309b48..dc97729 100644 --- a/README.md +++ b/README.md @@ -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