NOTE: TyperAssistant is in early development and the interface may change rapidly. Please check back soon for more upates and details!
Please be aware that OpenAI's API incurs fees. See OpenAI's help article on the subject for more information. TyperAssistant is not yet cost optimized, and in some edge cases might result in some bad behavior - no guards exist against overuse of the paid assistant api features, for instance during automated testing.
Use the TyperAssistant class to create an assistant using OpenAI's assistant API. You can set various attributes like the command_name of the command to create (default 'ask'), the name of your app (by default, detected from typer and sys.argv), or the assistant instructions (a default instruction is provided that works well.)
Aside from the injected command (which in future versions you may disable), you can also access the assistant directly for a convenient auto-running assistant loop. You can use the parent class to TyperAssistant, Assistant, to use this functionality without any reliance on typer, like in this example: