diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..15d23a4 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# Copy to .env and keep it out of git. Get a free key at https://askasha.org/developers/ +ASHA_API_KEY=dnai_a2a_... diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..62252b7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,45 @@ +name: Bug report +description: An example, the CLI, the MCP server or the API does something unexpected. +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Do not paste API keys or any real patient information. Security issues go through **Security → Report a vulnerability** instead. + - type: dropdown + id: surface + attributes: + label: Where + options: + - OpenAI-compatible /v1 + - A2A v1.0 (message:send or message:stream) + - asha CLI + - MCP server + - An example in this repository + - Docs or specs + validations: + required: true + - type: input + id: task + attributes: + label: Request or task id + description: The `X-Request-ID` response header or the response `id` on /v1; the task id on A2A. It lets us find the exact request. + - type: textarea + id: steps + attributes: + label: What you ran + description: The smallest command or code that shows the problem. + render: shell + validations: + required: true + - type: textarea + id: expected + attributes: + label: What you expected and what happened + validations: + required: true + - type: input + id: env + attributes: + label: Environment + placeholder: "Python 3.12, openai 1.x, macOS" diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..e4c6c6d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,11 @@ +blank_issues_enabled: false +contact_links: + - name: API docs + url: https://askasha.org/developers/docs/overview + about: Endpoints, limits, safety rules and the BAA. + - name: Is the API up? + url: https://api.askasha.org/a2a/v1/health + about: Live health of the API and the agent fleet. + - name: Account, billing or keys + url: mailto:support@dnai.systems + about: Questions about your plan or your key go to support. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..9731dff --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,15 @@ +name: Feature or integration request +description: A framework example, an API capability or a docs page you need. +labels: ["enhancement"] +body: + - type: textarea + id: need + attributes: + label: What you are building and what is missing + validations: + required: true + - type: textarea + id: shape + attributes: + label: What a good answer looks like + description: The call you would like to make, or the example you would like to copy. diff --git a/README.md b/README.md index 42cbea9..6cf8418 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,17 @@ curl -X POST https://api.askasha.org/api/a2a/signup \ -d '{"email": "you@company.com", "name": "Your product", "product": "asha"}' ``` +Run every example from a clone: + +```bash +git clone https://github.com/DNAiOS/asha && cd asha +python -m venv .venv && . .venv/bin/activate +pip install -r examples/requirements.txt +export ASHA_API_KEY=dnai_a2a_... # or copy .env.example to .env +python examples/python/openai_quickstart.py +python scripts/verify.py # checks the register and the live API; no key needed +``` + --- ## Four ways in @@ -199,6 +210,17 @@ A Base query includes 2,000 input and 2,000 output tokens; above that, $4 per mi --- +## Help + +| Need | Where | +|---|---| +| A bug in an example, the CLI, the MCP server or the API | [Open an issue](https://github.com/DNAiOS/asha/issues/new/choose); include the request id, never a key or patient data | +| A security problem | Privately, through **Security → Report a vulnerability** ([policy](SECURITY.md)) | +| Your plan, billing or key | support@dnai.systems | +| Is the API up? | `curl https://api.askasha.org/a2a/v1/health` | + +--- + ## Cite ```bibtex diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..50d1df6 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,9 @@ +# Security + +Report a vulnerability in the Asha API, the `asha` CLI, the MCP server or this repository privately, through GitHub: **Security → Report a vulnerability** on this repository. If you cannot use GitHub, email hello@dnai.systems with "security" in the subject. + +Please include the endpoint or file, the steps to reproduce, and any A2A task id. Do not include patient data or real health information in a report. + +We acknowledge reports within 3 business days and tell you what we will fix and when. Please give us a reasonable window to fix the issue before you disclose it. + +Out of scope: denial-of-service testing, automated scanning that sends high volumes of requests, and social engineering of DNAi staff. Test only against your own key and stay inside its rate limits. diff --git a/examples/requirements.txt b/examples/requirements.txt new file mode 100644 index 0000000..6b52b9f --- /dev/null +++ b/examples/requirements.txt @@ -0,0 +1,4 @@ +openai>=1.40 +requests>=2.31 +langchain-openai>=0.2 +litellm>=1.40