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.10b1-cp313-cp313-manylinux_2_31_x86_64.whl (761.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.10b1-cp313-cp313-macosx_13_0_arm64.whl (496.3 kB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gl_connectors_tools_binary-0.0.10b1-cp312-cp312-manylinux_2_31_x86_64.whl (762.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.10b1-cp312-cp312-macosx_13_0_arm64.whl (494.7 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gl_connectors_tools_binary-0.0.10b1-cp311-cp311-manylinux_2_31_x86_64.whl (696.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gl_connectors_tools_binary-0.0.10b1-cp311-cp311-macosx_13_0_arm64.whl (486.0 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gl_connectors_tools_binary-0.0.10b1-cp313-cp313-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b82b4e8f1155e45d50dfd51fe70f2aab6338b974c4c06c701c61093628ba8482
MD5 49bb00048e7dbd68aa24f57c06e626ca
BLAKE2b-256 f713162318e087cacd46c65a1f9dd692892b6aab6f0dcfb78c3019470369719d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0ec0faa2a8f7633fd68cd75adf298920d71e68df05a3a43e03881f720d3259de
MD5 ef4e19c9cf438b460e9bf5346f8bc8c9
BLAKE2b-256 cf0337c9ed89c48f1bfa70bc22a833699ee19584edfc913a33a860e907ad4780

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 dc416c8a48c44e7793f64415821b92331357c630e1cebc50aae2cbd0b27924fb
MD5 ec07fce97a2fe23c54fd546a7d6a3b3b
BLAKE2b-256 8aeb38135d7581e835434fa21c7b38a8edca26c9e128456d860ef6ac00909981

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f6409ee4bf1f60a2a01bf718a286f964f047ef25797e6d4454e1de77da863c3b
MD5 01637f23249e753e227638a2ae566bc6
BLAKE2b-256 b629665af7324dda135bf5c2f99aef0804dc62ad03dfd0dcc44870a62588a619

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cdfa3b4c30ec5ac97be7407e33ae3dde8338c5848d8ea7bbecd4ff272d42f347
MD5 5f9fcc4598ff7e14b076a021b821f4d5
BLAKE2b-256 d72862386a2f55068dbbfd8488add5be82df6cae38a7bbc2d689ab4b432be6f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gl_connectors_tools_binary-0.0.10b1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3c5d55e607887a60cabab572d8d71758a095dcd07465df8fb475e96f485e3e6b
MD5 f75b03db8fdf66a88e333e9868d13e4c
BLAKE2b-256 53b87c6def5b88c6c959b71c9e399a432e09ff34e77fdd881152765c1ad9b0a6

See more details on using hashes here.

Provenance

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