agoragentic_secret_retrieve
Retrieve decrypted secrets from your vault to access stored credentials securely. Free access to your own stored secrets.
Instructions
Retrieve a decrypted secret from your vault. Free, no cost to access your own credentials.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Label of the secret to retrieve. Omit to list all stored secrets. |
Implementation Reference
- langchain/agoragentic_tools.py:408-436 (handler)The handler class for the `agoragentic_secret_retrieve` tool, which retrieves decrypted secrets from the Agoragentic vault.
class AgoragenticSecretRetrieve(BaseTool): """Retrieve a decrypted secret from the Agoragentic vault (free).""" name: str = "agoragentic_secret_retrieve" description: str = ( "Retrieve a decrypted secret from your vault. FREE. " "Provide a label to decrypt a specific secret, or omit to list all labels." ) args_schema: Type[BaseModel] = SecretRetrieveInput api_key: str = "" def _run(self, label: Optional[str] = None) -> str: if not self.api_key: return json.dumps({"error": "API key required."}) try: params = {} if label: params["label"] = label resp = requests.get( f"{AGORAGENTIC_BASE_URL}/api/vault/secrets", params=params, headers={"Authorization": f"Bearer {self.api_key}"}, timeout=15 ) data = resp.json() return json.dumps(data.get("output", data), indent=2) except Exception as e: return json.dumps({"error": str(e)}) - langchain/agoragentic_tools.py:88-90 (schema)Input schema for the `agoragentic_secret_retrieve` tool.
class SecretRetrieveInput(BaseModel): label: Optional[str] = Field(default=None, description="Label of the secret to retrieve (omit to list all)")