Skip to content

Add the Decisions endpoint - #4

Merged
vrv-panw merged 1 commit into
mainfrom
add-decisions
Sep 29, 2026
Merged

vrv-panw merged 1 commit into
mainfrom
add-decisions

Conversation

@vrv-panw

Copy link
Copy Markdown
Collaborator

Summary

  • Adds POST /decisions (createDecisions) on the gateway plane. It is ported structure-only from Add /v1/decisions endpoint spec Portkey-AI/openapi#160: the path and the CreateDecisionsRequest, CreateDecisionsResponse, DecisionsQuestion and DecisionsAnswer schemas.
  • Adds a Decisions tag to the Inference group in tags-map.yaml. It has no from, because the tag is new here.
  • Adds /decisions to the gateway plane in _project/planes.yaml, with a new how value, portkey-openapi#160, documented in the file header.
  • scripts/build.py generated the rest: the href /aigw/api-reference/decisions/create-decisions, overlay stubs for the tag and operation, the docs-navigation.json group, and build-report.txt.
  • Code samples, the per-operation security block and all prose were dropped, as for every other operation.

Not verified

  • Nothing here was checked against the running API.
  • The request schema requires model. The docs say TypeSafe defaults it to jev-latest when omitted. This keeps the Portkey spec's required list; engineering should confirm which is right.

Test plan

  • scripts/check.py: all checks passed (43 tags, 188 operations)
  • scripts/build.py --check: up to date
  • scripts/lint.py fails on path-params (/api-keys/{sub-type} vs /api-keys/{id}). That failure is already on main from Drop the scope segment from the API key create path #3 and is not from this change.
  • docs-core preview renders the Decisions page under Inference after sync_api_nav.py --apply

🤖 Generated with Claude Code

POST /decisions on the gateway plane, ported structure-only from
Portkey-AI/openapi#160: the path, its request and response schemas, a
Decisions tag in the Inference group, and a planes.yaml entry citing
where it came from. The build stamped the docs URL, stubbed the overlay
and regenerated the navigation fragment. Samples and prose were dropped,
as for every other operation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vrv-panw
vrv-panw merged commit 6593397 into main Sep 29, 2026
4 of 5 checks passed
vrv-panw added a commit to Portkey-AI/docs-core that referenced this pull request Sep 29, 2026
PaloAltoNetworks/openapi#4 added POST /decisions to the Prisma AIRS spec.
Sync the Inference nav from it, and link the aigw Decisions page to the
generated reference page. Also drop the plan-tier box, which does not
apply to Prisma AIRS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant