Skip to main content

langgenius-client

A LangGenius App Service-API Client, using for build a webapp by request Service-API

Usage

api_key = "your_api_key"

# Initialize CompletionClient
completion_client = CompletionClient(api_key)

# Create Completion Message using CompletionClient
completion_response = completion_client.create_completion_message(inputs={}, query="Hello", response_mode="blocking", user="user_id")
print(completion_response)

# Initialize ChatClient
chat_client = ChatClient(api_key)

# Create Chat Message using ChatClient
chat_response = chat_client.create_chat_message(inputs={}, message="Hello", user="user_id", response_mode="streaming")
print(chat_response)

# Get Chat History using ChatClient
chat_history = chat_client.get_chat_history(user="user_id")
print(chat_history)

# Get Conversation List using ChatClient
conversations = chat_client.list_conversations(user="user_id")
print(conversations)

# Rename Conversation using ChatClient
rename_conversation_response = chat_client.rename_conversation(conversation_id="conversation_id", name="new_name", user="user_id")
print(rename_conversation_response)

Metadata

Release files for langgenius-client 0.1.3

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

Source distribution (sdist)

Source distribution for langgenius-client 0.1.3
File Size Uploaded Provenance Actions
langgenius-client-0.1.3.tar.gz 3.7 kB Without provenance Details for langgenius-client-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langgenius-client 0.1.3
File Interpreter ABI Platform Actions
langgenius_client-0.1.3-py3-none-any.whl Python 3 none any Details for langgenius_client-0.1.3-py3-none-any.whl

Total release size: 7.3 kB

Release files / langgenius-client-0.1.3.tar.gz

Download URL langgenius-client-0.1.3.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a69316572913320740f600db7dadd477e36db796cb940f1d76011fd5adf65ad5
BLAKE2b-256 checksum
How to use checksums
31f4487acf5080aaba95080e7d2100e85ff8c24bfdb0a928f39cc6d1320e2aa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release files / langgenius_client-0.1.3-py3-none-any.whl

Download URL langgenius_client-0.1.3-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8dbc5350a3554b3c9b5b565393b26cb7158dd02c4ec4e3af055c0aafc02249c
BLAKE2b-256 checksum
How to use checksums
54ae605dade2249ae80c7be7489b6864a66d7889256b4f5c7d31d636b56e5e2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Security for langgenius-client 0.1.3

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.

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