chore: add license headers

This commit is contained in:
He Tao
2025-04-17 11:34:42 +08:00
parent 76fd04df22
commit 6937abcd91
39 changed files with 117 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
""" """
Entry point script for the Deer project. Entry point script for the Deer project.
""" """
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
""" """
Server script for running the Deer API. Server script for running the Deer API.
""" """
+3
View File
@@ -0,0 +1,3 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from .agents import research_agent, coder_agent from .agents import research_agent, coder_agent
__all__ = ["research_agent", "coder_agent"] __all__ = ["research_agent", "coder_agent"]
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from langgraph.prebuilt import create_react_agent from langgraph.prebuilt import create_react_agent
from src.prompts import apply_prompt_template from src.prompts import apply_prompt_template
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from .tools import SEARCH_MAX_RESULTS, SELECTED_SEARCH_ENGINE, SearchEngine from .tools import SEARCH_MAX_RESULTS, SELECTED_SEARCH_ENGINE, SearchEngine
from .loader import load_yaml_config from .loader import load_yaml_config
from .questions import BUILT_IN_QUESTIONS, BUILT_IN_QUESTIONS_ZH_CN from .questions import BUILT_IN_QUESTIONS, BUILT_IN_QUESTIONS_ZH_CN
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from typing import Literal from typing import Literal
# Define available LLM types # Define available LLM types
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import os import os
from dataclasses import dataclass, fields from dataclasses import dataclass, fields
from typing import Any, Optional from typing import Any, Optional
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import os import os
import yaml import yaml
from typing import Dict, Any from typing import Dict, Any
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
""" """
Built-in questions for Deer. Built-in questions for Deer.
""" """
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import os import os
import enum import enum
from dotenv import load_dotenv from dotenv import load_dotenv
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from .article import Article from .article import Article
from .crawler import Crawler from .crawler import Crawler
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import re import re
from urllib.parse import urljoin from urllib.parse import urljoin
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import sys import sys
from .article import Article from .article import Article
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import logging import logging
import os import os
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from readabilipy import simple_json_from_html_string from readabilipy import simple_json_from_html_string
from .article import Article from .article import Article
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from .builder import build_graph from .builder import build_graph
__all__ = [ __all__ = [
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from langgraph.graph import StateGraph, START, END from langgraph.graph import StateGraph, START, END
from langgraph.checkpoint.memory import MemorySaver from langgraph.checkpoint.memory import MemorySaver
from .types import State from .types import State
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import logging import logging
import json import json
from typing import Literal, Annotated from typing import Literal, Annotated
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import operator import operator
from langgraph.graph import MessagesState from langgraph.graph import MessagesState
+3
View File
@@ -0,0 +1,3 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from langchain_openai import ChatOpenAI from langchain_openai import ChatOpenAI
from src.config import load_yaml_config from src.config import load_yaml_config
from pathlib import Path from pathlib import Path
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from .template import apply_prompt_template, get_prompt_template from .template import apply_prompt_template, get_prompt_template
__all__ = [ __all__ = [
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
from typing import List, Optional from typing import List, Optional
from enum import Enum from enum import Enum
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import os import os
import dataclasses import dataclasses
from datetime import datetime from datetime import datetime
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from .app import app from .app import app
__all__ = ["app"] __all__ = ["app"]
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import json import json
import logging import logging
from typing import List, cast from typing import List, cast
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from typing import List, Optional, Union from typing import List, Optional, Union
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from .crawl import crawl_tool from .crawl import crawl_tool
from .python_repl import python_repl_tool from .python_repl import python_repl_tool
from .search import ( from .search import (
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import logging import logging
from typing import Annotated from typing import Annotated
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import logging import logging
import functools import functools
from typing import Any, Callable, Type, TypeVar from typing import Any, Callable, Type, TypeVar
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import logging import logging
from typing import Annotated from typing import Annotated
from langchain_core.tools import tool from langchain_core.tools import tool
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import logging import logging
import os import os
from langchain_community.tools.tavily_search import TavilySearchResults from langchain_community.tools.tavily_search import TavilySearchResults
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
""" """
工具函数包 工具函数包
""" """
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import logging import logging
import json import json
import json_repair import json_repair
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import logging import logging
from src.graph import build_graph from src.graph import build_graph
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import pytest import pytest
from src.crawler import Crawler from src.crawler import Crawler
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import pytest import pytest
from src.tools.python_repl import python_repl_tool from src.tools.python_repl import python_repl_tool
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import pytest import pytest
from src.prompts.template import get_prompt_template, apply_prompt_template from src.prompts.template import get_prompt_template, apply_prompt_template