summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/docs/concepts/server.md9
-rw-r--r--docs/docs/walkthroughs/create-a-recipe.md12
2 files changed, 8 insertions, 13 deletions
diff --git a/docs/docs/concepts/server.md b/docs/docs/concepts/server.md
index 3eebdb5f..e609fc6d 100644
--- a/docs/docs/concepts/server.md
+++ b/docs/docs/concepts/server.md
@@ -8,11 +8,4 @@ The **Continue Server** holds the main event loop, responsible for connecting [I
## Details
-I tried a rewrite of the info box above. The core doesn't really mean that much except for maybe the Autopilot class and the small set of classes in core.py, including History, Step, Policy mostly. Maybe best referred to as a set of abstractions. Autopilot runs the main event loop, basically queueing user input and asking the policy what to do next, and injecting the SDK, and recording history. I suppose you could also say it includes the protocols, in which case you might say "connects IDE and GUI through the SDK", though lots of 3-letter acronyms going on here. Notes below are correct.
-
-- The `server` includes
- - IDE protocol
- - GUI protocol
- - SDK
- - Autopilot
-- There is a two-way sync between an IDE and the GUI that happens through the server
+The Continue server communicates with the IDE and GUI through websockets, acting as the communication bridge and main event loop. The `Autopilot` class is where most of this happens, accepting user input, calling on a policy to decide the next step, and injecting the `ContinueSDK` to run steps.
diff --git a/docs/docs/walkthroughs/create-a-recipe.md b/docs/docs/walkthroughs/create-a-recipe.md
index ac89ae4e..0cf1892e 100644
--- a/docs/docs/walkthroughs/create-a-recipe.md
+++ b/docs/docs/walkthroughs/create-a-recipe.md
@@ -3,6 +3,7 @@
**TODO: Describe step-by-step how to create a recipe**
Points to include
+
- Where to create recipes
- How to create a step
- How to create recipe
@@ -21,9 +22,10 @@ This method takes the ContinueSDK as a parameter, giving you all the tools you n
### c. Finally, every Step is displayed with a description of what it has done
If you'd like to override the default description of your steps, which is just the class name, then implement the `describe` method. You can:
- - Return a static string
- - Store state in a class attribute (prepend with a double underscore, which signifies (through Pydantic) that this is not a parameter for the Step, just internal state) during the run method, and then grab this in the describe method.
- - Use state in conjunction with the `models` parameter of the describe method to autogenerate a description with a language model. For example, if you'd used an attribute called `__code_written` to store a string representing some code that was written, you could implement describe as `return (await models.gpt35()).complete(f"{self.__code_written}\n\nSummarize the changes made in the above code.")`.
+
+- Return a static string
+- Store state in a class attribute (prepend with a double underscore, which signifies (through Pydantic) that this is not a parameter for the Step, just internal state) during the run method, and then grab this in the describe method.
+- Use state in conjunction with the `models` parameter of the describe method to autogenerate a description with a language model. For example, if you'd used an attribute called `__code_written` to store a string representing some code that was written, you could implement describe as `return (await models.gpt35()).complete(f"{self.\_\_code_written}\n\nSummarize the changes made in the above code.")`.
## 2. Compose steps together into a complete recipe
@@ -53,7 +55,7 @@ You will want to use the SDK when you are opening directories, editing files, us
Steps can include optional parameters that allow users to configure them
```python
-from continueos import ContinueSDK
+from continuedev import ContinueSDK
class CreatePytestsStep(Step):
@@ -73,7 +75,7 @@ class CreatePytestsStep(Step):
You might want to implement your steps, so that they can run on Linux, MacOS, and Windows.
```python
-from continueos import ContinueSDK
+from continuedev import ContinueSDK
import platform
class SetUpVenvStep(Step):