-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from dbpunk-labs/feat/llama_new_action
feat: move the prompt to role module
- Loading branch information
Showing
13 changed files
with
205 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# vim:fenc=utf-8 | ||
|
||
# SPDX-FileCopyrightText: 2023 imotai <[email protected]> | ||
# SPDX-FileContributor: imotai | ||
# | ||
# SPDX-License-Identifier: Elastic-2.0 | ||
|
||
""" """ | ||
|
||
import logging | ||
import io | ||
from og_agent.tokenizer import tokenize | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def test_parse_explanation(): | ||
arguments = """{"function_call":"execute", "arguments": {"explanation":"h""" | ||
for token_state, token in tokenize(io.StringIO(arguments)): | ||
logger.info(f"token_state: {token_state}, token: {token}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# the role module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (C) 2023 dbpunk.com Author imotai <[email protected]> | ||
# SPDX-FileCopyrightText: 2023 imotai <[email protected]> | ||
# SPDX-FileContributor: imotai | ||
# | ||
# SPDX-License-Identifier: Elastic-2.0 | ||
|
||
""" """ | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name="og_roles", | ||
version="0.3.6", | ||
description="Open source llm agent service", | ||
author="imotai", | ||
author_email="[email protected]", | ||
url="https://github.com/dbpunk-labs/octogen", | ||
long_description=open("README.md").read(), | ||
long_description_content_type="text/markdown", | ||
packages=[ | ||
"og_roles", | ||
], | ||
package_dir={ | ||
"og_roles": "src/og_roles", | ||
}, | ||
package_data={}, | ||
) |
Empty file.
Oops, something went wrong.