oci_generative_ai_agent_agent_endpoint

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

CreateAgentEndpoint

Creates an endpoint.

Example Usage

resource "oci_generative_ai_agent_agent_endpoint" "test_agent_endpoint" {
	#Required
	agent_id = oci_generative_ai_agent_agent.test_agent.id
	compartment_id = var.compartment_id

	#Optional
	content_moderation_config {

		#Optional
		should_enable_on_input = var.agent_endpoint_content_moderation_config_should_enable_on_input
		should_enable_on_output = var.agent_endpoint_content_moderation_config_should_enable_on_output
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.agent_endpoint_description
	display_name = var.agent_endpoint_display_name
	freeform_tags = {"Department"= "Finance"}
	session_config {

		#Optional
		idle_timeout_in_seconds = var.agent_endpoint_session_config_idle_timeout_in_seconds
	}
	should_enable_citation = var.agent_endpoint_should_enable_citation
	should_enable_session = var.agent_endpoint_should_enable_session
	should_enable_trace = var.agent_endpoint_should_enable_trace
}

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 Endpoint * update - (Defaults to 20 minutes), when updating the Agent Endpoint * delete - (Defaults to 20 minutes), when destroying the Agent Endpoint

Import

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

$ terraform import oci_generative_ai_agent_agent_endpoint.test_agent_endpoint "id"