Python SDK for Claude-Claw Multi-Agent Workflow
Project description
Claude-Claw SDK
Thư viện Python để tích hợp hệ thống Agent Multi-Workflow "Claude-Claw" vào ứng dụng của bạn.
Cài đặt
pip install .
Cách sử dụng
1. Khởi tạo Client
import claude_claw
# Sử dụng mã SDK được cấp (Định dạng: LcAIxnfu2h873h...)
client = claude_claw.Client(api_key="LcAIxnfu2h873h_PRO_SDK_9999", base_url="https://api.locaith.com")
2. Soạn thảo văn bản (Drafting)
response = client.generate_content("Hãy soạn thảo một hợp đồng thuê nhà ngắn gọn.")
print("Nội dung:", response.text)
if response.files:
print("Các tệp đã tạo:", response.files)
3. Lập trình Website (Web Coding)
Hệ thống Agent sẽ tự động nhận diện yêu cầu kỹ thuật và thực thi workflow code.
chat = client.start_chat()
response = chat.send_message("Tạo một website landing page cho dịch vụ spa, dùng Next.js và Tailwind.")
print(response.text)
# Theo dõi tiến độ nếu là job chạy ngầm
if response.job_id:
print(f"Workflow đang thực thi ngầm. Job ID: {response.job_id}")
4. Chat có ngữ cảnh (Session)
chat = client.start_chat()
chat.send_message("Tôi muốn viết một cuốn sách về AI.")
response = chat.send_message("Hãy gợi ý cho tôi mục lục.") # Giữ nguyên ngữ cảnh session
print(response.text)
Lưu ý bảo mật
- Đừng bao giờ chia sẻ API Key của bạn (bắt đầu bằng
LcAIxnfu2h87). - Đảm bảo backend server của bạn đã cấu hình đúng
BACKEND_API_KEYtrong file.env.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_claw-0.1.0-py3-none-any.whl.
File metadata
- Download URL: claude_claw-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30a194a8c7d87c2ab217330a3b21bab60f98feb156b8473aa10940206971c20c
|
|
| MD5 |
1414178b243ee5bf47b717ae0092d0c6
|
|
| BLAKE2b-256 |
cdabe0b263b821b58eae264f267cfe1fd26387fbc6177f3e9c9f6d545241db65
|