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

Method to_dict

plugin/app/models/credentials.py:65–70  ·  view source on GitHub ↗
(self, bundle_id)

Source from the content-addressed store, hash-verified

63 raise ValueError(f"error loading credentials from env: {e}")
64
65 def to_dict(self, bundle_id):
66 from app.cache import get_bundle
67
68 allowed_fields = get_bundle(bundle_id).allowed_credential_names()
69 res = {field: getattr(self, field, None) for field in allowed_fields}
70 return res
71
72
73def validate_bundle_credentials(data: Dict) -> BundleCredentials:

Callers

nothing calls this directly

Calls 2

get_bundleFunction · 0.90

Tested by

no test coverage detected