- Python 3.x
requests
library
-
Ensure you have Python 3.x installed. If not, download it from Python's official website.
-
Install the required
requests
library using pip:
pip install requests
-
Initialize the
Claude
class with your organization UUID, conversation UUID, and authentication cookie. -
Utilize the
send_message
method to send a query to the AI model. It returnsTrue
if the message is sent successfully. -
Retrieve the conversation history using the
chat_conversation_history
method. -
Get the last AI response from the conversation history using the
get_last_answer
method. -
Integrate the client into your application to enable AI-powered chat responses.
To use the Claude AI Python Client, replace "YOUR_ORG_UUID"
, "YOUR_CON_UUID"
, and "YOUR_AUTH_COOKIE"
with your own organization UUID, conversation UUID, and authentication cookie obtained from Claude AI.
reffer this blog to get the info above https://blog.csdn.net/resphina/article/details/132034037?spm=1001.2014.3001.5501
This project is licensed under the MIT License - see the LICENSE file for details.
This project is not officially associated with Claude AI or its developers. Use it at your own risk.
Feel free to customize this README according to your specific requirements and add more details if needed. You can include information about how to obtain the organization UUID, conversation UUID, and authentication cookie. Additionally, you might want to include some examples of the conversation flow to give potential users a better understanding of how the client works.