Skip to content

Commit

Permalink
fix: update the license
Browse files Browse the repository at this point in the history
  • Loading branch information
imotai committed Oct 16, 2023
1 parent 129fcc8 commit 09e042a
Show file tree
Hide file tree
Showing 60 changed files with 229 additions and 521 deletions.
5 changes: 5 additions & 0 deletions agent/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# SPDX-License-Identifier: Elastic-2.0

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
7 changes: 7 additions & 0 deletions agent/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<!--
SPDX-FileCopyrightText: 2023 imotai <[email protected]>
SPDX-FileContributor: imotai
SPDX-License-Identifier: Elastic-2.0
-->

the agent module of octopus
16 changes: 3 additions & 13 deletions agent/setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """
from setuptools import setup, find_packages
Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/agent_builder.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """
import json
Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/agent_llm.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """

Expand Down
6 changes: 4 additions & 2 deletions agent/src/og_agent/agent_server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# SPDX-License-Identifier: Elastic-2.0

import asyncio
import logging
Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/agent_setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """
import click
Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/base_agent.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """
import openai
Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/base_stream_client.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """
import json
Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/codellama_agent.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """

Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/codellama_client.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """

Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/mock_agent.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """
import json
Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/openai_agent.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """
import openai
Expand Down
17 changes: 3 additions & 14 deletions agent/src/og_agent/prompt.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# SPDX-License-Identifier: Elastic-2.0

OCTOGEN_FUNCTION_SYSTEM = """Firstly,You are the Programming Copilot called **Octogen**, a large language model designed to complete any goal by **executing code**
Expand Down
16 changes: 3 additions & 13 deletions agent/src/og_agent/tokenizer.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

"""
Taken from the NAYA project
Expand Down
7 changes: 7 additions & 0 deletions chat/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<!--
SPDX-FileCopyrightText: 2023 imotai <[email protected]>
SPDX-FileContributor: imotai
SPDX-License-Identifier: Elastic-2.0
-->

the terminal cli module of octopus
16 changes: 3 additions & 13 deletions chat/setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """
from setuptools import setup, find_packages
Expand Down
17 changes: 3 additions & 14 deletions chat/src/og_discord/discord_chat.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
# vim:fenc=utf-8
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """

Expand Down
17 changes: 3 additions & 14 deletions chat/src/og_terminal/markdown.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# SPDX-License-Identifier: Elastic-2.0

from rich.markdown import TextElement, Markdown
from rich.syntax import Syntax
Expand Down
16 changes: 3 additions & 13 deletions chat/src/og_terminal/ping.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# vim:fenc=utf-8
#
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]>
# SPDX-FileCopyrightText: 2023 imotai <[email protected]>
# SPDX-FileContributor: imotai
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Elastic-2.0

""" """
import sys
Expand Down
Loading

0 comments on commit 09e042a

Please sign in to comment.