v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1372300401.5 KB
projects

Looks up LLM Context for the specified resources.

post/v1/{+name}:lookupContext

Path parameters

namestring required

Required. The project to which the request should be attributed in the following form: projects/{project}/locations/{location}.

Request body

resourcesstring[]

Required. The entry names to look up the context for. The maximum number of resources for a request is limited to 10.Examples:projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}

contextstring

Optional. The text representing contextual information for which metadata context is being requested.

optionsobject

Optional. Allows to configure the context.Supported options: format - The format of the context (one of yaml, xml, json, default is yaml). context_budget - If provided, the output will be intelligently truncated on a best-effort basis to contain approximately the desired amount of characters. There is no guarantee to achieve the specific amount. all_schema_fields - If set to true, all schema fields will be returned in the context (regardless of context_budget value). Otherwise, the list of schema fields is truncated. Default is false.

Response

Successful response