Append prompt to the TUI 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 t
(
self,
*,
text: 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,
)
| 43 | return TuiResourceWithStreamingResponse(self) |
| 44 | |
| 45 | def append_prompt( |
| 46 | self, |
| 47 | *, |
| 48 | text: str, |
| 49 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 50 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 51 | extra_headers: Headers | None = None, |
| 52 | extra_query: Query | None = None, |
| 53 | extra_body: Body | None = None, |
| 54 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 55 | ) -> TuiAppendPromptResponse: |
| 56 | """ |
| 57 | Append prompt to the TUI |
| 58 | |
| 59 | Args: |
| 60 | extra_headers: Send extra headers |
| 61 | |
| 62 | extra_query: Add additional query parameters to the request |
| 63 | |
| 64 | extra_body: Add additional JSON properties to the request |
| 65 | |
| 66 | timeout: Override the client-level default timeout for this request, in seconds |
| 67 | """ |
| 68 | return self._post( |
| 69 | "/tui/append-prompt", |
| 70 | body=maybe_transform({"text": text}, tui_append_prompt_params.TuiAppendPromptParams), |
| 71 | options=make_request_options( |
| 72 | extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
| 73 | ), |
| 74 | cast_to=TuiAppendPromptResponse, |
| 75 | ) |
| 76 | |
| 77 | def open_help( |
| 78 | self, |