polarion_rest_api_client.open_api_client.api.ai package

Contains endpoint functions for accessing the API

Submodules

polarion_rest_api_client.open_api_client.api.ai.generate_completion module

async polarion_rest_api_client.open_api_client.api.ai.generate_completion.asyncio(*, client: AuthenticatedClient | Client, body: GenerateCompletionRequestBody) Errors | GenerateCompletionResponseBody | None

Generates a chat completion using a Large Language Model (LLM).

Args:

body (GenerateCompletionRequestBody): Generate completion parameters.

Raises:

errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:

Errors | GenerateCompletionResponseBody

async polarion_rest_api_client.open_api_client.api.ai.generate_completion.asyncio_detailed(*, client: AuthenticatedClient | Client, body: GenerateCompletionRequestBody) Response[Errors | GenerateCompletionResponseBody]

Generates a chat completion using a Large Language Model (LLM).

Args:

body (GenerateCompletionRequestBody): Generate completion parameters.

Raises:

errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:

Response[Errors | GenerateCompletionResponseBody]

polarion_rest_api_client.open_api_client.api.ai.generate_completion.sync(*, client: AuthenticatedClient | Client, body: GenerateCompletionRequestBody) Errors | GenerateCompletionResponseBody | None

Generates a chat completion using a Large Language Model (LLM).

Args:

body (GenerateCompletionRequestBody): Generate completion parameters.

Raises:

errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:

Errors | GenerateCompletionResponseBody

polarion_rest_api_client.open_api_client.api.ai.generate_completion.sync_detailed(*, client: AuthenticatedClient | Client, body: GenerateCompletionRequestBody) Response[Errors | GenerateCompletionResponseBody]

Generates a chat completion using a Large Language Model (LLM).

Args:

body (GenerateCompletionRequestBody): Generate completion parameters.

Raises:

errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:

Response[Errors | GenerateCompletionResponseBody]

polarion_rest_api_client.open_api_client.api.ai.get_llms module

async polarion_rest_api_client.open_api_client.api.ai.get_llms.asyncio(*, client: AuthenticatedClient | Client, pagesize: int | Unset = <polarion_rest_api_client.open_api_client.types.Unset object>, pagenumber: int | Unset = <polarion_rest_api_client.open_api_client.types.Unset object>) Errors | LlmsListGetResponse | None

Returns a list of Large Language Models (LLMs).

Args:

pagesize (int | Unset): pagenumber (int | Unset):

Raises:

errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:

Errors | LlmsListGetResponse

async polarion_rest_api_client.open_api_client.api.ai.get_llms.asyncio_detailed(*, client: AuthenticatedClient | Client, pagesize: int | Unset = <polarion_rest_api_client.open_api_client.types.Unset object>, pagenumber: int | Unset = <polarion_rest_api_client.open_api_client.types.Unset object>) Response[Errors | LlmsListGetResponse]

Returns a list of Large Language Models (LLMs).

Args:

pagesize (int | Unset): pagenumber (int | Unset):

Raises:

errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:

Response[Errors | LlmsListGetResponse]

polarion_rest_api_client.open_api_client.api.ai.get_llms.sync(*, client: AuthenticatedClient | Client, pagesize: int | Unset = <polarion_rest_api_client.open_api_client.types.Unset object>, pagenumber: int | Unset = <polarion_rest_api_client.open_api_client.types.Unset object>) Errors | LlmsListGetResponse | None

Returns a list of Large Language Models (LLMs).

Args:

pagesize (int | Unset): pagenumber (int | Unset):

Raises:

errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:

Errors | LlmsListGetResponse

polarion_rest_api_client.open_api_client.api.ai.get_llms.sync_detailed(*, client: AuthenticatedClient | Client, pagesize: int | Unset = <polarion_rest_api_client.open_api_client.types.Unset object>, pagenumber: int | Unset = <polarion_rest_api_client.open_api_client.types.Unset object>) Response[Errors | LlmsListGetResponse]

Returns a list of Large Language Models (LLMs).

Args:

pagesize (int | Unset): pagenumber (int | Unset):

Raises:

errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:

Response[Errors | LlmsListGetResponse]