Name | officelyTest JSON |
Version |
0.1.12
JSON |
| download |
home_page | None |
Summary | A brief description of your package |
upload_time | 2024-08-15 13:20:59 |
maintainer | None |
docs_url | None |
author | Your Name |
requires_python | >=3.8 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
import json
from typing import List
from officelyTest import invokeTeam, IHistory, MessageType
def get_team(path:str)->dict:
with open(path, "r") as f:
return json.load(f)
if __name__ == "__main__":
team = get_team("team.json")
verbose = True
chat_history:List[IHistory] = []
while True:
query = input("User: ")
res = invokeTeam(team, verbose, chat_history, query)
chat_history.append(IHistory(text=query, type=MessageType.INBOUND))
chat_history.append(IHistory(text=res, type=MessageType.OUTBOUND))
print(f"AI:{res}")
Raw data
{
"_id": null,
"home_page": null,
"name": "officelyTest",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "your.email@example.com",
"download_url": "https://files.pythonhosted.org/packages/6b/bd/c9f23ff392f3b453e3f37f279e8c6cae1935b8b2a62b6f6a5b262672a571/officelytest-0.1.12.tar.gz",
"platform": null,
"description": "\nimport json\nfrom typing import List\nfrom officelyTest import invokeTeam, IHistory, MessageType\n\n\n\n\ndef get_team(path:str)->dict:\n with open(path, \"r\") as f:\n return json.load(f)\n\n\nif __name__ == \"__main__\":\n team = get_team(\"team.json\")\n verbose = True\n chat_history:List[IHistory] = []\n\n while True:\n query = input(\"User: \")\n res = invokeTeam(team, verbose, chat_history, query)\n chat_history.append(IHistory(text=query, type=MessageType.INBOUND))\n chat_history.append(IHistory(text=res, type=MessageType.OUTBOUND))\n print(f\"AI:{res}\")\n",
"bugtrack_url": null,
"license": null,
"summary": "A brief description of your package",
"version": "0.1.12",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "50f5d5ab540f264b5ca66105af6c99dd18dbdfd6fdc6be0e6042d45a6bf6fe08",
"md5": "5c531a2a4213dbce63c930b77b8f9c39",
"sha256": "76862ff3540672777a2c91c3ef0fb2c60506cb5cd99ed53ea3a9e6a399a4b280"
},
"downloads": -1,
"filename": "officelyTest-0.1.12-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5c531a2a4213dbce63c930b77b8f9c39",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 35769,
"upload_time": "2024-08-15T13:20:58",
"upload_time_iso_8601": "2024-08-15T13:20:58.186556Z",
"url": "https://files.pythonhosted.org/packages/50/f5/d5ab540f264b5ca66105af6c99dd18dbdfd6fdc6be0e6042d45a6bf6fe08/officelyTest-0.1.12-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6bbdc9f23ff392f3b453e3f37f279e8c6cae1935b8b2a62b6f6a5b262672a571",
"md5": "c7e382ac90f7831a2d5bf2be2dda5e12",
"sha256": "256887963317139e252950c0c66ccdf57c6889bdf97b9b4177e41aeafb0e7c12"
},
"downloads": -1,
"filename": "officelytest-0.1.12.tar.gz",
"has_sig": false,
"md5_digest": "c7e382ac90f7831a2d5bf2be2dda5e12",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 26192,
"upload_time": "2024-08-15T13:20:59",
"upload_time_iso_8601": "2024-08-15T13:20:59.662662Z",
"url": "https://files.pythonhosted.org/packages/6b/bd/c9f23ff392f3b453e3f37f279e8c6cae1935b8b2a62b6f6a5b262672a571/officelytest-0.1.12.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-15 13:20:59",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "officelytest"
}