repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | from typing import Any, Optional |
| #2 | |
| #3 | from embedchain.config.base_config import BaseConfig |
| #4 | from embedchain.helpers.json_serializable import register_deserializable |
| #5 | |
| #6 | |
| #7 | @register_deserializable |
| #8 | class Mem0Config(BaseConfig): |
| #9 | def __init__(self, api_key: str, top_k: Optional[int] = 10): |
| #10 | self.api_key = api_key |
| #11 | self.top_k = top_k |
| #12 | |
| #13 | @staticmethod |
| #14 | def from_config(config: Optional[dict[str, Any]]): |
| #15 | if config is None: |
| #16 | return Mem0Config() |
| #17 | else: |
| #18 | return Mem0Config( |
| #19 | api_key=config.get("api_key", ""), |
| #20 | init_config=config.get("top_k", 10), |
| #21 | ) |
| #22 |