Skip to content

Commit 831788c

Browse files
author
stlc-bot
committed
fix(answers): keep page links for the agent and only cite URLs it actually saw (#1571)
Stainless-Generated-From: 0b5635d
1 parent 8e874a8 commit 831788c

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

‎lib/context_dev/models/web_answers_response.rb‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ class WebAnswersResponse < ContextDev::Internal::Type::BaseModel
1111
required :json_content, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown]
1212

1313
# @!attribute sources
14-
# Public evidence URLs from searches, pages, or company/profile records, in
15-
# first-seen order. A listed URL may identify a record without its page being
16-
# read.
14+
# URLs of the pages and company/profile records read for the answer, followed by
15+
# URLs cited in json_content.
1716
#
1817
# @return [Array<String>]
1918
required :sources, ContextDev::Internal::Type::ArrayOf[String]
@@ -37,7 +36,7 @@ class WebAnswersResponse < ContextDev::Internal::Type::BaseModel
3736
#
3837
# @param json_content [Hash{Symbol=>Object}] The answer, in the shape requested by json_format.
3938
#
40-
# @param sources [Array<String>] Public evidence URLs from searches, pages, or company/profile records, in first-
39+
# @param sources [Array<String>] URLs of the pages and company/profile records read for the answer, followed by U
4140
#
4241
# @param key_metadata [ContextDev::Models::WebAnswersResponse::KeyMetadata] Credits this request used and your remaining balance.
4342
#

‎rbi/context_dev/models/web_answers_response.rbi‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ module ContextDev
1515
sig { returns(T::Hash[Symbol, T.anything]) }
1616
attr_accessor :json_content
1717

18-
# Public evidence URLs from searches, pages, or company/profile records, in
19-
# first-seen order. A listed URL may identify a record without its page being
20-
# read.
18+
# URLs of the pages and company/profile records read for the answer, followed by
19+
# URLs cited in json_content.
2120
sig { returns(T::Array[String]) }
2221
attr_accessor :sources
2322

@@ -55,9 +54,8 @@ module ContextDev
5554
def self.new(
5655
# The answer, in the shape requested by json_format.
5756
json_content:,
58-
# Public evidence URLs from searches, pages, or company/profile records, in
59-
# first-seen order. A listed URL may identify a record without its page being
60-
# read.
57+
# URLs of the pages and company/profile records read for the answer, followed by
58+
# URLs cited in json_content.
6159
sources:,
6260
# Credits this request used and your remaining balance.
6361
key_metadata: nil,

0 commit comments

Comments
 (0)