#include "third_party/blink/renderer/modules/ai/ai_assistant_factory.h"
#include "third_party/blink/renderer/modules/ai/ai.h"
#include "third_party/blink/renderer/modules/ai/ai_assistant.h"
#include "third_party/blink/renderer/modules/ai/ai_assistant_capabilities.h"
#include "third_party/blink/renderer/modules/ai/ai_capability_availability.h"
#include "third_party/blink/renderer/modules/ai/ai_metrics.h"
#include "third_party/blink/renderer/modules/ai/exception_helpers.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/heap/persistent.h"
namespace blink {
AIAssistantFactory::AIAssistantFactory(AI* ai)
: … { … }
void AIAssistantFactory::Trace(Visitor* visitor) const { … }
void AIAssistantFactory::OnGetTextModelInfoComplete(
ScriptPromiseResolver<AIAssistantCapabilities>* resolver,
AIAssistantCapabilities* capabilities,
mojom::blink::AITextModelInfoPtr text_model_info) { … }
void AIAssistantFactory::OnCanCreateSessionComplete(
ScriptPromiseResolver<AIAssistantCapabilities>* resolver,
AICapabilityAvailability availability,
ModelAvailabilityCheckResult check_result) { … }
ScriptPromise<AIAssistantCapabilities> AIAssistantFactory::capabilities(
ScriptState* script_state,
ExceptionState& exception_state) { … }
ScriptPromise<AIAssistant> AIAssistantFactory::create(
ScriptState* script_state,
const AITextSessionOptions* options,
ExceptionState& exception_state) { … }
}