Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,929 changes: 1,046 additions & 883 deletions openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ def sync_detailed(
) -> Response[BaseScorerVersionResponse | HTTPValidationError]:
"""Create Luna Scorer Version

Create a new custom Luna scorer version for the given scorer.

Args:
create_luna_scorer_version_request: LoRA/fine-tuning parameters for the new version.
scorer: The Luna scorer to create a new version for.
ctx: Async request context with the authenticated user and read session.

Returns:
The newly created scorer version.

Args:
scorer_id (str):
body (CreateCustomLunaScorerVersionRequest):
Expand All @@ -111,6 +121,16 @@ def sync(
) -> Optional[BaseScorerVersionResponse | HTTPValidationError]:
"""Create Luna Scorer Version

Create a new custom Luna scorer version for the given scorer.

Args:
create_luna_scorer_version_request: LoRA/fine-tuning parameters for the new version.
scorer: The Luna scorer to create a new version for.
ctx: Async request context with the authenticated user and read session.

Returns:
The newly created scorer version.

Args:
scorer_id (str):
body (CreateCustomLunaScorerVersionRequest):
Expand All @@ -131,6 +151,16 @@ async def asyncio_detailed(
) -> Response[BaseScorerVersionResponse | HTTPValidationError]:
"""Create Luna Scorer Version

Create a new custom Luna scorer version for the given scorer.

Args:
create_luna_scorer_version_request: LoRA/fine-tuning parameters for the new version.
scorer: The Luna scorer to create a new version for.
ctx: Async request context with the authenticated user and read session.

Returns:
The newly created scorer version.

Args:
scorer_id (str):
body (CreateCustomLunaScorerVersionRequest):
Expand All @@ -155,6 +185,16 @@ async def asyncio(
) -> Optional[BaseScorerVersionResponse | HTTPValidationError]:
"""Create Luna Scorer Version

Create a new custom Luna scorer version for the given scorer.

Args:
create_luna_scorer_version_request: LoRA/fine-tuning parameters for the new version.
scorer: The Luna scorer to create a new version for.
ctx: Async request context with the authenticated user and read session.

Returns:
The newly created scorer version.

Args:
scorer_id (str):
body (CreateCustomLunaScorerVersionRequest):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ def sync_detailed(
) -> Response[GeneratedScorerValidationResponse | HTTPValidationError]:
"""Manual Llm Validate Multipart

Validate an LLM scorer manually, with optional query/response file uploads.

Args:
body: JSON-encoded GeneratedScorerValidationRequest.
query_files: Optional files attached to the query side of the validation.
response_files: Optional files attached to the response side of the validation.
ctx: Async request context with the authenticated user and read session.

Returns:
A pending task result the caller can poll for validation results.

Args:
body (BodyManualLlmValidateMultipartScorersLlmValidateMultipartPost):

Expand All @@ -112,6 +123,17 @@ def sync(
) -> Optional[GeneratedScorerValidationResponse | HTTPValidationError]:
"""Manual Llm Validate Multipart

Validate an LLM scorer manually, with optional query/response file uploads.

Args:
body: JSON-encoded GeneratedScorerValidationRequest.
query_files: Optional files attached to the query side of the validation.
response_files: Optional files attached to the response side of the validation.
ctx: Async request context with the authenticated user and read session.

Returns:
A pending task result the caller can poll for validation results.

Args:
body (BodyManualLlmValidateMultipartScorersLlmValidateMultipartPost):

Expand All @@ -131,6 +153,17 @@ async def asyncio_detailed(
) -> Response[GeneratedScorerValidationResponse | HTTPValidationError]:
"""Manual Llm Validate Multipart

Validate an LLM scorer manually, with optional query/response file uploads.

Args:
body: JSON-encoded GeneratedScorerValidationRequest.
query_files: Optional files attached to the query side of the validation.
response_files: Optional files attached to the response side of the validation.
ctx: Async request context with the authenticated user and read session.

Returns:
A pending task result the caller can poll for validation results.

Args:
body (BodyManualLlmValidateMultipartScorersLlmValidateMultipartPost):

Expand All @@ -154,6 +187,17 @@ async def asyncio(
) -> Optional[GeneratedScorerValidationResponse | HTTPValidationError]:
"""Manual Llm Validate Multipart

Validate an LLM scorer manually, with optional query/response file uploads.

Args:
body: JSON-encoded GeneratedScorerValidationRequest.
query_files: Optional files attached to the query side of the validation.
response_files: Optional files attached to the response side of the validation.
ctx: Async request context with the authenticated user and read session.

Returns:
A pending task result the caller can poll for validation results.

Args:
body (BodyManualLlmValidateMultipartScorersLlmValidateMultipartPost):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ def _build_response(*, client: ApiClient, response: httpx.Response) -> Response[
def sync_detailed(*, client: ApiClient) -> Response[GeneratedScorerValidationResponse]:
"""Manual Llm Validate

Validate an LLM scorer manually, with query/response passed inline (no file uploads).

Args:
request: Raw request; body is parsed into a GeneratedScorerValidationRequest.
ctx: Async request context with the authenticated user and read session.

Returns:
A pending task result the caller can poll for validation results.

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.
Expand All @@ -90,6 +99,15 @@ def sync_detailed(*, client: ApiClient) -> Response[GeneratedScorerValidationRes
def sync(*, client: ApiClient) -> Optional[GeneratedScorerValidationResponse]:
"""Manual Llm Validate

Validate an LLM scorer manually, with query/response passed inline (no file uploads).

Args:
request: Raw request; body is parsed into a GeneratedScorerValidationRequest.
ctx: Async request context with the authenticated user and read session.

Returns:
A pending task result the caller can poll for validation results.

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.
Expand All @@ -104,6 +122,15 @@ def sync(*, client: ApiClient) -> Optional[GeneratedScorerValidationResponse]:
async def asyncio_detailed(*, client: ApiClient) -> Response[GeneratedScorerValidationResponse]:
"""Manual Llm Validate

Validate an LLM scorer manually, with query/response passed inline (no file uploads).

Args:
request: Raw request; body is parsed into a GeneratedScorerValidationRequest.
ctx: Async request context with the authenticated user and read session.

Returns:
A pending task result the caller can poll for validation results.

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.
Expand All @@ -122,6 +149,15 @@ async def asyncio_detailed(*, client: ApiClient) -> Response[GeneratedScorerVali
async def asyncio(*, client: ApiClient) -> Optional[GeneratedScorerValidationResponse]:
"""Manual Llm Validate

Validate an LLM scorer manually, with query/response passed inline (no file uploads).

Args:
request: Raw request; body is parsed into a GeneratedScorerValidationRequest.
ctx: Async request context with the authenticated user and read session.

Returns:
A pending task result the caller can poll for validation results.

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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from splunk_ao.utils.headers_data import get_sdk_header

from ... import errors
from ...models.extended_session_record_with_children import ExtendedSessionRecordWithChildren
from ...models.extended_read_session_record_with_children import ExtendedReadSessionRecordWithChildren
from ...models.http_validation_error import HTTPValidationError
from ...types import UNSET, Response, Unset

Expand Down Expand Up @@ -46,9 +46,9 @@ def _get_kwargs(project_id: str, session_id: str, *, include_presigned_urls: boo

def _parse_response(
*, client: ApiClient, response: httpx.Response
) -> ExtendedSessionRecordWithChildren | HTTPValidationError:
) -> ExtendedReadSessionRecordWithChildren | HTTPValidationError:
if response.status_code == 200:
response_200 = ExtendedSessionRecordWithChildren.from_dict(response.json())
response_200 = ExtendedReadSessionRecordWithChildren.from_dict(response.json())

return response_200

Expand Down Expand Up @@ -77,7 +77,7 @@ def _parse_response(

def _build_response(
*, client: ApiClient, response: httpx.Response
) -> Response[ExtendedSessionRecordWithChildren | HTTPValidationError]:
) -> Response[ExtendedReadSessionRecordWithChildren | HTTPValidationError]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
Expand All @@ -88,7 +88,7 @@ def _build_response(

def sync_detailed(
project_id: str, session_id: str, *, client: ApiClient, include_presigned_urls: bool | Unset = False
) -> Response[ExtendedSessionRecordWithChildren | HTTPValidationError]:
) -> Response[ExtendedReadSessionRecordWithChildren | HTTPValidationError]:
"""Get Session

Args:
Expand All @@ -101,7 +101,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:
Response[ExtendedSessionRecordWithChildren | HTTPValidationError]
Response[ExtendedReadSessionRecordWithChildren | HTTPValidationError]
"""

kwargs = _get_kwargs(project_id=project_id, session_id=session_id, include_presigned_urls=include_presigned_urls)
Expand All @@ -113,7 +113,7 @@ def sync_detailed(

def sync(
project_id: str, session_id: str, *, client: ApiClient, include_presigned_urls: bool | Unset = False
) -> Optional[ExtendedSessionRecordWithChildren | HTTPValidationError]:
) -> Optional[ExtendedReadSessionRecordWithChildren | HTTPValidationError]:
"""Get Session

Args:
Expand All @@ -126,7 +126,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:
ExtendedSessionRecordWithChildren | HTTPValidationError
ExtendedReadSessionRecordWithChildren | HTTPValidationError
"""

return sync_detailed(
Expand All @@ -136,7 +136,7 @@ def sync(

async def asyncio_detailed(
project_id: str, session_id: str, *, client: ApiClient, include_presigned_urls: bool | Unset = False
) -> Response[ExtendedSessionRecordWithChildren | HTTPValidationError]:
) -> Response[ExtendedReadSessionRecordWithChildren | HTTPValidationError]:
"""Get Session

Args:
Expand All @@ -149,7 +149,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:
Response[ExtendedSessionRecordWithChildren | HTTPValidationError]
Response[ExtendedReadSessionRecordWithChildren | HTTPValidationError]
"""

kwargs = _get_kwargs(project_id=project_id, session_id=session_id, include_presigned_urls=include_presigned_urls)
Expand All @@ -161,7 +161,7 @@ async def asyncio_detailed(

async def asyncio(
project_id: str, session_id: str, *, client: ApiClient, include_presigned_urls: bool | Unset = False
) -> Optional[ExtendedSessionRecordWithChildren | HTTPValidationError]:
) -> Optional[ExtendedReadSessionRecordWithChildren | HTTPValidationError]:
"""Get Session

Args:
Expand All @@ -174,7 +174,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns:
ExtendedSessionRecordWithChildren | HTTPValidationError
ExtendedReadSessionRecordWithChildren | HTTPValidationError
"""

return (
Expand Down
Loading