langchain-githubcopilot-chat 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 LangChain, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.1
2
+ Name: langchain-githubcopilot-chat
3
+ Version: 0.1.0
4
+ Summary: An integration package connecting GithubcopilotChat and LangChain
5
+ Home-page: https://github.com/langchain-ai/langchain
6
+ License: MIT
7
+ Author: YIhan Wu
8
+ Author-email: iumm@ibat.ac.cn
9
+ Requires-Python: >=3.9,<4.0
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Requires-Dist: httpx (>=0.24.0)
18
+ Requires-Dist: langchain-core (>=0.3.15,<0.4.0)
19
+ Project-URL: Repository, https://github.com/langchain-ai/langchain
20
+ Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22githubcopilot-chat%3D%3D0%22&expanded=true
21
+ Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/partners/githubcopilot-chat
22
+ Description-Content-Type: text/markdown
23
+
24
+ # langchain-githubcopilot-chat
25
+
26
+ This package contains the LangChain integration with GithubcopilotChat
27
+
28
+ ## Installation
29
+
30
+ ```bash
31
+ pip install -U langchain-githubcopilot-chat
32
+ ```
33
+
34
+ And you should configure credentials by setting the following environment variables:
35
+
36
+ * TODO: fill this out
37
+
38
+ ## Chat Models
39
+
40
+ `ChatGithubcopilotChat` class exposes chat models from GithubcopilotChat.
41
+
42
+ ```python
43
+ from langchain_githubcopilot_chat import ChatGithubcopilotChat
44
+
45
+ llm = ChatGithubcopilotChat()
46
+ llm.invoke("Sing a ballad of LangChain.")
47
+ ```
48
+
49
+ ## Embeddings
50
+
51
+ `GithubcopilotChatEmbeddings` class exposes embeddings from GithubcopilotChat.
52
+
53
+ ```python
54
+ from langchain_githubcopilot_chat import GithubcopilotChatEmbeddings
55
+
56
+ embeddings = GithubcopilotChatEmbeddings()
57
+ embeddings.embed_query("What is the meaning of life?")
58
+ ```
59
+
60
+ ## LLMs
61
+
62
+ `GithubcopilotChatLLM` class exposes LLMs from GithubcopilotChat.
63
+
64
+ ```python
65
+ from langchain_githubcopilot_chat import GithubcopilotChatLLM
66
+
67
+ llm = GithubcopilotChatLLM()
68
+ llm.invoke("The meaning of life is")
69
+ ```
70
+
@@ -0,0 +1,46 @@
1
+ # langchain-githubcopilot-chat
2
+
3
+ This package contains the LangChain integration with GithubcopilotChat
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install -U langchain-githubcopilot-chat
9
+ ```
10
+
11
+ And you should configure credentials by setting the following environment variables:
12
+
13
+ * TODO: fill this out
14
+
15
+ ## Chat Models
16
+
17
+ `ChatGithubcopilotChat` class exposes chat models from GithubcopilotChat.
18
+
19
+ ```python
20
+ from langchain_githubcopilot_chat import ChatGithubcopilotChat
21
+
22
+ llm = ChatGithubcopilotChat()
23
+ llm.invoke("Sing a ballad of LangChain.")
24
+ ```
25
+
26
+ ## Embeddings
27
+
28
+ `GithubcopilotChatEmbeddings` class exposes embeddings from GithubcopilotChat.
29
+
30
+ ```python
31
+ from langchain_githubcopilot_chat import GithubcopilotChatEmbeddings
32
+
33
+ embeddings = GithubcopilotChatEmbeddings()
34
+ embeddings.embed_query("What is the meaning of life?")
35
+ ```
36
+
37
+ ## LLMs
38
+
39
+ `GithubcopilotChatLLM` class exposes LLMs from GithubcopilotChat.
40
+
41
+ ```python
42
+ from langchain_githubcopilot_chat import GithubcopilotChatLLM
43
+
44
+ llm = GithubcopilotChatLLM()
45
+ llm.invoke("The meaning of life is")
46
+ ```
@@ -0,0 +1,31 @@
1
+ from importlib import metadata
2
+
3
+ from langchain_githubcopilot_chat.chat_models import (
4
+ ChatGithubCopilot,
5
+ ChatGithubcopilotChat,
6
+ )
7
+ from langchain_githubcopilot_chat.document_loaders import GithubcopilotChatLoader
8
+ from langchain_githubcopilot_chat.embeddings import GithubcopilotChatEmbeddings
9
+ from langchain_githubcopilot_chat.retrievers import GithubcopilotChatRetriever
10
+ from langchain_githubcopilot_chat.toolkits import GithubcopilotChatToolkit
11
+ from langchain_githubcopilot_chat.tools import GithubcopilotChatTool
12
+ from langchain_githubcopilot_chat.vectorstores import GithubcopilotChatVectorStore
13
+
14
+ try:
15
+ __version__ = metadata.version(__package__)
16
+ except metadata.PackageNotFoundError:
17
+ # Case where package metadata is not available.
18
+ __version__ = ""
19
+ del metadata # optional, avoids polluting the results of dir(__package__)
20
+
21
+ __all__ = [
22
+ "ChatGithubCopilot",
23
+ "ChatGithubcopilotChat", # backwards-compatible alias
24
+ "GithubcopilotChatVectorStore",
25
+ "GithubcopilotChatEmbeddings",
26
+ "GithubcopilotChatLoader",
27
+ "GithubcopilotChatRetriever",
28
+ "GithubcopilotChatToolkit",
29
+ "GithubcopilotChatTool",
30
+ "__version__",
31
+ ]