o
    RTh                     @   sP   d Z d Zd ZG dd dZe Zdeddfdd	Zdeddfd
dZdS )a  
There are currently two main prompts, designed for use in Notebooks:

* Coding assistance
* Exception diagnosis

The defaults used will come from the GlobalPromptStore. The user can override
these defaults by passing in a custom prompt to set_exception_prompt or set_assist_prompt.

>>> from genai.prompts import set_exception_prompt
>>> set_exception_prompt("You will get an exception. Do something with it.")

a  
As a coding assistant, your task is to help users write code in Python within Jupyter Notebooks. Provide comments and code for the user to read and edit, ensuring it can be run successfully. The user will be able to run the code in the cell and see the output.

When the user is interacting with you their message will start with `%%assist`. Otherwise, they are running commands and getting output from the system.

You can use markdown to format your response. For example, to create a code block, use

```python
# code
```

ap  
As a coding assistant, you'll diagnose errors in Python code written in a Jupyter Notebook. Format your response using markdown. Making sure to include the language around code blocks, like

```python
# code
```

Provide concise code examples in your response which will be rendered in Markdown in the notebook. The user will not be able to respond to your response.
c                   @   sh   e Zd Zdd ZedefddZejdeddfddZedefd	d
Zejdeddfdd
ZdS )DefaultPromptStorec                 C   s   t | _t| _d S N)NOTEBOOK_ASSISTANCE_PROMPT_assist_prompt%NOTEBOOK_ERROR_DIAGNOSER_PROCLAMATION_exception_promptself r	   P/home/air/segue/gemini/backup/venv/lib/python3.10/site-packages/genai/prompts.py__init__)   s   
zDefaultPromptStore.__init__returnc                 C      | j S r   r   r   r	   r	   r
   assist_prompt-      z DefaultPromptStore.assist_promptpromptNc                 C   
   || _ d S r   r   r   r   r	   r	   r
   r   1      
c                 C   r   r   r   r   r	   r	   r
   exception_prompt5   r   z#DefaultPromptStore.exception_promptc                 C   r   r   r   r   r	   r	   r
   r   9   r   )	__name__
__module____qualname__r   propertystrr   setterr   r	   r	   r	   r
   r   (   s    r   r   r   Nc                 C   
   | t _d S r   )PromptStorer   r   r	   r	   r
   set_assist_promptA      
r    c                 C   r   r   )r   r   r   r	   r	   r
   set_exception_promptE   r!   r"   )	__doc__stripr   r   r   r   r   r    r"   r	   r	   r	   r
   <module>   s    