mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2026-02-04 13:56:24 -06:00
chore: Batch organize imports with isort.
Command: `isort /src` PiperOrigin-RevId: 761644934
This commit is contained in:
committed by
Copybara-Service
parent
1807e73472
commit
1773cdab96
@@ -12,11 +12,18 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from abc import ABC
|
||||
from abc import abstractmethod
|
||||
import base64
|
||||
import json
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from urllib.parse import parse_qs, urlparse
|
||||
from typing import Any
|
||||
from typing import Dict
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
from typing import Tuple
|
||||
from urllib.parse import parse_qs
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from google.auth import default as default_service_credential
|
||||
from google.auth.transport.requests import Request
|
||||
from google.oauth2 import service_account
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
import json
|
||||
from typing import Optional
|
||||
|
||||
import google.auth
|
||||
from google.auth import default as default_service_credential
|
||||
import google.auth.transport.requests
|
||||
|
||||
@@ -14,7 +14,11 @@
|
||||
|
||||
import json
|
||||
import time
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from typing import Any
|
||||
from typing import Dict
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
from typing import Tuple
|
||||
|
||||
import google.auth
|
||||
from google.auth import default as default_service_credential
|
||||
|
||||
@@ -13,7 +13,9 @@
|
||||
# limitations under the License.
|
||||
|
||||
import json
|
||||
from typing import List, Optional
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
|
||||
from google.adk.tools.application_integration_tool.clients.connections_client import ConnectionsClient
|
||||
import google.auth
|
||||
from google.auth import default as default_service_credential
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
from abc import ABC
|
||||
from abc import abstractmethod
|
||||
from typing import Optional, runtime_checkable
|
||||
from typing import Optional
|
||||
from typing import Protocol
|
||||
from typing import runtime_checkable
|
||||
|
||||
from ..agents.readonly_context import ReadonlyContext
|
||||
from .base_tool import BaseTool
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from .long_running_tool import LongRunningFunctionTool
|
||||
from .tool_context import ToolContext
|
||||
|
||||
|
||||
@@ -12,9 +12,13 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from typing import Any, Dict
|
||||
from google.genai.types import Schema, Type
|
||||
from typing import Any
|
||||
from typing import Dict
|
||||
|
||||
from google.genai.types import Schema
|
||||
from google.genai.types import Type
|
||||
import mcp.types as mcp_types
|
||||
|
||||
from ..base_tool import BaseTool
|
||||
|
||||
|
||||
|
||||
+1
-3
@@ -15,9 +15,7 @@
|
||||
import abc
|
||||
from typing import Optional
|
||||
|
||||
from .....auth.auth_credential import (
|
||||
AuthCredential,
|
||||
)
|
||||
from .....auth.auth_credential import AuthCredential
|
||||
from .....auth.auth_schemes import AuthScheme
|
||||
|
||||
|
||||
|
||||
+6
-7
@@ -21,14 +21,13 @@ from google.auth.transport.requests import Request
|
||||
from google.oauth2 import service_account
|
||||
import google.oauth2.credentials
|
||||
|
||||
from .....auth.auth_credential import (
|
||||
AuthCredential,
|
||||
AuthCredentialTypes,
|
||||
HttpAuth,
|
||||
HttpCredentials,
|
||||
)
|
||||
from .....auth.auth_credential import AuthCredential
|
||||
from .....auth.auth_credential import AuthCredentialTypes
|
||||
from .....auth.auth_credential import HttpAuth
|
||||
from .....auth.auth_credential import HttpCredentials
|
||||
from .....auth.auth_schemes import AuthScheme
|
||||
from .base_credential_exchanger import AuthCredentialMissingError, BaseAuthCredentialExchanger
|
||||
from .base_credential_exchanger import AuthCredentialMissingError
|
||||
from .base_credential_exchanger import BaseAuthCredentialExchanger
|
||||
|
||||
|
||||
class ServiceAccountCredentialExchanger(BaseAuthCredentialExchanger):
|
||||
|
||||
@@ -14,7 +14,11 @@
|
||||
|
||||
import keyword
|
||||
import re
|
||||
from typing import Any, Dict, List, Optional, Union
|
||||
from typing import Any
|
||||
from typing import Dict
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
from typing import Union
|
||||
|
||||
from fastapi.openapi.models import Response
|
||||
from fastapi.openapi.models import Schema
|
||||
|
||||
@@ -12,10 +12,15 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from .openapi_spec_parser import OpenApiSpecParser, OperationEndpoint, ParsedOperation
|
||||
from .openapi_spec_parser import OpenApiSpecParser
|
||||
from .openapi_spec_parser import OperationEndpoint
|
||||
from .openapi_spec_parser import ParsedOperation
|
||||
from .openapi_toolset import OpenAPIToolset
|
||||
from .operation_parser import OperationParser
|
||||
from .rest_api_tool import AuthPreparationState, RestApiTool, snake_to_lower_camel, to_gemini_schema
|
||||
from .rest_api_tool import AuthPreparationState
|
||||
from .rest_api_tool import RestApiTool
|
||||
from .rest_api_tool import snake_to_lower_camel
|
||||
from .rest_api_tool import to_gemini_schema
|
||||
from .tool_auth_handler import ToolAuthHandler
|
||||
|
||||
__all__ = [
|
||||
|
||||
@@ -14,7 +14,11 @@
|
||||
|
||||
import inspect
|
||||
from textwrap import dedent
|
||||
from typing import Any, Dict, List, Optional, Union
|
||||
from typing import Any
|
||||
from typing import Dict
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
from typing import Union
|
||||
|
||||
from fastapi.encoders import jsonable_encoder
|
||||
from fastapi.openapi.models import Operation
|
||||
|
||||
Reference in New Issue
Block a user