Skip to main content

llm_structured_output_Detect_repairs

A simple HTTP client library for interacting with a structured output API.

安装

pip install llm_structured_output_Detect_repairs

以下是一个完整的示例代码,展示了如何使用 llm_structured_output_Detect_repairs 发送请求并解析响应:



import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from llm_structured_output_Detect_repairs.llm_output_parser import LLMOutputParser
import json

# 创建 LLMOutputParser 实例
client = LLMOutputParser()
model = 'openai'
output_format = [
    {"name": "name", "description": "name of people", "type": "str"},
    {"name": "age", "description": "age of person", "type": "int"},
    {"name": "stories", "description": "all stories in the life, list of story details", "type": "list"}
]
content = "李白简介"
response_data = client.parse(model, content, output_format)

if response_data:
    print("服务端返回数据:")
    print(json.dumps(response_data, indent=4, ensure_ascii=False))
else:
    print("请求失败或解析错误")

Release files for llm-structured-output-Detect-repairs 0.1.4

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

Source distribution (sdist)

Source distribution for llm-structured-output-Detect-repairs 0.1.4
File Size Uploaded
llm_structured_output_detect_repairs-0.1.4.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-structured-output-Detect-repairs 0.1.4
File Interpreter ABI Platform
llm_structured_output_Detect_repairs-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / llm_structured_output_detect_repairs-0.1.4.tar.gz

Download URL llm_structured_output_detect_repairs-0.1.4.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
94d57d1f35d24f3a97fac3e4419a3b9d10cda48bdd2fd6fd0ab380e16b8b58db
BLAKE2b-256 checksum
How to use checksums
869b122e77370c2c88582eebbfe5b28402d80fb5345e0914dfc9dbee504e638a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.15

Release files / llm_structured_output_Detect_repairs-0.1.4-py3-none-any.whl

Download URL llm_structured_output_Detect_repairs-0.1.4-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe33379c6c700ab909fe933c35df3a9e786569cc928f65e7577e49c95ab7854d
BLAKE2b-256 checksum
How to use checksums
cf85b0b994dd63cdffa059bec34b846e81fba6ae163b466bd61be05cd3f9ef19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.15

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

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