Oneirocom / Magick

Magick is a cutting-edge toolkit for a new kind of AI builder. Make Magick with us!
https://magickml.com
Other
718 stars 115 forks source link

Credentials #1457

Closed coffeeorgreentea closed 10 months ago

coffeeorgreentea commented 10 months ago

What Changed:

How to test:

basic usage for the credentialsManager.ts

  name: "discord-token",
  serviceType: "discord",
  credentialType: "plugin",
  value:
    "secret",
  projectId,
});

await creds.linkCredentialToAgent({
  agentId,
  credentialId: discordToken.id,
});

// list all credentials
console.log(await creds.listCredentials(projectId));

// list all agent credentials
console.log(await creds.listAgentCredentials(agentId));

tests for the endpoints are in hopscotch account.

Additional information:

this does not include the frontend for it. you need to manually setup your secrets via the manager or api

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
magick-client ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2024 6:50pm
magick-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2024 6:50pm