Skip to main content

GL Connectors Tool SDK

Framework-agnostic tool SDK for building tools that work with GLLM Core, LangChain, and Google ADK.

Installation

(Alternative to uv add would be pip install)

# Core SDK only
uv add gl-connectors-tools

# With GLLM Core support
uv add gl-connectors-tools[gllm]

# With LangChain support
uv add gl-connectors-tools[langchain]

# With Google ADK Support
uv add gl-connectors-tools[adk]

# With all frameworks
uv add gl-connectors-tools[all]

Quick Start

Creating a Tool

from pydantic import BaseModel, Field
from gl_connectors_tools.tools import BaseTool


class SearchInput(BaseModel):
    query: str = Field(description="Search query")
    max_results: int = Field(default=10, description="Maximum results to return")


class SearchTool(BaseTool):
    name = "search"
    description = "Searches for information"
    input_schema = SearchInput

    def run(self, query: str, max_results: int = 10) -> str:
        # Your implementation here
        return f"Found {max_results} results for: {query}"

Using with Different Frameworks

from gl_connectors_tools.adapters import (
    to_gllm_tool,      # GLLM Core
    to_langchain_tool,  # LangChain
    to_adk_function,    # Google ADK
)

tool = SearchTool()

# Convert to GLLM Core Tool
gllm_tool = to_gllm_tool(tool)

# Convert to LangChain StructuredTool
lc_tool = to_langchain_tool(tool)

# Convert to ADK FunctionDeclaration
func_decl, callable_fn = to_adk_function(tool)

Migrating from LangChain (Zero-Change!)

Just change the import. The SDK accepts LangChain naming conventions out of the box:

- from langchain_core.tools import BaseTool
+ from gl_connectors_tools.tools import BaseTool

  class MyTool(BaseTool):
      name = "my_tool"
      description = "..."
      args_schema = MyInput      # ✅ Works as-is!

      def _run(self, **kwargs):  # ✅ Works as-is!
          # implementation unchanged

The SDK supports both naming conventions:

LangChain Style SDK Style
args_schema input_schema
_run() run()
_arun() arun()

Alternative: Wrapper for Existing Instances

If you have existing LangChain tool instances you can't modify:

from gl_connectors_tools.adapters.langchain import LangChainToolWrapper

# Existing LangChain tool instance
from my_app.tools import MyLangChainTool

# Wrap it
sdk_tool = LangChainToolWrapper(MyLangChainTool())

# Now use it with any adapter
gllm_tool = to_gllm_tool(sdk_tool)

Predefined Tools

from gl_connectors_tools.predefined import TimeTool

tool = TimeTool()
result = tool.run(timezone="Asia/Jakarta")

Architecture

┌─────────────────────────────────────────────────┐
│               Your SDK Tools                     │
│         (inherit from BaseTool)                  │
└─────────────────────────────────────────────────┘
                      │
        ┌─────────────┼─────────────┐
        ▼             ▼             ▼
   ┌─────────┐  ┌─────────┐  ┌─────────┐
   │  GLLM   │  │LangChain│  │   ADK   │
   │ Adapter │  │ Adapter │  │ Adapter │
   └─────────┘  └─────────┘  └─────────┘

The SDK owns the tool interface. Frameworks become output adapters, not the source of truth.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gl_connectors_tools_binary-0.0.12-cp313-cp313-win_amd64.whl (542.9 kB view details)

Uploaded CPython 3.13Windows x86-64

gl_connectors_tools_binary-0.0.12-cp313-cp313-manylinux_2_31_x86_64.whl (860.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.12-cp313-cp313-macosx_13_0_arm64.whl (592.8 kB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gl_connectors_tools_binary-0.0.12-cp312-cp312-win_amd64.whl (545.8 kB view details)

Uploaded CPython 3.12Windows x86-64

gl_connectors_tools_binary-0.0.12-cp312-cp312-manylinux_2_31_x86_64.whl (860.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.12-cp312-cp312-macosx_13_0_arm64.whl (590.6 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gl_connectors_tools_binary-0.0.12-cp311-cp311-manylinux_2_31_x86_64.whl (786.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.12-cp311-cp311-macosx_13_0_arm64.whl (585.1 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gl_connectors_tools_binary-0.0.12-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.12-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 db7acf8abc4985a73dc21a720ae2af71b18de1225c6c545018f6f2ff36bb4a46
MD5 9856d483420ce0f3d4073c2f3d04e05e
BLAKE2b-256 04ed8f606125018dec1f51c556c6fab0e3d46d948b78948812ab8eeb8d26b9f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.12-cp313-cp313-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gl_connectors_tools_binary-0.0.12-cp313-cp313-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.12-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d095ce7e5aa83dff320a1d80a5d9f8f05213fda9c2e92371f56dc5a5fd33d192
MD5 9c191bf68841353602b270f171011575
BLAKE2b-256 ae874f3af1eaf4fdde55327711ac242456b29ae198d390bba67e9a397cab32e1

See more details on using hashes here.

File details

Details for the file gl_connectors_tools_binary-0.0.12-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.12-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6be27ac51c8834072ca793a3787723631af50be7f732e64b21553dd1a8395c2b
MD5 db88655925bab0128a5d77eccd6656f7
BLAKE2b-256 204032e8bd6baef5e9be3aa91daa1e7a59ab716fcfd699db5144021ac9a85669

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.12-cp313-cp313-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gl_connectors_tools_binary-0.0.12-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 79e48b3410a62bb345104111a04d99029d6d661c7c74fec3daee4356161eaa9b
MD5 9a1de9f6ede3cbd9bab000ca272c5352
BLAKE2b-256 d717aab1d71a84d89dc0b1e3a06a33e2de304d94832fcbaf3760e5f1d0e628a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.12-cp312-cp312-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gl_connectors_tools_binary-0.0.12-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.12-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b7c19248af99440b0445a9addd1bc33a5f763752f782ff35e48a58b18458b63c
MD5 296e266da52775b05bffdd09bf258c2f
BLAKE2b-256 4bed9aebf066e2159668caf71d2f0252b8189b2374d7ede87204868ef13e430f

See more details on using hashes here.

File details

Details for the file gl_connectors_tools_binary-0.0.12-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.12-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ad03ad36a4d8d2f559c41815b7dbf679d336643c95c425148bfe4e06d81b70bc
MD5 8bf251668d4d1d93d94bd9e9647c01b6
BLAKE2b-256 e4f04b35cee2aa182c8de5d4bff861ed5c71331f8d50009456f4b09cc7f96a00

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.12-cp312-cp312-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gl_connectors_tools_binary-0.0.12-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.12-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 49231cb33f101cf27cc86e1ac610c1a6a1e737743d6d2c05c26b6a2d913ec4cd
MD5 4753f5fec9e4c0930034f7ff981b765e
BLAKE2b-256 6a43d340ac97cb057136829e8718cb8e964706b436335954172a56527adf41a1

See more details on using hashes here.

File details

Details for the file gl_connectors_tools_binary-0.0.12-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.12-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4f6bfea4445c6b39c6d76b8fcf3a54e0d6d360ba6d9b1af1b3cacb7baf613520
MD5 fc43fac42323816853069011b5224728
BLAKE2b-256 6c48ea88ef45c5c6439334621eac0170f3104a2e8c67afe7b74b7f455bd1572c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.12-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-connectors-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page