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.0.tar.gz (3.0 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.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claude_claw_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 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.0.tar.gz
Algorithm Hash digest
SHA256 2dae27100cb4d43c6902ceb0933e613ae167ba8d5e987f5f5be4d3c144b267d0
MD5 40e885dd9a1f2637ad1225ccb60d25a1
BLAKE2b-256 66b526a0fe8904b0edc14d97362fc60844703f63382987be1062ccf21d327251

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_claw_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4e1bdbf7fa998c71120afa0d1c5d9a58d6bb8069388d95c1c2c58fdc6d65546
MD5 94d87d4c032245e74209479bb1131891
BLAKE2b-256 f390bc68a45c0924e084d2f6a939f46bb00c25c1a7acd1d6d2cc8c9eee231fa0

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