oci_generative_ai_agent_agent

This resource provides the Agent resource in Oracle Cloud Infrastructure Generative Ai Agent service.

CreateAgent

Creates an agent.

Example Usage

resource "oci_generative_ai_agent_agent" "test_agent" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.agent_description
	display_name = var.agent_display_name
	freeform_tags = {"Department"= "Finance"}
	knowledge_base_ids = var.agent_knowledge_base_ids
	welcome_message = var.agent_welcome_message
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Agent * update - (Defaults to 20 minutes), when updating the Agent * delete - (Defaults to 20 minutes), when destroying the Agent

Import

Agents can be imported using the id, e.g.

$ terraform import oci_generative_ai_agent_agent.test_agent "id"