Skip to main content

contexts_context_children

Creates, updates, deletes, gets or lists a contexts_context_children resource.

Overview

Namecontexts_context_children
TypeResource
Idgoogle.aiplatform.contexts_context_children

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
add_context_childrenINSERTcontextsId, locationsId, metadataStoresId, projectsIdAdds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.
remove_context_childrenDELETEcontextsId, locationsId, metadataStoresId, projectsIdRemove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.

INSERT example

Use the following StackQL query and manifest file to create a new contexts_context_children resource.

/*+ create */
INSERT INTO google.aiplatform.contexts_context_children (
contextsId,
locationsId,
metadataStoresId,
projectsId,
childContexts
)
SELECT
'{{ contextsId }}',
'{{ locationsId }}',
'{{ metadataStoresId }}',
'{{ projectsId }}',
'{{ childContexts }}'
;

DELETE example

Deletes the specified contexts_context_children resource.

/*+ delete */
DELETE FROM google.aiplatform.contexts_context_children
WHERE contextsId = '{{ contextsId }}'
AND locationsId = '{{ locationsId }}'
AND metadataStoresId = '{{ metadataStoresId }}'
AND projectsId = '{{ projectsId }}';