pub struct AiApi { /* private fields */ }Expand description
Raw C ABI for GeoKernel.AI. Loaded modules remain resident until process exit.
Implementations§
Source§impl AiApi
impl AiApi
pub const SYMBOLS: &'static [&'static str]
Sourcepub unsafe fn load(path: &Path) -> Result<Self, LoadError>
pub unsafe fn load(path: &Path) -> Result<Self, LoadError>
Load a trusted, ABI-compatible GeoKernel runtime module.
§Safety
Library initializers must be safe and every symbol must match this SDK ABI.
Sourcepub unsafe fn GeoKernelAI_FreeString(&self, a0: *mut WChar)
pub unsafe fn GeoKernelAI_FreeString(&self, a0: *mut WChar)
Native declaration: void GeoKernelAI_FreeString(wchar_t* value).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelAI_GetAvailableProvidersJson(&self) -> *mut WChar
pub unsafe fn GeoKernelAI_GetAvailableProvidersJson(&self) -> *mut WChar
Native declaration: wchar_t* GeoKernelAI_GetAvailableProvidersJson().
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelAI_GetLastError(&self) -> *mut WChar
pub unsafe fn GeoKernelAI_GetLastError(&self) -> *mut WChar
Native declaration: wchar_t* GeoKernelAI_GetLastError().
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelAI_GetRuntimeDiagnosticsJson(
&self,
a0: *const WChar,
) -> *mut WChar
pub unsafe fn GeoKernelAI_GetRuntimeDiagnosticsJson( &self, a0: *const WChar, ) -> *mut WChar
Native declaration: wchar_t* GeoKernelAI_GetRuntimeDiagnosticsJson(const wchar_t* requestJson).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelAI_InspectModelPackageJson(
&self,
a0: *const WChar,
) -> *mut WChar
pub unsafe fn GeoKernelAI_InspectModelPackageJson( &self, a0: *const WChar, ) -> *mut WChar
Native declaration: wchar_t* GeoKernelAI_InspectModelPackageJson(const wchar_t* packagePath).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelAI_RunRasterInference(
&self,
a0: *const WChar,
a1: GeoKernelAIProgressCallback,
a2: *mut c_void,
) -> *mut WChar
pub unsafe fn GeoKernelAI_RunRasterInference( &self, a0: *const WChar, a1: GeoKernelAIProgressCallback, a2: *mut c_void, ) -> *mut WChar
Native declaration: wchar_t* GeoKernelAI_RunRasterInference( const wchar_t* requestJson, GeoKernelAIProgressCallback progress, void* userData).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelAI_RunVlmCatalogQuery(
&self,
a0: *const WChar,
a1: *const WChar,
) -> *mut WChar
pub unsafe fn GeoKernelAI_RunVlmCatalogQuery( &self, a0: *const WChar, a1: *const WChar, ) -> *mut WChar
Native declaration: wchar_t* GeoKernelAI_RunVlmCatalogQuery( const wchar_t* catalogJson, const wchar_t* requestJson).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelAiModelRegistry_LastError(
&self,
a0: *mut WChar,
a1: i32,
) -> i32
pub unsafe fn GeoKernelAiModelRegistry_LastError( &self, a0: *mut WChar, a1: i32, ) -> i32
Native declaration: int GeoKernelAiModelRegistry_LastError(wchar_t* buffer,int bufferLength).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelAiModelRegistry_ResolveJson(
&self,
a0: *const WChar,
a1: *mut WChar,
a2: i32,
) -> i32
pub unsafe fn GeoKernelAiModelRegistry_ResolveJson( &self, a0: *const WChar, a1: *mut WChar, a2: i32, ) -> i32
Native declaration: int GeoKernelAiModelRegistry_ResolveJson(const wchar_t* request,wchar_t* buffer,int bufferLength).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.