(state)
| 79 | |
| 80 | |
| 81 | def retrieve(state): |
| 82 | print("---RETRIEVE---") |
| 83 | state_dict = state["keys"] |
| 84 | question = state_dict["question"] |
| 85 | primary_keyword = state_dict["primary_keyword"] |
| 86 | structure_prompt = state_dict["structure_prompt"] |
| 87 | urls = state_dict["selected_urls"] |
| 88 | step_to_execute = state_dict["step_to_execute"] |
| 89 | selected_keywords = state_dict["selected_keywords"] |
| 90 | |
| 91 | |
| 92 | if 'total_headings' in state_dict: |
| 93 | total_headings = state_dict['total_headings'] |
| 94 | else: |
| 95 | total_headings = '' |
| 96 | |
| 97 | if 'current_heading' in state_dict: |
| 98 | current_heading = state_dict['current_heading'] |
| 99 | else: |
| 100 | current_heading = '' |
| 101 | |
| 102 | if 'faq_prompt' in state_dict: |
| 103 | faq_prompt = state_dict['faq_prompt'] |
| 104 | else: |
| 105 | faq_prompt = '' |
| 106 | |
| 107 | if 'blog_prompt' in state_dict: |
| 108 | blog_prompt = state_dict['blog_prompt'] |
| 109 | else: |
| 110 | blog_prompt = '' |
| 111 | |
| 112 | if 'number_of_words_per_heading' in state_dict: |
| 113 | number_of_words_per_heading = state_dict['number_of_words_per_heading'] |
| 114 | else: |
| 115 | number_of_words_per_heading = '' |
| 116 | |
| 117 | if 'blog_content' in state_dict: |
| 118 | blog_content = state_dict['blog_content'] |
| 119 | else: |
| 120 | blog_content = '' |
| 121 | |
| 122 | if 'blog_title' in state_dict: |
| 123 | blog_title = state_dict["blog_title"] |
| 124 | else: |
| 125 | blog_title = '' |
| 126 | |
| 127 | if 'blog' in state_dict: |
| 128 | blog = state_dict["blog"] |
| 129 | else: |
| 130 | blog = '' |
| 131 | |
| 132 | if 'rephrase_context' in state_dict: |
| 133 | rephrase_context = state_dict["rephrase_context"] |
| 134 | else: |
| 135 | rephrase_context = '' |
| 136 | |
| 137 | if 'rephrase' in state_dict: |
| 138 | rephrase = state_dict["rephrase"] |
nothing calls this directly
no test coverage detected