Skip to content

Commit 81a104a

Browse files
committed
Bump n.e.x.t to 0.2.0.
1 parent d55311e commit 81a104a

22 files changed

+68
-68
lines changed

src/AiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public static function defaultRegistry(): ProviderRegistry
127127
* injected into availability instances.
128128
*
129129
* @since 0.1.0
130-
* @since n.e.x.t Now supports being passed a provider ID or class name.
130+
* @since 0.2.0 Now supports being passed a provider ID or class name.
131131
*
132132
* @param ProviderAvailabilityInterface|string|class-string<ProviderInterface> $availabilityOrIdOrClassName
133133
* The provider availability instance, provider ID, or provider class name.

src/Builders/MessageBuilder.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* This class provides a fluent interface for building messages with various
1919
* content types including text, files, function calls, and function responses.
2020
*
21-
* @since n.e.x.t
21+
* @since 0.2.0
2222
*
2323
* @phpstan-import-type MessagePartArrayShape from MessagePart
2424
*
@@ -39,7 +39,7 @@ class MessageBuilder
3939
/**
4040
* Constructor.
4141
*
42-
* @since n.e.x.t
42+
* @since 0.2.0
4343
*
4444
* @param Input $input Optional initial content.
4545
* @param MessageRoleEnum|null $role Optional role.
@@ -75,7 +75,7 @@ public function __construct($input = null, ?MessageRoleEnum $role = null)
7575
/**
7676
* Sets the role of the message sender.
7777
*
78-
* @since n.e.x.t
78+
* @since 0.2.0
7979
*
8080
* @param MessageRoleEnum $role The role to set.
8181
* @return self
@@ -89,7 +89,7 @@ public function usingRole(MessageRoleEnum $role): self
8989
/**
9090
* Sets the role to user.
9191
*
92-
* @since n.e.x.t
92+
* @since 0.2.0
9393
*
9494
* @return self
9595
*/
@@ -101,7 +101,7 @@ public function usingUserRole(): self
101101
/**
102102
* Sets the role to model.
103103
*
104-
* @since n.e.x.t
104+
* @since 0.2.0
105105
*
106106
* @return self
107107
*/
@@ -113,7 +113,7 @@ public function usingModelRole(): self
113113
/**
114114
* Adds text content to the message.
115115
*
116-
* @since n.e.x.t
116+
* @since 0.2.0
117117
*
118118
* @param string $text The text to add.
119119
* @return self
@@ -139,7 +139,7 @@ public function withText(string $text): self
139139
* - Data URI string (data:mime/type;base64,data)
140140
* - Local file path string
141141
*
142-
* @since n.e.x.t
142+
* @since 0.2.0
143143
*
144144
* @param string|File $file The file to add.
145145
* @param string|null $mimeType Optional MIME type (ignored if File object provided).
@@ -156,7 +156,7 @@ public function withFile($file, ?string $mimeType = null): self
156156
/**
157157
* Adds a function call to the message.
158158
*
159-
* @since n.e.x.t
159+
* @since 0.2.0
160160
*
161161
* @param FunctionCall $functionCall The function call to add.
162162
* @return self
@@ -170,7 +170,7 @@ public function withFunctionCall(FunctionCall $functionCall): self
170170
/**
171171
* Adds a function response to the message.
172172
*
173-
* @since n.e.x.t
173+
* @since 0.2.0
174174
*
175175
* @param FunctionResponse $functionResponse The function response to add.
176176
* @return self
@@ -184,7 +184,7 @@ public function withFunctionResponse(FunctionResponse $functionResponse): self
184184
/**
185185
* Adds multiple message parts to the message.
186186
*
187-
* @since n.e.x.t
187+
* @since 0.2.0
188188
*
189189
* @param MessagePart ...$parts The message parts to add.
190190
* @return self
@@ -201,7 +201,7 @@ public function withMessageParts(MessagePart ...$parts): self
201201
/**
202202
* Builds and returns the Message object.
203203
*
204-
* @since n.e.x.t
204+
* @since 0.2.0
205205
*
206206
* @return Message The built message.
207207
* @throws InvalidArgumentException If the message validation fails.

src/Builders/PromptBuilder.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function usingModel(ModelInterface $model): self
224224
/**
225225
* Sets preferred models to evaluate in order.
226226
*
227-
* @since n.e.x.t
227+
* @since 0.2.0
228228
*
229229
* @param string|ModelInterface|array{0:string,1:string} ...$preferredModels The preferred models as model IDs,
230230
* model instances, or [model ID, provider ID] tuples.
@@ -1163,7 +1163,7 @@ private function getConfiguredModel(CapabilityEnum $capability): ModelInterface
11631163
/**
11641164
* Builds a map of candidate models that satisfy the requirements for efficient lookup.
11651165
*
1166-
* @since n.e.x.t
1166+
* @since 0.2.0
11671167
*
11681168
* @param ModelRequirements $requirements The requirements derived from the prompt.
11691169
* @return array<string, array{0:string,1:string}> Map of preference keys to [providerId, modelId] tuples.
@@ -1201,7 +1201,7 @@ private function getCandidateModelsMap(ModelRequirements $requirements): array
12011201
/**
12021202
* Generates a candidate map from model metadata with both provider-specific and model-only keys.
12031203
*
1204-
* @since n.e.x.t
1204+
* @since 0.2.0
12051205
*
12061206
* @param string $providerId The provider ID.
12071207
* @param list<ModelMetadata> $modelsMetadata The models metadata to map.
@@ -1229,7 +1229,7 @@ private function generateMapFromCandidates(string $providerId, array $modelsMeta
12291229
/**
12301230
* Normalizes and validates a preference identifier string.
12311231
*
1232-
* @since n.e.x.t
1232+
* @since 0.2.0
12331233
*
12341234
* @param mixed $value The value to normalize.
12351235
* @param string $emptyMessage The message for empty or invalid values.
@@ -1256,7 +1256,7 @@ private function normalizePreferenceIdentifier(
12561256
/**
12571257
* Creates a preference key for a provider/model combination.
12581258
*
1259-
* @since n.e.x.t
1259+
* @since 0.2.0
12601260
*
12611261
* @param string $providerId The provider identifier.
12621262
* @param string $modelId The model identifier.
@@ -1270,7 +1270,7 @@ private function createProviderModelPreferenceKey(string $providerId, string $mo
12701270
/**
12711271
* Creates a preference key for a model identifier.
12721272
*
1273-
* @since n.e.x.t
1273+
* @since 0.2.0
12741274
*
12751275
* @param string $modelId The model identifier.
12761276
* @return string The generated preference key.

src/Common/Contracts/AiClientExceptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This interface allows callers to catch all AI Client specific exceptions
1313
* with a single catch statement.
1414
*
15-
* @since n.e.x.t
15+
* @since 0.2.0
1616
*/
1717
interface AiClientExceptionInterface extends Throwable
1818
{

src/Common/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This extends PHP's built-in InvalidArgumentException while implementing
1313
* the AI Client exception interface for consistent catch handling.
1414
*
15-
* @since n.e.x.t
15+
* @since 0.2.0
1616
*/
1717
class InvalidArgumentException extends \InvalidArgumentException implements AiClientExceptionInterface
1818
{

src/Common/Exception/RuntimeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This extends PHP's built-in RuntimeException while implementing
1313
* the AI Client exception interface for consistent catch handling.
1414
*
15-
* @since n.e.x.t
15+
* @since 0.2.0
1616
*/
1717
class RuntimeException extends \RuntimeException implements AiClientExceptionInterface
1818
{

src/ProviderImplementations/Anthropic/AnthropicProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AnthropicProvider extends AbstractApiProvider
2424
/**
2525
* {@inheritDoc}
2626
*
27-
* @since n.e.x.t
27+
* @since 0.2.0
2828
*/
2929
protected static function baseUrl(): string
3030
{

src/ProviderImplementations/Google/GoogleProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GoogleProvider extends AbstractApiProvider
2424
/**
2525
* {@inheritDoc}
2626
*
27-
* @since n.e.x.t
27+
* @since 0.2.0
2828
*/
2929
protected static function baseUrl(): string
3030
{

src/ProviderImplementations/OpenAi/OpenAiProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class OpenAiProvider extends AbstractApiProvider
2424
/**
2525
* {@inheritDoc}
2626
*
27-
* @since n.e.x.t
27+
* @since 0.2.0
2828
*/
2929
protected static function baseUrl(): string
3030
{

src/Providers/ApiBasedImplementation/AbstractApiProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* communicate with REST APIs. It standardizes the pattern of combining a base
1414
* URL with endpoint paths.
1515
*
16-
* @since n.e.x.t
16+
* @since 0.2.0
1717
*/
1818
abstract class AbstractApiProvider extends AbstractProvider
1919
{
@@ -23,7 +23,7 @@ abstract class AbstractApiProvider extends AbstractProvider
2323
* The base URL should include the protocol and domain, and may include
2424
* the API version path (e.g., "https://api.example.com/v1").
2525
*
26-
* @since n.e.x.t
26+
* @since 0.2.0
2727
*
2828
* @return string The base URL for the provider's API.
2929
*/
@@ -37,7 +37,7 @@ abstract protected static function baseUrl(): string;
3737
* - Trimming leading slashes from the path to prevent double-slashes
3838
* - Joining the base URL and path with a single forward slash
3939
*
40-
* @since n.e.x.t
40+
* @since 0.2.0
4141
*
4242
* @param string $path Optional path to append to the base URL. Default empty string.
4343
* @return string The complete URL.

0 commit comments

Comments
 (0)