Skip to main content

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.

Metadata

Release files for claude-claw-agent 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-claw-agent 0.1.1
File Size Uploaded Provenance
claude_claw_agent-0.1.1.tar.gz 3.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for claude-claw-agent 0.1.1
File Interpreter ABI Platform
claude_claw_agent-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / claude_claw_agent-0.1.1.tar.gz

Download URL claude_claw_agent-0.1.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd99858354f41670827536d11b974e3d10884446c5e8790167ff686e1ce83529
BLAKE2b-256 checksum
How to use checksums
85dfde3caabe707ef105c815bec694edb126c71bdb730cbc7fa22d53abd046f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / claude_claw_agent-0.1.1-py3-none-any.whl

Download URL claude_claw_agent-0.1.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e65c71ba6e4754b6c581fac938b05220d8a068267059da4a15c44f149ab4e5a1
BLAKE2b-256 checksum
How to use checksums
89f8f115762fa689c9f1a78ea691bd5664f89e783970f9362882024125a0843a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for claude-claw-agent 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page