core

Validate that imports/packages in LLM-generated code are real and not hallucinated.

Cost: 1 credit(s). Free tier: 10 calls per IP (no auth).

post/v1/validate/imports

Request

  • Base URL: https://api.agent-toolbox.ai
  • URL: https://api.agent-toolbox.ai/v1/validate/imports
  • Auth: one of:
    • HTTP bearer
    • none

Request body

language'python' | 'javascript' | 'typescript' | 'rust' | 'go' required
codestring required
timeoutMsinteger

Response

Success.

language'python' | 'javascript' | 'typescript' | 'rust' | 'go' required
totalImportsinteger required
hallucinationRatenumber required
latencyMsnumber required

Server compute time in ms.

Changes

No recorded changes to this operation across all 1 revision of this API.