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

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.
""" """

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.
""" """

View File

@ -0,0 +1,3 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT

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"]

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

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

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

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

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

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.
""" """

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

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

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

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

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

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

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__ = [

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

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

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

View File

@ -0,0 +1,3 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT

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

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__ = [

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

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

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"]

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

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

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 (

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

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

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

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

View File

@ -1,3 +1,6 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
""" """
工具函数包 工具函数包
""" """

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

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

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

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.tools.python_repl import python_repl_tool from src.tools.python_repl import python_repl_tool

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