mirror of
https://github.com/ChrisSewell/DECEIVE.git
synced 2025-07-01 18:47:28 -04:00
Minor code formatting changes
This commit is contained in:
@ -1,6 +1,4 @@
|
|||||||
# To run this program, the file ``ssh_host_key`` must exist with an SSH
|
#!/usr/bin/env python3
|
||||||
# private key in it to use as a server host key. An SSH host certificate
|
|
||||||
# can optionally be provided in the file ``ssh_host_key-cert.pub``.
|
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import asyncssh
|
import asyncssh
|
||||||
@ -17,10 +15,7 @@ from langchain_aws import ChatBedrock, ChatBedrockConverse
|
|||||||
from langchain_google_genai import ChatGoogleGenerativeAI
|
from langchain_google_genai import ChatGoogleGenerativeAI
|
||||||
|
|
||||||
from langchain_core.messages import HumanMessage
|
from langchain_core.messages import HumanMessage
|
||||||
from langchain_core.chat_history import (
|
from langchain_core.chat_history import BaseChatMessageHistory, InMemoryChatMessageHistory
|
||||||
BaseChatMessageHistory,
|
|
||||||
InMemoryChatMessageHistory,
|
|
||||||
)
|
|
||||||
from langchain_core.runnables.history import RunnableWithMessageHistory
|
from langchain_core.runnables.history import RunnableWithMessageHistory
|
||||||
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
|
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
|
||||||
from langchain_core.messages import SystemMessage, trim_messages
|
from langchain_core.messages import SystemMessage, trim_messages
|
||||||
@ -30,6 +25,8 @@ from operator import itemgetter
|
|||||||
|
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async def handle_client(process: asyncssh.SSHServerProcess) -> None:
|
async def handle_client(process: asyncssh.SSHServerProcess) -> None:
|
||||||
# This is the main loop for handling SSH client connections.
|
# This is the main loop for handling SSH client connections.
|
||||||
# Any user interaction should be done here.
|
# Any user interaction should be done here.
|
||||||
|
Reference in New Issue
Block a user