Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.25.0"
".": "1.26.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 24
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-cc8ca2c80e73bdcff491c96d9289c9e88d831215375ef83632cc51f8e8e06183.yml
openapi_spec_hash: bf55dce481efcf2f24bc9ff59c2e3f61
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-1785aa93e6fb2784640a4c32eb0221f0b31aa06644d090f72f8533524aeef7c6.yml
openapi_spec_hash: 7dc1fadcec32637e795f641a0e97c63e
config_hash: cf2c7f48b329e0a61612b30cd2755ad1
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 1.26.0 (2026-06-01)

Full Changelog: [v1.25.0...v1.26.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.25.0...v1.26.0)

### Features

* **api:** api update ([d442168](https://github.com/context-dot-dev/context-ruby-sdk/commit/d442168b67accce12463e36f03630f155c1c7be3))
* **api:** api update ([f3a97c1](https://github.com/context-dot-dev/context-ruby-sdk/commit/f3a97c19ef01be5e6cf1ce7ecfa26c972edfdf33))
* **api:** api update ([8d8abf7](https://github.com/context-dot-dev/context-ruby-sdk/commit/8d8abf7c1600bce17ea26aa245f41b2e3199f722))

## 1.25.0 (2026-05-31)

Full Changelog: [v1.24.0...v1.25.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.24.0...v1.25.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
context.dev (1.25.0)
context.dev (1.26.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "context.dev", "~> 1.25.0"
gem "context.dev", "~> 1.26.0"
```

<!-- x-release-please-end -->
Expand Down
16 changes: 8 additions & 8 deletions lib/context_dev/models/web_extract_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ class WebExtractParams < ContextDev::Internal::Type::BaseModel
required :url, String

# @!attribute fact_check
# When true (default), every returned value must be grounded in facts stated on
# the page; fields that cannot be supported by the page are returned as
# null/empty. When false, the model may make reasonable inferences and derivations
# from the page content (e.g. ideal customer, competitor analysis,
# recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
# metrics) faithful to the source.
# When true, every returned value must be grounded in facts stated on the page;
# fields that cannot be supported by the page are returned as null/empty. When
# false (default), the model may make reasonable inferences and derivations from
# the page content (e.g. ideal customer, competitor analysis, recommendations)
# while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
# faithful to the source.
#
# @return [Boolean, nil]
optional :fact_check, ContextDev::Internal::Type::Boolean, api_name: :factCheck
Expand All @@ -54,7 +54,7 @@ class WebExtractParams < ContextDev::Internal::Type::BaseModel

# @!attribute max_age_ms
# Return cached scrape results if a prior scrape for the same parameters is
# younger than this many milliseconds.
# younger than this many milliseconds. Defaults to 7 days (604800000 ms).
#
# @return [Integer, nil]
optional :max_age_ms, Integer, api_name: :maxAgeMs
Expand Down Expand Up @@ -93,7 +93,7 @@ class WebExtractParams < ContextDev::Internal::Type::BaseModel
#
# @param url [String] The starting website URL to crawl and extract from. Must include http:// or http
#
# @param fact_check [Boolean] When true (default), every returned value must be grounded in facts stated on th
# @param fact_check [Boolean] When true, every returned value must be grounded in facts stated on the page; fi
#
# @param follow_subdomains [Boolean] When true, follow links on subdomains of the starting URL's domain.
#
Expand Down
8 changes: 3 additions & 5 deletions lib/context_dev/resources/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@ class Web
# Some parameter documentations has been truncated, see
# {ContextDev::Models::WebExtractParams} for more details.
#
# Crawl a website, convert pages to Markdown using the scrape cache, and extract
# structured data into the provided JSON Schema. The schema must describe the
# response data object. This endpoint does not accept targeted page-type
# selection.
# Crawl a website, use the provided JSON Schema and instructions to prioritize
# relevant internal links, and extract structured data from the selected pages.
#
# @overload extract(schema:, url:, fact_check: nil, follow_subdomains: nil, include_frames: nil, instructions: nil, max_age_ms: nil, pdf: nil, stop_after_ms: nil, timeout_ms: nil, wait_for_ms: nil, request_options: {})
#
# @param schema [Hash{Symbol=>Object}] JSON Schema for the returned data object. TypeScript Zod users can pass a JSON S
#
# @param url [String] The starting website URL to crawl and extract from. Must include http:// or http
#
# @param fact_check [Boolean] When true (default), every returned value must be grounded in facts stated on th
# @param fact_check [Boolean] When true, every returned value must be grounded in facts stated on the page; fi
#
# @param follow_subdomains [Boolean] When true, follow links on subdomains of the starting URL's domain.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/context_dev/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ContextDev
VERSION = "1.25.0"
VERSION = "1.26.0"
end
28 changes: 14 additions & 14 deletions rbi/context_dev/models/web_extract_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ module ContextDev
sig { returns(String) }
attr_accessor :url

# When true (default), every returned value must be grounded in facts stated on
# the page; fields that cannot be supported by the page are returned as
# null/empty. When false, the model may make reasonable inferences and derivations
# from the page content (e.g. ideal customer, competitor analysis,
# recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
# metrics) faithful to the source.
# When true, every returned value must be grounded in facts stated on the page;
# fields that cannot be supported by the page are returned as null/empty. When
# false (default), the model may make reasonable inferences and derivations from
# the page content (e.g. ideal customer, competitor analysis, recommendations)
# while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
# faithful to the source.
sig { returns(T.nilable(T::Boolean)) }
attr_reader :fact_check

Expand Down Expand Up @@ -57,7 +57,7 @@ module ContextDev
attr_writer :instructions

# Return cached scrape results if a prior scrape for the same parameters is
# younger than this many milliseconds.
# younger than this many milliseconds. Defaults to 7 days (604800000 ms).
sig { returns(T.nilable(Integer)) }
attr_reader :max_age_ms

Expand Down Expand Up @@ -118,12 +118,12 @@ module ContextDev
# The starting website URL to crawl and extract from. Must include http:// or
# https://.
url:,
# When true (default), every returned value must be grounded in facts stated on
# the page; fields that cannot be supported by the page are returned as
# null/empty. When false, the model may make reasonable inferences and derivations
# from the page content (e.g. ideal customer, competitor analysis,
# recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
# metrics) faithful to the source.
# When true, every returned value must be grounded in facts stated on the page;
# fields that cannot be supported by the page are returned as null/empty. When
# false (default), the model may make reasonable inferences and derivations from
# the page content (e.g. ideal customer, competitor analysis, recommendations)
# while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
# faithful to the source.
fact_check: nil,
# When true, follow links on subdomains of the starting URL's domain.
follow_subdomains: nil,
Expand All @@ -133,7 +133,7 @@ module ContextDev
# interpret fields in the schema.
instructions: nil,
# Return cached scrape results if a prior scrape for the same parameters is
# younger than this many milliseconds.
# younger than this many milliseconds. Defaults to 7 days (604800000 ms).
max_age_ms: nil,
pdf: nil,
# Soft time budget for the crawl in milliseconds.
Expand Down
20 changes: 9 additions & 11 deletions rbi/context_dev/resources/web.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
module ContextDev
module Resources
class Web
# Crawl a website, convert pages to Markdown using the scrape cache, and extract
# structured data into the provided JSON Schema. The schema must describe the
# response data object. This endpoint does not accept targeted page-type
# selection.
# Crawl a website, use the provided JSON Schema and instructions to prioritize
# relevant internal links, and extract structured data from the selected pages.
sig do
params(
schema: T::Hash[Symbol, T.anything],
Expand All @@ -31,12 +29,12 @@ module ContextDev
# The starting website URL to crawl and extract from. Must include http:// or
# https://.
url:,
# When true (default), every returned value must be grounded in facts stated on
# the page; fields that cannot be supported by the page are returned as
# null/empty. When false, the model may make reasonable inferences and derivations
# from the page content (e.g. ideal customer, competitor analysis,
# recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
# metrics) faithful to the source.
# When true, every returned value must be grounded in facts stated on the page;
# fields that cannot be supported by the page are returned as null/empty. When
# false (default), the model may make reasonable inferences and derivations from
# the page content (e.g. ideal customer, competitor analysis, recommendations)
# while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
# faithful to the source.
fact_check: nil,
# When true, follow links on subdomains of the starting URL's domain.
follow_subdomains: nil,
Expand All @@ -46,7 +44,7 @@ module ContextDev
# interpret fields in the schema.
instructions: nil,
# Return cached scrape results if a prior scrape for the same parameters is
# younger than this many milliseconds.
# younger than this many milliseconds. Defaults to 7 days (604800000 ms).
max_age_ms: nil,
pdf: nil,
# Soft time budget for the crawl in milliseconds.
Expand Down
Loading