grigolsplaystore/myownchat-python-sdk ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python SDK for MyOwnChat that makes it super easy to connect an AI agent or bot to a chat channel with almost no setup.
I want to be able to install it, give it one API key, and then handle incoming messages with a simple callback, send replies, edit messages for progress updates, and post threaded responses. It should also include a small command line way to send a one off message without running a full app.
Please make it work with streaming message updates, reconnect automatically if the connection drops, and ignore bot echoes or system noise so it does not loop forever. It should also support reading recent channel history on startup so conversations keep their context after a restart.
If it helps, look up the current docs online and make the code follow the real MyOwnChat and OpenAI compatible API behavior. Include a few clear examples and basic tests so I can see how to use it right away.
Are you gonna build this?
make sure you review the code using coderabbit