|
149 | 149 | "\n",
|
150 | 150 | "print(\"Custom instructions set for Open Interpreter.\")"
|
151 | 151 | ]
|
152 |
| - }, |
153 |
| - { |
154 |
| - "cell_type": "markdown", |
155 |
| - "metadata": {}, |
156 |
| - "source": [ |
157 |
| - "## Example Usage" |
158 |
| - ] |
159 |
| - }, |
160 |
| - { |
161 |
| - "cell_type": "code", |
162 |
| - "execution_count": null, |
163 |
| - "metadata": {}, |
164 |
| - "outputs": [], |
165 |
| - "source": [ |
166 |
| - "# Example usage of the search_screenpipe function\n", |
167 |
| - "\n", |
168 |
| - "# Search without time range\n", |
169 |
| - "print(\"Searching for 'Open Interpreter' without time range:\")\n", |
170 |
| - "results = search_screenpipe(\"Open Interpreter\", limit=3)\n", |
171 |
| - "for result in results:\n", |
172 |
| - " print(f\"Text: {result['content']['text'][:300]}...\")\n", |
173 |
| - " print(f\"Source: {result['content']['app_name']} - {result['content']['window_name']}\")\n", |
174 |
| - " print(f\"Timestamp: {result['content']['timestamp']}\")\n", |
175 |
| - " print()\n", |
176 |
| - "\n", |
177 |
| - "# Search with time range\n", |
178 |
| - "print(\"\\nSearching for 'project meeting' with time range:\")\n", |
179 |
| - "results = search_screenpipe(\"project meeting\", limit=5, start_time=\"2024-10-16T12:00:00Z\", end_time=\"2024-10-16T19:00:00Z\")\n", |
180 |
| - "for result in results:\n", |
181 |
| - " print(f\"Text: {result['content']['text'][:300]}...\")\n", |
182 |
| - " print(f\"Source: {result['content']['app_name']} - {result['content']['window_name']}\")\n", |
183 |
| - " print(f\"Timestamp: {result['content']['timestamp']}\")\n", |
184 |
| - " print()" |
185 |
| - ] |
186 |
| - }, |
187 |
| - { |
188 |
| - "cell_type": "markdown", |
189 |
| - "metadata": {}, |
190 |
| - "source": [ |
191 |
| - "## Conclusion\n", |
192 |
| - "\n", |
193 |
| - "This notebook demonstrates how to set up and use Open Interpreter in conjunction with ScreenPipe. By leveraging these tools together, you can create powerful, context-aware applications that can search and analyze your screen content history.\n", |
194 |
| - "\n", |
195 |
| - "Remember to adjust the search queries and time ranges in the example usage section to fit your specific use case. Happy coding!" |
196 |
| - ] |
197 | 152 | }
|
198 | 153 | ],
|
199 | 154 | "metadata": {
|
|
212 | 167 | "name": "python",
|
213 | 168 | "nbconvert_exporter": "python",
|
214 | 169 | "pygments_lexer": "ipython3",
|
215 |
| - "version": "3.8.10" |
| 170 | + "version": "3.11.9" |
216 | 171 | }
|
217 | 172 | },
|
218 | 173 | "nbformat": 4,
|
|
0 commit comments