MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / load_input

Method load_input

plugin/app/models/credentials.py:42–52  ·  view source on GitHub ↗
(self, bundle_id, credentials: Dict[str, str])

Source from the content-addressed store, hash-verified

40 return self
41
42 def load_input(self, bundle_id, credentials: Dict[str, str]):
43 try:
44 from app.cache import get_bundle
45
46 allowed_fields = get_bundle(bundle_id).allowed_credential_names()
47 for field in allowed_fields:
48 if field in credentials:
49 self.credentials[field] = credentials[field]
50 return self
51 except Exception as e:
52 raise ValueError(f"error loading credentials from input: {e}")
53
54 def load_default(self, bundle_id):
55 try:

Callers 1

Calls 2

get_bundleFunction · 0.90

Tested by

no test coverage detected