Share a session Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request extra_body: Add additional JSON properties to the request timeout: Override the client-level default timeout for this reque
(
self,
id: str,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
)
| 332 | ) |
| 333 | |
| 334 | def share( |
| 335 | self, |
| 336 | id: str, |
| 337 | *, |
| 338 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 339 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 340 | extra_headers: Headers | None = None, |
| 341 | extra_query: Query | None = None, |
| 342 | extra_body: Body | None = None, |
| 343 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 344 | ) -> Session: |
| 345 | """ |
| 346 | Share a session |
| 347 | |
| 348 | Args: |
| 349 | extra_headers: Send extra headers |
| 350 | |
| 351 | extra_query: Add additional query parameters to the request |
| 352 | |
| 353 | extra_body: Add additional JSON properties to the request |
| 354 | |
| 355 | timeout: Override the client-level default timeout for this request, in seconds |
| 356 | """ |
| 357 | if not id: |
| 358 | raise ValueError(f"Expected a non-empty value for `id` but received {id!r}") |
| 359 | return self._post( |
| 360 | f"/session/{id}/share", |
| 361 | options=make_request_options( |
| 362 | extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
| 363 | ), |
| 364 | cast_to=Session, |
| 365 | ) |
| 366 | |
| 367 | def summarize( |
| 368 | self, |