Interface Profile


public interface Profile
Contract for Select AI profile lifecycle, prompt execution, and attribute management.

An AI profile is the database-side configuration that tells Select AI which provider and AI model to use, which credential authorizes provider calls, and which schema metadata or vector index should be used when answering natural language prompts. A Profile instance may represent a profile created by this Java SDK, PL/SQL, Python, SQL tools, or any other client, as long as that profile is visible in the current schema.

A Profile object can be configured for creation or database-backed. A configured profile has a profile name, attributes, description, and status in memory, but it is not persisted until create() succeeds. A database-backed profile is opened from the database, listed from metadata, or successfully created through this SDK.

Metadata getters can return configured values before creation. Operations that execute against an existing database profile, such as prompt generation, attribute updates, enable, disable, drop, feedback, summarize, translate, and synthetic-data generation, require a database-backed profile. The SDK rejects those operations with IllegalStateException when the object is not bound to a profile name or is configured for creation but has not been created yet.

See Also: