Skip to main content

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_KEY trong file .env.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_claw_agent-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_claw_agent-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file claude_claw_agent-0.1.1.tar.gz.

File metadata

  • Download URL: claude_claw_agent-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for claude_claw_agent-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fd99858354f41670827536d11b974e3d10884446c5e8790167ff686e1ce83529
MD5 6c9de348dad89dd24963b66eed09e0d1
BLAKE2b-256 85dfde3caabe707ef105c815bec694edb126c71bdb730cbc7fa22d53abd046f8

See more details on using hashes here.

File details

Details for the file claude_claw_agent-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_claw_agent-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e65c71ba6e4754b6c581fac938b05220d8a068267059da4a15c44f149ab4e5a1
MD5 2451a9637ad87f31724b789892dffb90
BLAKE2b-256 89f8f115762fa689c9f1a78ea691bd5664f89e783970f9362882024125a0843a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page