Skip to main content

reasoning_engines

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

Overview​

Namereasoning_engines
TypeResource
Idgoogle.aiplatform.reasoning_engines

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the ReasoningEngine. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}
contextSpecobjectOptional. Configuration for how Agent Engine sub-resources should manage context. (id: GoogleCloudAiplatformV1ReasoningEngineContextSpec)
createTimestring (google-datetime)Output only. Timestamp when this ReasoningEngine was created.
descriptionstringOptional. The description of the ReasoningEngine.
displayNamestringRequired. The display name of the ReasoningEngine.
encryptionSpecobjectCustomer-managed encryption key spec for a ReasoningEngine. If set, this ReasoningEngine and all sub-resources of this ReasoningEngine will be secured by this key. (id: GoogleCloudAiplatformV1EncryptionSpec)
etagstringOptional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
labelsobjectLabels for the ReasoningEngine.
specobjectOptional. Configurations of the ReasoningEngine (id: GoogleCloudAiplatformV1ReasoningEngineSpec)
updateTimestring (google-datetime)Output only. Timestamp when this ReasoningEngine was most recently updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, reasoningEnginesIdGets a reasoning engine.
listselectprojectsId, locationsIdfilter, pageSize, pageTokenLists reasoning engines in a location.
createinsertprojectsId, locationsIdCreates a reasoning engine.
patchupdateprojectsId, locationsId, reasoningEnginesIdupdateMaskUpdates a reasoning engine.
deletedeleteprojectsId, locationsId, reasoningEnginesIdforceDeletes a reasoning engine.
async_queryexecprojectsId, locationsId, reasoningEnginesIdAsync query using a reasoning engine.
cancel_async_queryexecprojectsId, locationsId, reasoningEnginesIdCancels an AsyncQueryReasoningEngine operation.
execute_codeexecprojectsId, locationsId, reasoningEnginesIdExecutes code statelessly.
queryexecprojectsId, locationsId, reasoningEnginesIdQueries using a reasoning engine.
stream_queryexecprojectsId, locationsId, reasoningEnginesIdStreams queries using a reasoning engine.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
reasoningEnginesIdstring
filterstring
forceboolean
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets a reasoning engine.

SELECT
name,
contextSpec,
createTime,
description,
displayName,
encryptionSpec,
etag,
labels,
spec,
updateTime
FROM google.aiplatform.reasoning_engines
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND reasoningEnginesId = '{{ reasoningEnginesId }}' -- required
;

INSERT examples​

Creates a reasoning engine.

INSERT INTO google.aiplatform.reasoning_engines (
data__contextSpec,
data__description,
data__displayName,
data__encryptionSpec,
data__etag,
data__labels,
data__name,
data__spec,
projectsId,
locationsId
)
SELECT
'{{ contextSpec }}',
'{{ description }}',
'{{ displayName }}',
'{{ encryptionSpec }}',
'{{ etag }}',
'{{ labels }}',
'{{ name }}',
'{{ spec }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Updates a reasoning engine.

UPDATE google.aiplatform.reasoning_engines
SET
data__contextSpec = '{{ contextSpec }}',
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__encryptionSpec = '{{ encryptionSpec }}',
data__etag = '{{ etag }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__spec = '{{ spec }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND reasoningEnginesId = '{{ reasoningEnginesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples​

Deletes a reasoning engine.

DELETE FROM google.aiplatform.reasoning_engines
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND reasoningEnginesId = '{{ reasoningEnginesId }}' --required
AND force = '{{ force }}'
;

Lifecycle Methods​

Async query using a reasoning engine.

EXEC google.aiplatform.reasoning_engines.async_query
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@reasoningEnginesId='{{ reasoningEnginesId }}' --required
@@json=
'{
"inputGcsUri": "{{ inputGcsUri }}",
"outputGcsUri": "{{ outputGcsUri }}"
}'
;