MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / build

Method build

backend/app/models/assistant/assistant.py:39–54  ·  view source on GitHub ↗
(row)

Source from the content-addressed store, hash-verified

37
38 @staticmethod
39 def build(row):
40 return Assistant(
41 assistant_id=row["assistant_id"],
42 model_id=row["model_id"],
43 name=row["name"],
44 description=row["description"],
45 system_prompt_template=load_json_attr(row, "system_prompt_template", []),
46 memory=load_json_attr(row, "memory", {"type": "zero"}),
47 tools=load_json_attr(row, "tools", []),
48 retrievals=load_json_attr(row, "retrievals", []),
49 retrieval_configs=RetrievalConfig(**load_json_attr(row, "retrieval_configs", {})),
50 metadata=load_json_attr(row, "metadata", {}),
51 num_chats=row["num_chats"],
52 created_timestamp=row["created_timestamp"],
53 updated_timestamp=row["updated_timestamp"],
54 )
55
56 def to_response_dict(self) -> Dict:
57 return {

Callers

nothing calls this directly

Calls 3

load_json_attrFunction · 0.90
RetrievalConfigClass · 0.85
AssistantClass · 0.70

Tested by

no test coverage detected