Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Aily Code SDK

调用LLM

from aily.server_sdk import llm

message = llm.generate(messages=[
{"role": "user", "content": "Hello world"}
], model="BYOM-pro")
print(message.content)

message = llm.generate(messages=[
{"role": "user", "content": "Hello world"}
], model=llm.LLMModel.BYOM_PRO)
print(message.content)

发送消息

from aily.server_sdk.conversation import send_message, update_message

message_id = send_message('xxx')
print(message_id)

数据查询

执行OQL

from aily.server_sdk.data import execute_oql

oql_query = "SELECT * FROM data_table"
oql_results = execute_oql(oql_query)
print(f"OQL查询结果: {oql_results}")

from aily.server_sdk.data import execute_sql

# 执行SQL查询
sql_query = "SELECT * FROM analytics_table"
sql_results = execute_sql(sql_query)
print(f"SQL查询结果: {sql_results}")

知识库查询

from aily.server_sdk import knowledge

knowledge_id = "my_knowledge_base"
query_text = "如何获取飞书多维表格的高阶权限协作者?"

results = knowledge.retrieve(knowledge_id, query_text, top_k=3, threshold=0.7)

Release files for aily-code-sdk 0.1.0b8

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

Source distribution (sdist)

Source distribution for aily-code-sdk 0.1.0b8
File Size Uploaded
aily_code_sdk-0.1.0b8.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aily-code-sdk 0.1.0b8
File Interpreter ABI Platform
aily_code_sdk-0.1.0b8-py3-none-any.whl Python 3 none any Details

Total release size: 20.5 kB

Release files / aily_code_sdk-0.1.0b8.tar.gz

Download URL aily_code_sdk-0.1.0b8.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
762514068613a526440b6721b4b97a65c1b6ac9a3025fb0cd3604053b3122645
BLAKE2b-256 checksum
How to use checksums
39c65712b6595bee3290fb7e98af8e796668a4ad168ef8d3fd53b1c9a67d52cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.1 Darwin/23.2.0

Release files / aily_code_sdk-0.1.0b8-py3-none-any.whl

Download URL aily_code_sdk-0.1.0b8-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4907aebd2c3b0ea187a3f9f0dd2f0d78ea9bff4c252134eda381c2848cc5ce22
BLAKE2b-256 checksum
How to use checksums
4f775ca89e51a3443aa1043b4ab88604143127235b13693cc544fac9f613b426
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.1 Darwin/23.2.0
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