(self, telemetry: Telemetry)
| 25 | |
| 26 | class PlusAPIMixin: |
| 27 | def __init__(self, telemetry: Telemetry) -> None: |
| 28 | try: |
| 29 | telemetry.set_tracer() |
| 30 | self.plus_api_client = PlusAPI(api_key=get_auth_token()) |
| 31 | except Exception: |
| 32 | telemetry.deploy_signup_error_span() |
| 33 | console.print( |
| 34 | "Please sign up/login to CrewAI+ before using the CLI.", |
| 35 | style="bold red", |
| 36 | ) |
| 37 | console.print("Run 'crewai login' to sign up/login.", style="bold green") |
| 38 | raise AuthenticationRequiredError from None |
| 39 | |
| 40 | def _validate_response(self, response: httpx.Response) -> None: |
| 41 | """Handle and display error messages from API responses. |
nothing calls this directly
no test coverage detected