Add pre commit (#26)

This commit is contained in:
Lamont Huffman
2025-11-05 11:44:19 +08:00
committed by GitHub
parent 2164371e64
commit 30d86efbb3
33 changed files with 565 additions and 496 deletions

View File

@@ -1,12 +1,11 @@
# -*- coding: utf-8 -*-
import time
from datetime import datetime
from typing import Any, Dict, List
from langchain_core.messages import AIMessage, AnyMessage, HumanMessage
from datetime import datetime
from langchain_core.messages import AnyMessage, AIMessage, HumanMessage
def get_current_date() -> str:
def get_current_date():
return datetime.now().strftime("%B %d, %Y")
@@ -39,7 +38,7 @@ def get_research_topic(messages: List[AnyMessage]) -> str:
return research_topic
def insert_citation_markers(text: str, citations_list: List[Dict]) -> str:
def insert_citation_markers(text, citations_list):
"""
Inserts citation markers into a text string based on start and end indices.