Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.10b2-cp313-cp313-win_amd64.whl (462.1 kB view details)

Uploaded CPython 3.13Windows x86-64

gl_connectors_tools_binary-0.0.10b2-cp313-cp313-manylinux_2_31_x86_64.whl (757.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.10b2-cp313-cp313-macosx_13_0_arm64.whl (502.0 kB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gl_connectors_tools_binary-0.0.10b2-cp312-cp312-win_amd64.whl (465.0 kB view details)

Uploaded CPython 3.12Windows x86-64

gl_connectors_tools_binary-0.0.10b2-cp312-cp312-manylinux_2_31_x86_64.whl (758.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.10b2-cp312-cp312-macosx_13_0_arm64.whl (500.4 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gl_connectors_tools_binary-0.0.10b2-cp311-cp311-win_amd64.whl (478.6 kB view details)

Uploaded CPython 3.11Windows x86-64

gl_connectors_tools_binary-0.0.10b2-cp311-cp311-manylinux_2_31_x86_64.whl (692.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.10b2-cp311-cp311-macosx_13_0_arm64.whl (494.4 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gl_connectors_tools_binary-0.0.10b2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ec35427652e8a6974cd4a19145009d220654aa505447d6e1db5f71b75ae1a1ab
MD5 3ad660436ca8f677978e68661eba6aa5
BLAKE2b-256 3f6586806ebfbc924d1d56636cc24cd03226663f7ecd84d4dbeae5f46dec4630

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.10b2-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.10b2-cp313-cp313-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b2-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fe74e6478d07362316e1741fdd267645a9d79a3d3db631d78a1a821efef6df73
MD5 3a0820e3d3905c10088cbb0470b866ab
BLAKE2b-256 313d51d0c75dab04ddb2ef8fb8cb22d9d79abbd4eaee7c44fdd74def0c7129fd

See more details on using hashes here.

File details

Details for the file gl_connectors_tools_binary-0.0.10b2-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b2-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1b63f22d72afba49437409655feb101b293e1f45face0a697a49fc8a1cd10317
MD5 617828b56d972e781ce32ab12f73d18a
BLAKE2b-256 a8d46299a0178c747016ffbdd52832fe39cdd3192f915098d10f35ec8b2d8d5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.10b2-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.10b2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7f4f688a33f67ad2058ce569b5b720496f56a146d25324ec0229af3cf49ba704
MD5 69f669063380203bfbe6c88296b9de86
BLAKE2b-256 53de94efc2f8503e89c10dfed880d4e6a55b2dd9fb248514b99efea8c7d17306

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.10b2-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.10b2-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b2-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 aa7dbf50bd43d736d6ded371b935a290e9322fe926cca3c6da46fcb9279adcb0
MD5 0026f782f62770d6fd42ed689206c925
BLAKE2b-256 9b078b52fa211d569dc1c011a6cd06e4e2e35e4c689097de7597b8479444ef7c

See more details on using hashes here.

File details

Details for the file gl_connectors_tools_binary-0.0.10b2-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b2-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 502c04d4bc10e9aa5a5d90b49653ae8ca1098c7c50af97af7455680bf982d800
MD5 886b29f0bd116666a4182d1c461cd9da
BLAKE2b-256 e831e8eeeafae27a33096617f4fc01b08d43db9af6ec1e339ef7d93698fd13b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.10b2-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.10b2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e6097fe79a08602d7eb9360cba514b4f3cec4fc1581241b145a480a61ea42ad5
MD5 ae0436e88aa2cb67afcbd8f884344d90
BLAKE2b-256 cba80b889349806ff556172eafe881cb7e67fe721a7d53497673c2007b33f9ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.10b2-cp311-cp311-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.10b2-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b2-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a4f6ca1831cc3be98852699ab52f5996c95bebc2c592811ac329bcadb6b12e2a
MD5 fe53ae9b514ae0160dbb52eeb53405c4
BLAKE2b-256 d885fe5cfe7c79275af1db46714ae948ef62717b95a8da20b160350dbc38ab29

See more details on using hashes here.

File details

Details for the file gl_connectors_tools_binary-0.0.10b2-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b2-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b915ebcb6cae2d18ed5234adaf9fb58477f94dddee8510524e87fa807c76a8f7
MD5 7d0aedca3223ac93c026133f243e5380
BLAKE2b-256 64a3ede107d84174e52fba7f5d9b2069ec70bdeb4c923869d4729dc09dd7b36b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gl_connectors_tools_binary-0.0.10b2-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