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

Method __init__

methods/base.py:66–85  ·  view source on GitHub ↗
(
        self,
        model: str = "gpt-4o-mini",
        temperature: float = 1.0,
        max_tokens: int = 2000,
        **kwargs
    )

Source from the content-addressed store, hash-verified

64 def __init__(self, tokenizer):
65 self._tokenizer = tokenizer
66
67 def encode(self, text: str, **kwargs) -> list:
68 kwargs.setdefault("disallowed_special", ())
69 return self._tokenizer.encode(text, **kwargs)
70
71 def decode(self, tokens, **kwargs):
72 return self._tokenizer.decode(tokens, **kwargs)
73
74 def __getattr__(self, name):
75 return getattr(self._tokenizer, name)
76
77
78class BaseAgent(ABC):
79 """Base class for all memory agents."""
80
81 METHOD_TYPE = "base"
82
83 def __init__(
84 self,
85 model: str = "gpt-4o-mini",
86 temperature: float = 1.0,
87 max_tokens: int = 2000,
88 **kwargs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected