
    ]j                     x    d dl Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	m
Z
 ddlmZ  G d	 d
      Z G d d      Zy)    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions)LseKeyIndicatorValue   )AsyncRawIndicatorsClientRawIndicatorsClient)ListIndicatorsResponseItemc            	           e Zd ZdefdZedefd       Zdddede	j                  e   de	j                  e   fd	Zddded
ede	j                  e   defdZy)IndicatorsClientclient_wrapperc                &    t        |      | _        y N)r   )r
   _raw_clientselfr   s     T/root/env/lib/python3.12/site-packages/label_studio_sdk/prompts/indicators/client.py__init__zIndicatorsClient.__init__   s    .nM    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawIndicatorsClient
        r   r   s    r   with_raw_responsez"IndicatorsClient.with_raw_response        r   Nrequest_optionsidr   c                T    | j                   j                  ||      }|j                  S )a*  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Get key indicators for the Prompt dashboard.

        Parameters
        ----------
        id : int

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        typing.List[ListIndicatorsResponseItem]
            Key indicators

        Examples
        --------
        from label_studio_sdk import LabelStudio

        client = LabelStudio(
            api_key="YOUR_API_KEY",
        )
        client.prompts.indicators.list(
            id=1,
        )
        r   r   listdatar   r   r   	_responses       r   r"   zIndicatorsClient.list   s*    F $$))"o)N	~~r   indicator_keyc                V    | j                   j                  |||      }|j                  S )ag  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Get a specific key indicator for the Prompt dashboard.

        Parameters
        ----------
        id : int

        indicator_key : str

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        LseKeyIndicatorValue
            Key indicator

        Examples
        --------
        from label_studio_sdk import LabelStudio

        client = LabelStudio(
            api_key="YOUR_API_KEY",
        )
        client.prompts.indicators.get(
            id=1,
            indicator_key="indicator_key",
        )
        r   r   getr#   r   r   r&   r   r%   s        r   r)   zIndicatorsClient.getA   s,    L $$((]O(\	~~r   )__name__
__module____qualname__r   r   propertyr
   r   inttypingOptionalr   Listr   r"   strr   r)    r   r   r   r      s    N*; N  #6     NR$$+1??>+J$	/	0$N bf''&)'?E~?^'	'r   r   c            	           e Zd ZdefdZedefd       Zdddede	j                  e   de	j                  e   fd	Zddded
ede	j                  e   defdZy)AsyncIndicatorsClientr   c                &    t        |      | _        y r   )r	   r   r   s     r   r   zAsyncIndicatorsClient.__init__l   s    3>Rr   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawIndicatorsClient
        r   r   s    r   r   z'AsyncIndicatorsClient.with_raw_responseo   r   r   Nr   r   r   c                p   K   | j                   j                  ||       d{   }|j                  S 7 w)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Get key indicators for the Prompt dashboard.

        Parameters
        ----------
        id : int

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        typing.List[ListIndicatorsResponseItem]
            Key indicators

        Examples
        --------
        import asyncio

        from label_studio_sdk import AsyncLabelStudio

        client = AsyncLabelStudio(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.prompts.indicators.list(
                id=1,
            )


        asyncio.run(main())
        r   Nr!   r$   s       r   r"   zAsyncIndicatorsClient.listz   s7     V **//O/TT	~~ Us   !646r&   c                r   K   | j                   j                  |||       d{   }|j                  S 7 w)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Get a specific key indicator for the Prompt dashboard.

        Parameters
        ----------
        id : int

        indicator_key : str

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        LseKeyIndicatorValue
            Key indicator

        Examples
        --------
        import asyncio

        from label_studio_sdk import AsyncLabelStudio

        client = AsyncLabelStudio(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.prompts.indicators.get(
                id=1,
                indicator_key="indicator_key",
            )


        asyncio.run(main())
        r   Nr(   r*   s        r   r)   zAsyncIndicatorsClient.get   s:     \ **..r=Ra.bb	~~ cs   "757)r+   r,   r-   r   r   r.   r	   r   r/   r0   r1   r   r2   r   r"   r3   r   r)   r4   r   r   r6   r6   k   s    S*< S  #;     NR,,+1??>+J,	/	0,^ bf//&)/?E~?^/	/r   r6   )r0   core.client_wrapperr   r   core.request_optionsr   types.lse_key_indicator_valuer   
raw_clientr	   r
   #types.list_indicators_response_itemr   r   r6   r4   r   r   <module>r@      s2     H 2 A E K\ \~l lr   