Skip to main content

A brief description of your package

Project description

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}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

officelytest-0.1.12.tar.gz (26.2 kB view hashes)

Uploaded Source

Built Distribution

officelyTest-0.1.12-py3-none-any.whl (35.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page