Analyze the app and create an AGENTS.md file Args: id: Session ID extra_headers: Send extra headers extra_query: Add additional query parameters to the request extra_body: Add additional JSON properties to the request timeout: O
(
self,
id: str,
*,
message_id: str,
model_id: str,
provider_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,
)
| 209 | ) |
| 210 | |
| 211 | def init( |
| 212 | self, |
| 213 | id: str, |
| 214 | *, |
| 215 | message_id: str, |
| 216 | model_id: str, |
| 217 | provider_id: str, |
| 218 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 219 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 220 | extra_headers: Headers | None = None, |
| 221 | extra_query: Query | None = None, |
| 222 | extra_body: Body | None = None, |
| 223 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 224 | ) -> SessionInitResponse: |
| 225 | """ |
| 226 | Analyze the app and create an AGENTS.md file |
| 227 | |
| 228 | Args: |
| 229 | id: Session ID |
| 230 | |
| 231 | extra_headers: Send extra headers |
| 232 | |
| 233 | extra_query: Add additional query parameters to the request |
| 234 | |
| 235 | extra_body: Add additional JSON properties to the request |
| 236 | |
| 237 | timeout: Override the client-level default timeout for this request, in seconds |
| 238 | """ |
| 239 | if not id: |
| 240 | raise ValueError(f"Expected a non-empty value for `id` but received {id!r}") |
| 241 | return self._post( |
| 242 | f"/session/{id}/init", |
| 243 | body=maybe_transform( |
| 244 | { |
| 245 | "message_id": message_id, |
| 246 | "model_id": model_id, |
| 247 | "provider_id": provider_id, |
| 248 | }, |
| 249 | session_init_params.SessionInitParams, |
| 250 | ), |
| 251 | options=make_request_options( |
| 252 | extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
| 253 | ), |
| 254 | cast_to=SessionInitResponse, |
| 255 | ) |
| 256 | |
| 257 | def messages( |
| 258 | self, |
nothing calls this directly
no test coverage detected