├── .gitignore ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── SECURITY.md ├── SUPPORT.md ├── examples ├── chat_example.py ├── code_example.py ├── dynamic_prompt_example.py ├── general_example.py ├── openai_example.py ├── overloaded_example.py └── yaml_examples │ ├── chat.yaml │ ├── code.yaml │ ├── general.yaml │ ├── yaml_chat_example.py │ ├── yaml_code_example.py │ └── yaml_general_example.py ├── pyproject.toml ├── setup.py ├── src └── prompt_engine │ ├── __init__.py │ ├── chat_engine.py │ ├── code_engine.py │ ├── dynamic_prompt_engine.py │ ├── interaction.py │ ├── model_config.py │ ├── prompt_engine.py │ └── utils │ ├── __init__.py │ ├── encoder.json │ ├── encoder.py │ └── vocab.bpe └── tests ├── __init__.py ├── test_chat_engine.py ├── test_code_engine.py └── test_prompt_engine.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/SECURITY.md -------------------------------------------------------------------------------- /SUPPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/SUPPORT.md -------------------------------------------------------------------------------- /examples/chat_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/chat_example.py -------------------------------------------------------------------------------- /examples/code_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/code_example.py -------------------------------------------------------------------------------- /examples/dynamic_prompt_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/dynamic_prompt_example.py -------------------------------------------------------------------------------- /examples/general_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/general_example.py -------------------------------------------------------------------------------- /examples/openai_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/openai_example.py -------------------------------------------------------------------------------- /examples/overloaded_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/overloaded_example.py -------------------------------------------------------------------------------- /examples/yaml_examples/chat.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/yaml_examples/chat.yaml -------------------------------------------------------------------------------- /examples/yaml_examples/code.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/yaml_examples/code.yaml -------------------------------------------------------------------------------- /examples/yaml_examples/general.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/yaml_examples/general.yaml -------------------------------------------------------------------------------- /examples/yaml_examples/yaml_chat_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/yaml_examples/yaml_chat_example.py -------------------------------------------------------------------------------- /examples/yaml_examples/yaml_code_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/yaml_examples/yaml_code_example.py -------------------------------------------------------------------------------- /examples/yaml_examples/yaml_general_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/examples/yaml_examples/yaml_general_example.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/pyproject.toml -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/setup.py -------------------------------------------------------------------------------- /src/prompt_engine/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/prompt_engine/chat_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/src/prompt_engine/chat_engine.py -------------------------------------------------------------------------------- /src/prompt_engine/code_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/src/prompt_engine/code_engine.py -------------------------------------------------------------------------------- /src/prompt_engine/dynamic_prompt_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/src/prompt_engine/dynamic_prompt_engine.py -------------------------------------------------------------------------------- /src/prompt_engine/interaction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/src/prompt_engine/interaction.py -------------------------------------------------------------------------------- /src/prompt_engine/model_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/src/prompt_engine/model_config.py -------------------------------------------------------------------------------- /src/prompt_engine/prompt_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/src/prompt_engine/prompt_engine.py -------------------------------------------------------------------------------- /src/prompt_engine/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/prompt_engine/utils/encoder.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/src/prompt_engine/utils/encoder.json -------------------------------------------------------------------------------- /src/prompt_engine/utils/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/src/prompt_engine/utils/encoder.py -------------------------------------------------------------------------------- /src/prompt_engine/utils/vocab.bpe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/src/prompt_engine/utils/vocab.bpe -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/tests/__init__.py -------------------------------------------------------------------------------- /tests/test_chat_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/tests/test_chat_engine.py -------------------------------------------------------------------------------- /tests/test_code_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/tests/test_code_engine.py -------------------------------------------------------------------------------- /tests/test_prompt_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/prompt-engine-py/HEAD/tests/test_prompt_engine.py --------------------------------------------------------------------------------