mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
81 lines
3.4 KiB
C
81 lines
3.4 KiB
C
// WARNING: Please don't edit this file. It was generated by C++/WinRT
|
|
// v2.0.250303.1
|
|
|
|
#pragma once
|
|
#ifndef WINRT_Microsoft_Windows_AI_GenerativeInternal_2_H
|
|
#define WINRT_Microsoft_Windows_AI_GenerativeInternal_2_H
|
|
#include "winrt/impl/Microsoft.Windows.AI.GenerativeInternal.1.h"
|
|
WINRT_EXPORT namespace winrt::Microsoft::Windows::AI::GenerativeInternal {
|
|
struct TextContentFilterSeverityInternal {
|
|
winrt::Microsoft::Windows::AI::GenerativeInternal::
|
|
ContentSafetySeverityLevelInternal HateContentSeverity{};
|
|
winrt::Microsoft::Windows::AI::GenerativeInternal::
|
|
ContentSafetySeverityLevelInternal SexualContentSeverity{};
|
|
winrt::Microsoft::Windows::AI::GenerativeInternal::
|
|
ContentSafetySeverityLevelInternal ViolentContentSeverity{};
|
|
winrt::Microsoft::Windows::AI::GenerativeInternal::
|
|
ContentSafetySeverityLevelInternal SelfHarmContentSeverity{};
|
|
};
|
|
inline bool operator==(
|
|
TextContentFilterSeverityInternal const& left,
|
|
TextContentFilterSeverityInternal const& right) noexcept {
|
|
return left.HateContentSeverity == right.HateContentSeverity &&
|
|
left.SexualContentSeverity == right.SexualContentSeverity &&
|
|
left.ViolentContentSeverity == right.ViolentContentSeverity &&
|
|
left.SelfHarmContentSeverity == right.SelfHarmContentSeverity;
|
|
}
|
|
inline bool operator!=(
|
|
TextContentFilterSeverityInternal const& left,
|
|
TextContentFilterSeverityInternal const& right) noexcept {
|
|
return !(left == right);
|
|
}
|
|
struct ContentFilterOptionsInternal {
|
|
winrt::Microsoft::Windows::AI::GenerativeInternal::
|
|
TextContentFilterSeverityInternal PromptMaxAllowedSeverityLevel{};
|
|
winrt::Microsoft::Windows::AI::GenerativeInternal::
|
|
TextContentFilterSeverityInternal ResponseMaxAllowedSeverityLevel{};
|
|
};
|
|
inline bool operator==(ContentFilterOptionsInternal const& left,
|
|
ContentFilterOptionsInternal const& right) noexcept {
|
|
return left.PromptMaxAllowedSeverityLevel ==
|
|
right.PromptMaxAllowedSeverityLevel &&
|
|
left.ResponseMaxAllowedSeverityLevel ==
|
|
right.ResponseMaxAllowedSeverityLevel;
|
|
}
|
|
inline bool operator!=(ContentFilterOptionsInternal const& left,
|
|
ContentFilterOptionsInternal const& right) noexcept {
|
|
return !(left == right);
|
|
}
|
|
struct LanguageModelInitialContextParam {
|
|
hstring SystemPrompt{};
|
|
uint32_t RandomGeneratorSeed{};
|
|
};
|
|
inline bool operator==(
|
|
LanguageModelInitialContextParam const& left,
|
|
LanguageModelInitialContextParam const& right) noexcept {
|
|
return left.SystemPrompt == right.SystemPrompt &&
|
|
left.RandomGeneratorSeed == right.RandomGeneratorSeed;
|
|
}
|
|
inline bool operator!=(
|
|
LanguageModelInitialContextParam const& left,
|
|
LanguageModelInitialContextParam const& right) noexcept {
|
|
return !(left == right);
|
|
}
|
|
struct LanguageModelOptionsInternal {
|
|
uint32_t Skill{};
|
|
float Temp{};
|
|
float Top_p{};
|
|
uint32_t Top_k{};
|
|
};
|
|
inline bool operator==(LanguageModelOptionsInternal const& left,
|
|
LanguageModelOptionsInternal const& right) noexcept {
|
|
return left.Skill == right.Skill && left.Temp == right.Temp &&
|
|
left.Top_p == right.Top_p && left.Top_k == right.Top_k;
|
|
}
|
|
inline bool operator!=(LanguageModelOptionsInternal const& left,
|
|
LanguageModelOptionsInternal const& right) noexcept {
|
|
return !(left == right);
|
|
}
|
|
}
|
|
#endif
|