MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / create_human

Method create_human

methods/letta/client/client.py:1142–1153  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

addFunction · 0.45

Calls 1

create_blockMethod · 0.95

Tested by

no test coverage detected