Skip to main content

An integration package connecting Jenkins and LangChain

Project description

langchain-jenkins

This package contains the LangChain integration with Jenkins

Installation

pip install -U langchain-jenkins

And you should configure credentials by setting the following environment variables:

  • TODO: fill this out

Tools

ChatJenkins class exposes chat models from Jenkins.

from langchain_community.tools.jenkins.tool import JenkinsJobRun
from langchain_community.utilities.jenkins import JenkinsAPIWrapper

tools = [
    JenkinsJobRun(
        api_wrapper=JenkinsAPIWrapper(
            jenkins_server="https://example.com",
            username="admin",
            password=os.environ["PASSWORD"],
        )
    )
]


jenkins_job_content = ""
src_file = "job1.xml"
with open(src_file) as fread:
    jenkins_job_content = fread.read()
tools[0].invoke({"job": "job01", "config_xml": jenkins_job_content, "action": "create"})

Project details


Download files

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

Source Distribution

langchain_jenkins-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

langchain_jenkins-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file langchain_jenkins-0.1.0.tar.gz.

File metadata

  • Download URL: langchain_jenkins-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for langchain_jenkins-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3a40625e84f952743318f85b2f4143ee9c1321a1669e2f8acd37e84a49f56dc
MD5 5cc296a7654fecb8d9850c46e1dbfd11
BLAKE2b-256 90391bba9954158cd3a76050fded3a63d911b5ff9a1c05656428f44b5607e5fa

See more details on using hashes here.

File details

Details for the file langchain_jenkins-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: langchain_jenkins-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for langchain_jenkins-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c48f3f1bab3de451de3815d07d9b53c116555965cfcc3e726ea0b8297f21327
MD5 346d2188e0a60b1f5064bd8238d82d65
BLAKE2b-256 b487ed279107a578f3a2bb824e23a9a8f1319d3b84eb6972095dc2e8e3a39ea4

See more details on using hashes here.

Supported by

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