vendor_connectors.vault.tools
AI framework tools for HashiCorp Vault operations.
This module provides tools for Vault operations that work with multiple AI agent frameworks.
Module Contents
Section titled “Module Contents”Classes
Section titled “Classes”ListSecretsSchema | Schema for listing Vault secrets. |
|---|---|
ReadSecretSchema | Schema for reading a Vault secret. |
Functions
Section titled “Functions”list_secrets | List secrets recursively from Vault KV v2 engine. |
|---|---|
read_secret | Read a single secret from Vault. |
get_langchain_tools | Get all Vault tools as LangChain StructuredTools. |
get_crewai_tools | Get all Vault tools as CrewAI tools. |
get_strands_tools | Get all Vault tools as plain Python functions for AWS Strands. |
get_tools | Get Vault tools for the specified or auto-detected framework. |
TOOL_DEFINITIONS |
|---|
class vendor_connectors.vault.tools.ListSecretsSchema
Section titled “class vendor_connectors.vault.tools.ListSecretsSchema”Bases: pydantic.BaseModel
Schema for listing Vault secrets.
root_path : str
Section titled “root_path : str”‘Field(…)’
mount_point : str
Section titled “mount_point : str”‘Field(…)’
max_depth : int | None
Section titled “max_depth : int | None”‘Field(…)’
class vendor_connectors.vault.tools.ReadSecretSchema
Section titled “class vendor_connectors.vault.tools.ReadSecretSchema”Bases: pydantic.BaseModel
Schema for reading a Vault secret.
‘Field(…)’
mount_point : str
Section titled “mount_point : str”‘Field(…)’
vendor_connectors.vault.tools.list_secrets(root_path: str = ’/’, mount_point: str = ‘secret’, max_depth: int | None = 10) → list[dict[str, Any]]
Section titled “vendor_connectors.vault.tools.list_secrets(root_path: str = ’/’, mount_point: str = ‘secret’, max_depth: int | None = 10) → list[dict[str, Any]]”List secrets recursively from Vault KV v2 engine.
Args: root_path: Root path to search. mount_point: KV engine mount point. max_depth: Max traversal depth.
Returns: List of secret data dicts with path, mount_point, data, and key_count.
vendor_connectors.vault.tools.read_secret(path: str, mount_point: str = ‘secret’) → dict[str, Any]
Section titled “vendor_connectors.vault.tools.read_secret(path: str, mount_point: str = ‘secret’) → dict[str, Any]”Read a single secret from Vault.
Args: path: Path to the secret. mount_point: KV engine mount point.
Returns: Dict with path, mount_point, data, and found status.
vendor_connectors.vault.tools.TOOL_DEFINITIONS
Section titled “vendor_connectors.vault.tools.TOOL_DEFINITIONS”None
vendor_connectors.vault.tools.get_langchain_tools() → list[Any]
Section titled “vendor_connectors.vault.tools.get_langchain_tools() → list[Any]”Get all Vault tools as LangChain StructuredTools.
vendor_connectors.vault.tools.get_crewai_tools() → list[Any]
Section titled “vendor_connectors.vault.tools.get_crewai_tools() → list[Any]”Get all Vault tools as CrewAI tools.
vendor_connectors.vault.tools.get_strands_tools() → list[Any]
Section titled “vendor_connectors.vault.tools.get_strands_tools() → list[Any]”Get all Vault tools as plain Python functions for AWS Strands.
vendor_connectors.vault.tools.get_tools(framework: str = ‘auto’) → list[Any]
Section titled “vendor_connectors.vault.tools.get_tools(framework: str = ‘auto’) → list[Any]”Get Vault tools for the specified or auto-detected framework.