kubiya_knowledge
Provides a Kubiya Knowledge resource to manage specific information for agents.
kubiya_knowledge (Resource)
Provides a Kubiya Knowledge resource. This allows knowledge resources to be created, updated, and deleted on the Kubiya platform. Knowledge resources add specific information that can be used by Kubiya agents.
Example Usage
Argument Reference
The following arguments are supported:
Required Arguments
name
- (Required) The name of the knowledge resource.description
- (Required) A description of the knowledge resource.content
- (Required) The content of the knowledge resource. This can be provided directly or loaded from a file using thefile()
function.groups
- (Required) List of user groups that have access to this knowledge resource.
Optional Arguments
format
- (Optional) The format of the content. Values: "markdown", "text", "json", etc. Defaults to "text".labels
- (Optional) List of labels/tags to help organize and find knowledge resources.supported_agents
- (Optional) List of agent names that can access and use this knowledge resource. If not specified, all agents can use the knowledge.type
- (Optional) The type of the knowledge. Defaults to "knowledge".
Attribute Reference
In addition to the arguments above, the following attributes are exported:
id
- The ID of the knowledge resource.owner
- The owner of the knowledge resource.
Access Control
Knowledge resources in Kubiya support fine-grained access control through:
- Groups: Restrict access to specific user groups in your organization (required)
- Supported Agents: Limit which AI Teammates (agents) can utilize this knowledge
- Labels: Organize knowledge and improve discoverability
These controls help you manage who can see sensitive information and which agents can leverage specific knowledge in their responses.
Import
Knowledge resources can be imported using the id
: