Create a human block template (saved human string to pre-fill `ChatMemory`) Args: name (str): Name of the human block template text (str): Text of the human block template Returns: human (Human): Human block
(self, name: str, text: str)
| 1140 | return [Human(**block.model_dump()) for block in blocks] |
| 1141 | |
| 1142 | def create_human(self, name: str, text: str) -> Human: |
| 1143 | """ |
| 1144 | Create a human block template (saved human string to pre-fill `ChatMemory`) |
| 1145 | |
| 1146 | Args: |
| 1147 | name (str): Name of the human block template |
| 1148 | text (str): Text of the human block template |
| 1149 | |
| 1150 | Returns: |
| 1151 | human (Human): Human block |
| 1152 | """ |
| 1153 | return self.create_block(label="human", template_name=name, value=text, is_template=True) |
| 1154 | |
| 1155 | def update_human(self, human_id: str, name: Optional[str] = None, text: Optional[str] = None) -> Human: |
| 1156 | """ |