HanishKVC
4f5add68c6
GroupKV:Dump/Log type of the variant instance also
2024-05-15 14:28:48 +05:30
HanishKVC
bd5c39e0f0
ChatOn+GroupKV: Cleanup a bit, including using debug logging
2024-05-14 21:22:48 +05:30
HanishKVC
bb9ce52b11
ChatON+: ValidateDump dumps All, wrapped in optional LDBUG_LN
...
GroupKV dump adds needed ":" seperator on its own, so calling
functions can just pass the tag string they want in the log without
worrying about any demarkation.
2024-05-14 18:45:25 +05:30
HanishKVC
f2dd1263fd
GroupKV: Move test code into its own file in tests
2024-05-12 22:33:48 +05:30
HanishKVC
d9959b74e7
GroupKV: Get ready for use in llama.cpp ++
...
Avoid defining GKV_TEST_PRG, used for self testing, by default
Add it to common library
2024-05-11 23:40:03 +05:30
HanishKVC
484c710eab
GroupKV:Add GetValue which throws exception
2024-05-11 20:49:51 +05:30
HanishKVC
9d4450d51a
GroupKV: Let dump return a string, rather than printing/logging
2024-05-11 19:43:34 +05:30
HanishKVC
f294fddf43
GroupKV: Add group_exists checker
2024-05-11 19:18:19 +05:30
HanishKVC
dde72df9d3
GroupKV: Rename the internal map
2024-05-11 18:23:06 +05:30
HanishKVC
fdefb39518
GroupKV:Make LDBUG macros conditional, avoid condition at usage site
...
Also change LWARN to LDBUG wrt previously GKV_DEBUG conditional
code
2024-05-11 13:30:56 +05:30
HanishKVC
7f03dd0d4b
GroupKV: Add int32_t to variant list, to simplify int use
...
So that no need to explicitly specify <int64_t> or LL wrt int
literals, which dont need 64bit space by default.
Which also means one shouldnt/cant mix up type of value stored and
default type specified when getting.
2024-05-11 12:45:58 +05:30
HanishKVC
0342124946
GroupKV: Add to_str wrt vectors, help avoid compiler confusion
2024-05-11 12:27:42 +05:30
HanishKVC
7d7c59ec50
GroupKV:Simplify:P2: Rename tags, Make debug logs conditional
...
Rename all the log messages to have GKV and not SC.
The log messages in get_vector made conditional to GKV_DEBUG, this
was missed out earlier in simpcfg itself.
2024-05-11 11:57:27 +05:30
HanishKVC
d764a9d395
GroupKV: Simplify code to the minimal needed for GroupKV - P1
2024-05-11 11:37:06 +05:30
HanishKVC
86b842b172
GroupKV: Duplicate SimpCfg to chop down into GroupKV
...
IE a minimal MapOfMapOfVariant, with some basic helpers.
This can be the basis of a ChatTemplates object, as well as
SimpCfg built on top of it.
2024-05-11 10:57:32 +05:30