Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/AiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
* ->generateTextResult();
* ```
*
* @since n.e.x.t
* @since 0.1.0
*
* @phpstan-import-type Prompt from PromptBuilder
*
Expand All @@ -90,7 +90,7 @@ class AiClient
/**
* Gets the default provider registry instance.
*
* @since n.e.x.t
* @since 0.1.0
*
* @return ProviderRegistry The default provider registry.
*/
Expand All @@ -114,7 +114,7 @@ public static function defaultRegistry(): ProviderRegistry
/**
* Checks if a provider is configured and available for use.
*
* @since n.e.x.t
* @since 0.1.0
*
* @param ProviderAvailabilityInterface $availability The provider availability instance to check.
* @return bool True if the provider is configured and available, false otherwise.
Expand All @@ -131,7 +131,7 @@ public static function isConfigured(ProviderAvailabilityInterface $availability)
* The traditional API methods in this class delegate to PromptBuilder
* for all generation logic.
*
* @since n.e.x.t
* @since 0.1.0
*
* @param Prompt $prompt Optional initial prompt content.
* @param ProviderRegistry|null $registry Optional custom registry. If null, uses default.
Expand All @@ -149,7 +149,7 @@ public static function prompt($prompt = null, ?ProviderRegistry $registry = null
* model discovery based on prompt content and configuration. When a model is provided,
* it infers the capability from the model's interfaces and delegates to the capability-based method.
*
* @since n.e.x.t
* @since 0.1.0
*
* @param Prompt $prompt The prompt content.
* @param ModelInterface|ModelConfig $modelOrConfig Specific model to use, or model configuration
Expand All @@ -172,7 +172,7 @@ public static function generateResult(
/**
* Generates text using the traditional API approach.
*
* @since n.e.x.t
* @since 0.1.0
*
* @param Prompt $prompt The prompt content.
* @param ModelInterface|ModelConfig|null $modelOrConfig Optional specific model to use,
Expand All @@ -197,7 +197,7 @@ public static function generateTextResult(
/**
* Generates an image using the traditional API approach.
*
* @since n.e.x.t
* @since 0.1.0
*
* @param Prompt $prompt The prompt content.
* @param ModelInterface|ModelConfig|null $modelOrConfig Optional specific model to use,
Expand All @@ -221,7 +221,7 @@ public static function generateImageResult(
/**
* Converts text to speech using the traditional API approach.
*
* @since n.e.x.t
* @since 0.1.0
*
* @param Prompt $prompt The prompt content.
* @param ModelInterface|ModelConfig|null $modelOrConfig Optional specific model to use,
Expand All @@ -245,7 +245,7 @@ public static function convertTextToSpeechResult(
/**
* Generates speech using the traditional API approach.
*
* @since n.e.x.t
* @since 0.1.0
*
* @param Prompt $prompt The prompt content.
* @param ModelInterface|ModelConfig|null $modelOrConfig Optional specific model to use,
Expand Down Expand Up @@ -273,7 +273,7 @@ public static function generateSpeechResult(
* MessageBuilder will provide a fluent interface for constructing complex
* messages with multiple parts, attachments, and metadata.
*
* @since n.e.x.t
* @since 0.1.0
*
* @param string|null $text Optional initial message text.
* @return object MessageBuilder instance (type will be updated when MessageBuilder is available).
Expand Down
Loading