aiGetMetadata

Returns information about a configured AI endpoint, such as its settings and, optionally, its models and files. Lucee 6.2 names it luceeAIGetMetadata(), which Lucee 7 still accepts.

aiGetMetadata(name [, detailed]) → returns struct

This function requires Lucee 7 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

name any
Required

The endpoint name from the Lucee Administrator, a default:category reference, or an AI session.

detailed boolean
Default: false

When true, also returns the available models and, for engines that support files, the uploaded files.

Examples
Sample code invoking the aiGetMetadata function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub