RacBindings class

Typed bindings for the commons C ABI surfaces this file owns.

Constructors

RacBindings(DynamicLibrary lib, [DynamicLibrary? helperLib])

Properties

hashCode int
The hash code for this object.
no setterinherited
ra_flutter_llm_generate_stream_proto_native_port RaFlutterLlmGenerateStreamNativePortDart?
final
ra_flutter_stt_set_stream_proto_native_port RaFlutterSttSetStreamNativePortDart?
Flutter platform helper: register stream callback via Dart native port.
final
ra_flutter_stt_unset_stream_proto_native_port RaFlutterSttUnsetStreamNativePortDart?
Flutter platform helper: unset stream callback and free native-port context.
final
ra_flutter_tts_synthesize_stream_lifecycle_proto_native_port RaFlutterLlmGenerateStreamNativePortDart?
final
ra_flutter_vlm_stream_proto_native_port RaFlutterLlmGenerateStreamNativePortDart?
final
ra_flutter_voice_agent_process_turn_proto_native_port RaFlutterVoiceAgentProcessTurnNativePortDart?
final
ra_flutter_voice_agent_set_proto_callback_native_port RaFlutterSttSetStreamNativePortDart?
final
ra_flutter_voice_agent_unset_proto_callback_native_port RaFlutterSttUnsetStreamNativePortDart?
final
rac_artifact_infer_from_url_proto RacArtifactInferFromUrlProtoDart
final
rac_component_lifecycle_snapshot_proto RacComponentLifecycleSnapshotProtoDart?
final
rac_diffusion_generate_lifecycle_proto RacLifecycleRequestProtoDart?
final
rac_download_cancel_proto RacLifecycleRequestProtoDart?
final
rac_download_plan_proto RacLifecycleRequestProtoDart?
final
rac_download_progress_poll_proto RacLifecycleRequestProtoDart?
final
rac_download_resume_proto RacLifecycleRequestProtoDart?
final
rac_download_set_progress_proto_callback RacDownloadSetProgressProtoCallbackDart?
final
rac_download_start_proto RacLifecycleRequestProtoDart?
final
rac_embeddings_create_proto RacLifecycleRequestProtoDart?
final
rac_embeddings_embed_batch_lifecycle_proto RacLifecycleRequestProtoDart?
final
rac_embeddings_embed_batch_proto RacHandleBytesToProtoDart?
final
rac_env_is_production RacEnvPredicateDart?
rac_env_is_production(rac_environment_t) — true only for production.
final
rac_env_is_testing RacEnvPredicateDart?
rac_env_is_testing(rac_environment_t) — true for development/staging.
final
rac_env_requires_auth RacEnvPredicateDart?
rac_env_requires_auth(rac_environment_t) — true for non-development.
final
rac_env_requires_backend_url RacEnvPredicateDart?
rac_env_requires_backend_url(rac_environment_t) — true for staging/production.
final
rac_env_should_send_telemetry RacEnvPredicateDart?
rac_env_should_send_telemetry(rac_environment_t) — true only for production.
final
rac_env_should_sync_with_backend RacEnvPredicateDart?
rac_env_should_sync_with_backend(rac_environment_t) — true for staging/production.
final
rac_get_lora_registry RacLoraRegistryGetDart?
final
rac_http_client_create RacHttpClientCreateDart
final
rac_http_client_destroy RacHttpClientDestroyDart
final
rac_http_default_headers RacHttpDefaultHeadersDart
Canonical SDK header list.
final
rac_http_download_execute RacHttpDownloadExecuteDart
final
rac_http_request_send RacHttpRequestSendDart
final
rac_http_response_free RacHttpResponseFreeDart
final
rac_inference_framework_analytics_key RacEnumToCStringDart
rac_inference_framework_analytics_key — snake_case analytics key for a C rac_inference_framework_t value (mirrors Swift RAInferenceFramework.analyticsKey). Out pointer is static — never free.
final
rac_llm_cancel_proto RacLlmCancelProtoDart?
final
rac_llm_generate_proto RacLifecycleRequestProtoDart?
final
rac_llm_generate_stream_proto RacLlmGenerateStreamProtoDart?
final
rac_llm_proto_quiesce RacProtoQuiesceDart
rac_llm_proto_quiesce — spin-wait LLM stream dispatches to drain.
final
rac_lora_adapter_import_proto RacHandleBytesToProtoDart?
final
rac_lora_apply_proto RacLifecycleRequestProtoDart?
final
rac_lora_catalog_get_proto RacHandleBytesToProtoDart?
final
rac_lora_catalog_list_proto RacHandleBytesToProtoDart?
final
rac_lora_catalog_mark_download_completed_proto RacHandleBytesToProtoDart?
final
rac_lora_catalog_query_proto RacHandleBytesToProtoDart?
final
rac_lora_compatibility_proto RacLifecycleRequestProtoDart?
final
rac_lora_list_proto RacLifecycleRequestProtoDart?
final
rac_lora_register_proto RacHandleBytesToProtoDart?
final
rac_lora_remove_proto RacLifecycleRequestProtoDart?
final
rac_lora_state_proto RacLifecycleRequestProtoDart?
final
rac_model_category_default_framework RacEnumToIntDart
rac_model_category_default_framework — fallback rac_inference_framework_t for a C rac_model_category_t value.
final
rac_model_category_requires_context_length RacEnumToIntDart
rac_model_category_requires_context_lengthrac_bool_t for a C rac_model_category_t value.
final
rac_model_format_from_url_proto RacArtifactInferFromUrlProtoDart
final
rac_model_lifecycle_current_model_proto RacLifecycleRequestProtoDart?
final
rac_model_lifecycle_load_proto RacHandleBytesToProtoDart?
final
rac_model_lifecycle_reset RacModelLifecycleResetDart?
final
rac_model_lifecycle_unload_proto RacLifecycleRequestProtoDart?
final
rac_model_registry_discover_proto RacHandleBytesToProtoDart
final
rac_model_registry_get_proto RacModelRegistryGetProtoDart
final
rac_model_registry_import_proto RacHandleBytesToProtoDart
rac_model_registry_import_proto — local-import entry point used by file-picker / bookmark flows after the platform has handled sandbox access.
final
rac_model_registry_list_downloaded_proto RacModelRegistryListDownloadedProtoDart
final
rac_model_registry_list_proto RacModelRegistryListDownloadedProtoDart
final
rac_model_registry_proto_free RacModelRegistryProtoFreeDart
final
rac_model_registry_query_proto RacModelRegistryQueryProtoDart
final
rac_model_registry_refresh_proto RacHandleBytesToProtoDart
rac_model_registry_refresh_proto — the single refresh entry point. Takes a ModelRegistryRefreshRequest and returns a ModelRegistryRefreshResult.
final
rac_model_registry_register_proto RacModelRegistryRegisterProtoDart
final
rac_model_registry_remove_proto RacModelRegistryRemoveProtoDart
final
rac_model_registry_update_proto RacModelRegistryRegisterProtoDart
final
rac_proto_buffer_free RacProtoBufferFreeDart
final
rac_proto_buffer_init RacProtoBufferFreeDart
final
rac_rag_clear_proto RacHandleOutProtoDart?
final
rac_rag_ingest_proto RacHandleBytesToProtoDart?
final
rac_rag_query_proto RacHandleBytesToProtoDart?
final
rac_rag_session_create_proto RacRagSessionCreateProtoDart?
final
rac_rag_session_destroy_proto RacDestroyHandleDart?
final
rac_rag_stats_proto RacHandleOutProtoDart?
final
rac_register_model_from_url_proto RacArtifactInferFromUrlProtoDart
rac_register_model_from_url_proto — Swift-parity URL-form registerModel(...) entry point. Builds and persists a ModelInfo from a RegisterModelFromUrlRequest.
final
rac_register_multi_file_model_proto RacArtifactInferFromUrlProtoDart
final
rac_result_to_proto_error RacResultToProtoErrorDart
rac_result_to_proto_error — canonical rac_result_t → serialized SDKError proto mapping. Mirrors Swift's RASDKError+Helpers.swift path so the translation lives in commons across every SDK.
final
rac_sdk_event_poll RacLlmCancelProtoDart?
final
rac_sdk_event_publish_failure RacSdkEventPublishFailureDart?
final
rac_sdk_event_publish_proto RacSdkEventPublishProtoDart?
final
rac_sdk_event_quiesce RacProtoQuiesceDart
final
rac_sdk_event_subscribe RacSdkEventSubscribeDart
final
rac_sdk_event_unsubscribe RacSdkEventUnsubscribeDart
final
rac_sdk_get_version RacSdkGetVersionDart
rac_sdk_get_version — canonical SDK semver string from commons (mirrors Swift SDKConstants.version).
final
rac_storage_analyzer_availability_proto RacStorageProtoDart?
final
rac_storage_analyzer_create RacStorageAnalyzerCreateDart?
final
rac_storage_analyzer_delete_plan_proto RacStorageProtoDart?
final
rac_storage_analyzer_delete_proto RacStorageProtoDart?
final
rac_storage_analyzer_destroy RacDestroyHandleDart?
final
rac_storage_analyzer_info_proto RacStorageProtoDart?
final
rac_structured_output_generate_proto RacArtifactInferFromUrlProtoDart
rac_structured_output_generate_proto — runs full structured-output generation against the lifecycle-owned LLM. Takes a serialized StructuredOutputRequest and returns a StructuredOutputResult.
final
rac_structured_output_parse_proto RacArtifactInferFromUrlProtoDart
rac_structured_output_parse_proto — parses structured output JSON from raw model text. Takes a serialized StructuredOutputParseRequest and returns a StructuredOutputResult.
final
rac_structured_output_prepare_prompt_proto RacArtifactInferFromUrlProtoDart
rac_structured_output_prepare_prompt_proto — builds the schema-instrumented prompt for structured output. Takes a serialized StructuredOutputRequest and returns a StructuredOutputPromptResult.
final
rac_structured_output_schema_to_json_proto RacArtifactInferFromUrlProtoDart
rac_structured_output_schema_to_json_proto — serializes a JSONSchema proto to canonical compact, key-sorted JSON Schema text. Mirrors Swift RAJSONSchema.jsonSchemaString. Output bytes are raw UTF-8 text, NOT a proto message; callers extract the string directly from the rac_proto_buffer_t data field.
final
rac_stt_component_load_model RacSttComponentLoadModelDart
rac_stt_component_load_model(handle, path, id, name).
final
rac_stt_component_transcribe_proto RacSttTranscribeProtoDart?
final
rac_stt_component_transcribe_stream_proto RacSttTranscribeStreamProtoDart?
final
rac_stt_proto_quiesce RacProtoQuiesceDart
rac_stt_proto_quiesce — spin-wait STT stream dispatches to drain.
final
rac_stt_stream_cancel_proto RacEnumToIntDart
rac_stt_stream_cancel_proto(session) — immediate teardown.
final
rac_stt_stream_feed_audio_proto RacSttStreamFeedAudioProtoDart
rac_stt_stream_feed_audio_proto(session, audio_bytes, size).
final
rac_stt_stream_start_proto RacSttStreamStartProtoDart
rac_stt_stream_start_proto(handle, options_bytes, size, out_session).
final
rac_stt_stream_stop_proto RacEnumToIntDart
rac_stt_stream_stop_proto(session) — flushes the final result.
final
rac_stt_transcribe_lifecycle_proto RacLifecycleRequestProtoDart?
final
rac_tool_call_format_prompt_proto RacArtifactInferFromUrlProtoDart
final
rac_tool_call_parse_proto RacArtifactInferFromUrlProtoDart
final
rac_tool_call_validate_proto RacArtifactInferFromUrlProtoDart
final
rac_tool_calling_session_cancel_proto RacEnumToIntDart
final
rac_tool_calling_session_create_proto RacToolCallingSessionCreateProtoDart
final
rac_tool_calling_session_destroy_proto RacEnumToIntDart
final
rac_tool_calling_session_step_with_result_proto RacToolCallingSessionStepWithResultProtoDart
final
rac_tool_value_from_json_proto RacArtifactInferFromUrlProtoDart
rac_tool_value_from_json_proto — parses a ToolValueJSON wrapper back into a ToolValue proto.
final
rac_tool_value_to_json_proto RacArtifactInferFromUrlProtoDart
rac_tool_value_to_json_proto — serializes a ToolValue proto into a ToolValueJSON wrapper carrying the canonical JSON text.
final
rac_tts_component_list_voices_proto RacTtsListVoicesProtoDart?
final
rac_tts_component_synthesize_proto RacTtsSynthesizeProtoDart?
final
rac_tts_component_synthesize_stream_proto RacTtsSynthesizeStreamProtoDart?
final
rac_tts_proto_quiesce RacProtoQuiesceDart
rac_tts_proto_quiesce — spin-wait TTS stream dispatches to drain.
final
rac_tts_stop_lifecycle_proto RacLlmCancelProtoDart?
final
rac_tts_synthesize_lifecycle_proto RacLifecycleRequestProtoDart?
final
rac_tts_synthesize_stream_lifecycle_proto RacLlmGenerateStreamProtoDart?
final
rac_vad_component_configure_proto RacVadConfigureProtoDart?
final
rac_vad_component_get_statistics_proto RacHandleOutProtoDart?
final
rac_vad_component_process_proto RacVadProcessProtoDart?
final
rac_vad_component_set_activity_proto_callback RacTtsListVoicesProtoDart?
final
rac_vad_configure_lifecycle_proto RacLifecycleRequestProtoDart?
final
rac_vad_process_lifecycle_proto RacLifecycleRequestProtoDart?
final
rac_vad_proto_quiesce RacProtoQuiesceDart
rac_vad_proto_quiesce — spin-wait VAD activity dispatches to drain.
final
rac_vad_reset_lifecycle_proto RacLlmCancelProtoDart?
final
rac_vad_start_lifecycle_proto RacLlmCancelProtoDart?
final
rac_vad_stop_lifecycle_proto RacLlmCancelProtoDart?
final
rac_vlm_cancel_lifecycle_proto RacLlmCancelProtoDart?
rac_vlm_cancel_lifecycle_proto — cancel lifecycle-owned VLM generation and return a serialized SDKEvent describing the cancellation. Null on older commons binaries.
final
rac_vlm_proto_quiesce RacProtoQuiesceDart
rac_vlm_proto_quiesce — spin-wait VLM stream dispatches to drain.
final
rac_voice_agent_cancel_turn_proto RacVadConfigureProtoDart?
rac_voice_agent_cancel_turn_proto(handle, VoiceAgentTurnRequest) — request-scoped cooperative cancellation for a blocking voice turn.
final
rac_voice_agent_component_create_proto RacVoiceAgentComponentCreateProtoDart
final
rac_voice_agent_component_destroy_proto RacVoiceAgentComponentDestroyProtoDart
final
rac_voice_agent_component_states_proto RacHandleOutProtoDart?
final
rac_voice_agent_initialize_proto RacHandleBytesToProtoDart?
final
rac_voice_agent_process_turn_proto RacVoiceAgentProcessTurnProto2Dart?
final
rac_voice_agent_process_voice_turn_proto RacVoiceAgentProcessTurnProtoDart?
final
rac_voice_agent_proto_quiesce RacProtoQuiesceDart
rac_voice_agent_proto_quiesce — spin-wait voice-agent dispatches.
final
rac_voice_agent_set_proto_callback RacVoiceAgentSetProtoCallbackDart
final
rac_voice_agent_synthesize_speech_proto RacHandleBytesToProtoDart?
final
rac_voice_agent_transcribe_proto RacHandleBytesToProtoDart?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited