MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / resolve_hermes_profile

Function resolve_hermes_profile

eval/run_real_model.py:192–211  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

190
191
192def resolve_hermes_profile(args):
193 profile = args.profile or DEFAULT_PROFILE
194 if args.hermes_home is not None:
195 return HermesProfileSelection(profile=profile, profile_dir=args.hermes_home)
196 if args.profile:
197 home = Path.home()
198 return HermesProfileSelection(
199 profile=profile,
200 profile_dir=home / ".hermes/profiles" / profile,
201 install_home=home,
202 )
203
204 temp_home = tempfile.TemporaryDirectory(prefix="tracedecay-eval-hermes-")
205 home = Path(temp_home.name)
206 return HermesProfileSelection(
207 profile=profile,
208 profile_dir=home / ".hermes/profiles" / profile,
209 install_home=home,
210 _temp_dir=temp_home,
211 )
212
213
214def resolve_tracedecay_bin(explicit):

Callers 1

mainFunction · 0.85

Calls 2

homeMethod · 0.80

Tested by

no test coverage detected