Update documentation.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""APIClient - Agent — Claude AI integration."""
|
||||
"""APIClient - Agent - Claude AI integration."""
|
||||
import json
|
||||
import re
|
||||
import httpx
|
||||
@@ -28,7 +28,7 @@ You are an expert API documentation analyzer for APIClient - Agent.
|
||||
Given API documentation (which may be a spec, a web page, framework docs, or raw text),
|
||||
extract or infer all useful API endpoints and return structured JSON.
|
||||
|
||||
Return ONLY valid JSON — no markdown, no commentary, just the JSON object.
|
||||
Return ONLY valid JSON - no markdown, no commentary, just the JSON object.
|
||||
|
||||
Schema:
|
||||
{
|
||||
@@ -74,7 +74,7 @@ Rules:
|
||||
- If it is a GRAPHQL API, generate a POST /graphql endpoint with example query body
|
||||
- If auth options are shown (API key, OAuth, Basic), include ALL variants as separate
|
||||
environment variables so the user can choose
|
||||
- Keep paths clean — strip trailing slashes, normalise to lowercase
|
||||
- Keep paths clean - strip trailing slashes, normalise to lowercase
|
||||
"""
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ def fetch_url_content(url: str) -> str:
|
||||
ct = resp.headers.get("content-type", "")
|
||||
text = resp.text
|
||||
|
||||
# If HTML page — strip tags for cleaner AI input
|
||||
# If HTML page - strip tags for cleaner AI input
|
||||
if "html" in ct and not _looks_like_spec(text):
|
||||
text = _strip_html(text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user