(
self,
model: Optional[BaseModelBackend] = None,
)
| 44 | """ |
| 45 | |
| 46 | def __init__( |
| 47 | self, |
| 48 | model: Optional[BaseModelBackend] = None, |
| 49 | ) -> None: |
| 50 | system_message = BaseMessage( |
| 51 | role_name="Assistant", |
| 52 | role_type=RoleType.ASSISTANT, |
| 53 | meta_dict=None, |
| 54 | content="You are a helpful assistant.", |
| 55 | ) |
| 56 | super().__init__(system_message, model=model) |
| 57 | |
| 58 | def summarize_text(self, text: str, query: str) -> str: |
| 59 | r"""Summarize the information from the text, base on the query. |
nothing calls this directly
no test coverage detected