Add core Python agent with configuration management, environment setup, and deployment documentation. Includes user/agent profiles, startup scripts, and dependency management for the psagentia system.
22 lines
364 B
Python
Executable File
22 lines
364 B
Python
Executable File
from .._exceptions import OpenAIError
|
|
|
|
INSTRUCTIONS = """
|
|
|
|
OpenAI error:
|
|
|
|
missing `{library}`
|
|
|
|
This feature requires additional dependencies:
|
|
|
|
$ pip install openai[{extra}]
|
|
|
|
"""
|
|
|
|
|
|
def format_instructions(*, library: str, extra: str) -> str:
|
|
return INSTRUCTIONS.format(library=library, extra=extra)
|
|
|
|
|
|
class MissingDependencyError(OpenAIError):
|
|
pass
|