File tree 3 files changed +31
-22
lines changed
3 files changed +31
-22
lines changed Original file line number Diff line number Diff line change 14
14
------------
15
15
>>> from interpreter import Interpreter, Config
16
16
17
- # Use defaults
18
- interpreter = Interpreter()
17
+ Use defaults:
19
18
20
- # Load from custom profile
21
- config = Config.from_file("~/custom_profile.py")
22
- interpreter = Interpreter(config)
19
+ >>> interpreter = Interpreter()
20
+
21
+ Load from custom profile:
22
+
23
+ >>> config = Config.from_file("~/custom_profile.py")
24
+ >>> interpreter = Interpreter(config)
25
+
26
+ Save current settings:
23
27
24
- # Save current settings
25
- interpreter.save_config("~/my_settings.py")
28
+ >>> interpreter.save_config("~/my_settings.py")
26
29
"""
27
30
28
31
# Use lazy imports to avoid loading heavy modules immediately
Original file line number Diff line number Diff line change @@ -93,17 +93,20 @@ class Interpreter:
93
93
--------
94
94
>>> from interpreter import Interpreter
95
95
96
- # Basic usage
97
- interpreter = Interpreter()
98
- interpreter.chat()
96
+ Basic usage:
99
97
100
- # With custom configuration
101
- from interpreter import Profile
102
- profile = Profile.from_file("~/custom_profile.py")
103
- interpreter = Interpreter(profile)
98
+ >>> interpreter = Interpreter()
99
+ >>> interpreter.chat()
104
100
105
- # Save settings for later
106
- interpreter.save_profile("~/my_settings.py")
101
+ With custom configuration:
102
+
103
+ >>> from interpreter import Profile
104
+ >>> profile = Profile.from_file("~/custom_profile.py")
105
+ >>> interpreter = Interpreter(profile)
106
+
107
+ Save settings for later:
108
+
109
+ >>> interpreter.save_profile("~/my_settings.py")
107
110
108
111
Parameters
109
112
----------
Original file line number Diff line number Diff line change @@ -16,14 +16,17 @@ class Profile:
16
16
--------
17
17
>>> from interpreter import Profile
18
18
19
- # Load defaults (and ~/.openinterpreter if it exists)
20
- profile = Profile()
19
+ Load defaults (and ~/.openinterpreter if it exists):
21
20
22
- # Load from specific profile
23
- profile = Profile.from_file("~/custom_profile.py")
21
+ >>> profile = Profile()
24
22
25
- # Save current settings
26
- profile.save("~/my_settings.py")
23
+ Load from specific profile:
24
+
25
+ >>> profile = Profile.from_file("~/custom_profile.py")
26
+
27
+ Save current settings:
28
+
29
+ >>> profile.save("~/my_settings.py")
27
30
"""
28
31
29
32
DEFAULT_PROFILE_FOLDER = "~/.openinterpreter"
You can’t perform that action at this time.
0 commit comments