Skip to content

Commit 5e989a7

Browse files
Google APIscopybara-github
authored andcommitted
feat: Expose UrlContextMetadata API to v1
PiperOrigin-RevId: 767327091
1 parent 6f9cee3 commit 5e989a7

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

google/cloud/aiplatform/v1/content.proto

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,38 @@ message Candidate {
543543
// Output only. Metadata specifies sources used to ground generated content.
544544
GroundingMetadata grounding_metadata = 7
545545
[(google.api.field_behavior) = OUTPUT_ONLY];
546+
547+
// Output only. Metadata related to url context retrieval tool.
548+
UrlContextMetadata url_context_metadata = 11
549+
[(google.api.field_behavior) = OUTPUT_ONLY];
550+
}
551+
552+
// Metadata related to url context retrieval tool.
553+
message UrlContextMetadata {
554+
// Output only. List of url context.
555+
repeated UrlMetadata url_metadata = 1
556+
[(google.api.field_behavior) = OUTPUT_ONLY];
557+
}
558+
559+
// Context of the a single url retrieval.
560+
message UrlMetadata {
561+
// Status of the url retrieval.
562+
enum UrlRetrievalStatus {
563+
// Default value. This value is unused.
564+
URL_RETRIEVAL_STATUS_UNSPECIFIED = 0;
565+
566+
// Url retrieval is successful.
567+
URL_RETRIEVAL_STATUS_SUCCESS = 1;
568+
569+
// Url retrieval is failed due to error.
570+
URL_RETRIEVAL_STATUS_ERROR = 2;
571+
}
572+
573+
// Retrieved url by the tool.
574+
string retrieved_url = 1;
575+
576+
// Status of the url retrieval.
577+
UrlRetrievalStatus url_retrieval_status = 2;
546578
}
547579

548580
// Logprobs Result

0 commit comments

Comments
 (0)