@@ -1686,8 +1686,6 @@ private constructor(
16861686 private val instruction: JsonField <String >,
16871687 private val highlightCursor: JsonField <Boolean >,
16881688 private val maxSteps: JsonField <Double >,
1689- private val toolTimeout: JsonField <Double >,
1690- private val useSearch: JsonField <Boolean >,
16911689 private val additionalProperties: MutableMap <String , JsonValue >,
16921690 ) {
16931691
@@ -1699,16 +1697,8 @@ private constructor(
16991697 @JsonProperty(" highlightCursor" )
17001698 @ExcludeMissing
17011699 highlightCursor: JsonField <Boolean > = JsonMissing .of(),
1702- @JsonProperty(" maxSteps" )
1703- @ExcludeMissing
1704- maxSteps: JsonField <Double > = JsonMissing .of(),
1705- @JsonProperty(" toolTimeout" )
1706- @ExcludeMissing
1707- toolTimeout: JsonField <Double > = JsonMissing .of(),
1708- @JsonProperty(" useSearch" )
1709- @ExcludeMissing
1710- useSearch: JsonField <Boolean > = JsonMissing .of(),
1711- ) : this (instruction, highlightCursor, maxSteps, toolTimeout, useSearch, mutableMapOf ())
1700+ @JsonProperty(" maxSteps" ) @ExcludeMissing maxSteps: JsonField <Double > = JsonMissing .of(),
1701+ ) : this (instruction, highlightCursor, maxSteps, mutableMapOf ())
17121702
17131703 /* *
17141704 * Natural language instruction for the agent
@@ -1734,22 +1724,6 @@ private constructor(
17341724 */
17351725 fun maxSteps (): Optional <Double > = maxSteps.getOptional(" maxSteps" )
17361726
1737- /* *
1738- * Timeout in milliseconds for each agent tool call
1739- *
1740- * @throws StagehandInvalidDataException if the JSON field has an unexpected type (e.g. if
1741- * the server responded with an unexpected value).
1742- */
1743- fun toolTimeout (): Optional <Double > = toolTimeout.getOptional(" toolTimeout" )
1744-
1745- /* *
1746- * Whether to enable the web search tool powered by Browserbase Search API
1747- *
1748- * @throws StagehandInvalidDataException if the JSON field has an unexpected type (e.g. if
1749- * the server responded with an unexpected value).
1750- */
1751- fun useSearch (): Optional <Boolean > = useSearch.getOptional(" useSearch" )
1752-
17531727 /* *
17541728 * Returns the raw JSON value of [instruction].
17551729 *
@@ -1776,22 +1750,6 @@ private constructor(
17761750 */
17771751 @JsonProperty(" maxSteps" ) @ExcludeMissing fun _maxSteps (): JsonField <Double > = maxSteps
17781752
1779- /* *
1780- * Returns the raw JSON value of [toolTimeout].
1781- *
1782- * Unlike [toolTimeout], this method doesn't throw if the JSON field has an unexpected type.
1783- */
1784- @JsonProperty(" toolTimeout" )
1785- @ExcludeMissing
1786- fun _toolTimeout (): JsonField <Double > = toolTimeout
1787-
1788- /* *
1789- * Returns the raw JSON value of [useSearch].
1790- *
1791- * Unlike [useSearch], this method doesn't throw if the JSON field has an unexpected type.
1792- */
1793- @JsonProperty(" useSearch" ) @ExcludeMissing fun _useSearch (): JsonField <Boolean > = useSearch
1794-
17951753 @JsonAnySetter
17961754 private fun putAdditionalProperty (key : String , value : JsonValue ) {
17971755 additionalProperties.put(key, value)
@@ -1823,17 +1781,13 @@ private constructor(
18231781 private var instruction: JsonField <String >? = null
18241782 private var highlightCursor: JsonField <Boolean > = JsonMissing .of()
18251783 private var maxSteps: JsonField <Double > = JsonMissing .of()
1826- private var toolTimeout: JsonField <Double > = JsonMissing .of()
1827- private var useSearch: JsonField <Boolean > = JsonMissing .of()
18281784 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
18291785
18301786 @JvmSynthetic
18311787 internal fun from (executeOptions : ExecuteOptions ) = apply {
18321788 instruction = executeOptions.instruction
18331789 highlightCursor = executeOptions.highlightCursor
18341790 maxSteps = executeOptions.maxSteps
1835- toolTimeout = executeOptions.toolTimeout
1836- useSearch = executeOptions.useSearch
18371791 additionalProperties = executeOptions.additionalProperties.toMutableMap()
18381792 }
18391793
@@ -1878,32 +1832,6 @@ private constructor(
18781832 */
18791833 fun maxSteps (maxSteps : JsonField <Double >) = apply { this .maxSteps = maxSteps }
18801834
1881- /* * Timeout in milliseconds for each agent tool call */
1882- fun toolTimeout (toolTimeout : Double ) = toolTimeout(JsonField .of(toolTimeout))
1883-
1884- /* *
1885- * Sets [Builder.toolTimeout] to an arbitrary JSON value.
1886- *
1887- * You should usually call [Builder.toolTimeout] with a well-typed [Double] value
1888- * instead. This method is primarily for setting the field to an undocumented or not yet
1889- * supported value.
1890- */
1891- fun toolTimeout (toolTimeout : JsonField <Double >) = apply {
1892- this .toolTimeout = toolTimeout
1893- }
1894-
1895- /* * Whether to enable the web search tool powered by Browserbase Search API */
1896- fun useSearch (useSearch : Boolean ) = useSearch(JsonField .of(useSearch))
1897-
1898- /* *
1899- * Sets [Builder.useSearch] to an arbitrary JSON value.
1900- *
1901- * You should usually call [Builder.useSearch] with a well-typed [Boolean] value
1902- * instead. This method is primarily for setting the field to an undocumented or not yet
1903- * supported value.
1904- */
1905- fun useSearch (useSearch : JsonField <Boolean >) = apply { this .useSearch = useSearch }
1906-
19071835 fun additionalProperties (additionalProperties : Map <String , JsonValue >) = apply {
19081836 this .additionalProperties.clear()
19091837 putAllAdditionalProperties(additionalProperties)
@@ -1940,8 +1868,6 @@ private constructor(
19401868 checkRequired(" instruction" , instruction),
19411869 highlightCursor,
19421870 maxSteps,
1943- toolTimeout,
1944- useSearch,
19451871 additionalProperties.toMutableMap(),
19461872 )
19471873 }
@@ -1956,8 +1882,6 @@ private constructor(
19561882 instruction()
19571883 highlightCursor()
19581884 maxSteps()
1959- toolTimeout()
1960- useSearch()
19611885 validated = true
19621886 }
19631887
@@ -1979,9 +1903,7 @@ private constructor(
19791903 internal fun validity (): Int =
19801904 (if (instruction.asKnown().isPresent) 1 else 0 ) +
19811905 (if (highlightCursor.asKnown().isPresent) 1 else 0 ) +
1982- (if (maxSteps.asKnown().isPresent) 1 else 0 ) +
1983- (if (toolTimeout.asKnown().isPresent) 1 else 0 ) +
1984- (if (useSearch.asKnown().isPresent) 1 else 0 )
1906+ (if (maxSteps.asKnown().isPresent) 1 else 0 )
19851907
19861908 override fun equals (other : Any? ): Boolean {
19871909 if (this == = other) {
@@ -1992,26 +1914,17 @@ private constructor(
19921914 instruction == other.instruction &&
19931915 highlightCursor == other.highlightCursor &&
19941916 maxSteps == other.maxSteps &&
1995- toolTimeout == other.toolTimeout &&
1996- useSearch == other.useSearch &&
19971917 additionalProperties == other.additionalProperties
19981918 }
19991919
20001920 private val hashCode: Int by lazy {
2001- Objects .hash(
2002- instruction,
2003- highlightCursor,
2004- maxSteps,
2005- toolTimeout,
2006- useSearch,
2007- additionalProperties,
2008- )
1921+ Objects .hash(instruction, highlightCursor, maxSteps, additionalProperties)
20091922 }
20101923
20111924 override fun hashCode (): Int = hashCode
20121925
20131926 override fun toString () =
2014- " ExecuteOptions{instruction=$instruction , highlightCursor=$highlightCursor , maxSteps=$maxSteps , toolTimeout= $toolTimeout , useSearch= $useSearch , additionalProperties=$additionalProperties }"
1927+ " ExecuteOptions{instruction=$instruction , highlightCursor=$highlightCursor , maxSteps=$maxSteps , additionalProperties=$additionalProperties }"
20151928 }
20161929
20171930 /* * Whether to stream the response via SSE */
0 commit comments