@@ -826,26 +826,32 @@ direction LR
826
826
827
827
namespace AiClientNamespace.Providers.Contracts {
828
828
class AuthenticationInterface {
829
- +authenticate(RequestInterface $request) void
829
+ +authenticate(Request $request) void
830
830
+getJsonSchema() array< string, mixed >$
831
831
}
832
832
class HttpClientInterface {
833
- +send(RequestInterface $request, array< string, mixed > $options) ResponseInterface
834
- +request(string $method, string $uri, array< string, mixed > $options) ResponseInterface
833
+ +send(Request $request, array< string, mixed > $options) Response
834
+ +request(string $method, string $uri, array< string, mixed > $options) Response
835
835
}
836
836
class ModelMetadataDirectoryInterface {
837
837
+listModelMetadata() ModelMetadata[]
838
838
+hasModelMetadata(string $modelId) bool
839
839
+getModelMetadata(string $modelId) ModelMetadata
840
840
}
841
+ class ProviderAvailabilityInterface {
842
+ +isConfigured() bool
843
+ }
841
844
class ProviderInterface {
842
845
+metadata() ProviderMetadata$
843
846
+model(string $modelId, ModelConfig|array< string, mixed > $modelConfig) ModelInterface$
844
847
+availability() ProviderAvailabilityInterface$
845
848
+modelMetadataDirectory() ModelMetadataDirectoryInterface$
846
849
}
847
- class ProviderAvailabilityInterface {
848
- +isConfigured() bool
850
+ class ProviderOperationsHandlerInterface {
851
+ +getOperation(string $operationId) OperationInterface
852
+ }
853
+ class ProviderWithOperationsHandlerInterface {
854
+ +operationsHandler() ProviderOperationsHandlerInterface$
849
855
}
850
856
}
851
857
@@ -888,9 +894,6 @@ direction LR
888
894
class WithEmbeddingOperationsInterface {
889
895
+getOperation(string $operationId) EmbeddingOperation
890
896
}
891
- class WithGenerativeAiOperationsInterface {
892
- +getOperation(string $operationId) GenerativeAiOperation
893
- }
894
897
class WithHttpClientInterface {
895
898
+setHttpClient(HttpClientInterface $client) void
896
899
+getHttpClient() HttpClientInterface
@@ -1050,7 +1053,8 @@ direction LR
1050
1053
<<interface>> ModelInterface
1051
1054
<<interface>> ProviderAvailabilityInterface
1052
1055
<<interface>> ModelMetadataDirectoryInterface
1053
- <<interface>> WithGenerativeAiOperationsInterface
1056
+ <<interface>> ProviderOperationsHandlerInterface
1057
+ <<interface>> ProviderWithOperationsHandlerInterface
1054
1058
<<interface>> WithEmbeddingOperationsInterface
1055
1059
<<interface>> TextGenerationModelInterface
1056
1060
<<interface>> ImageGenerationModelInterface
@@ -1074,6 +1078,7 @@ direction LR
1074
1078
ProviderInterface "1" *-- "1" ProviderMetadata
1075
1079
ProviderInterface "1" *-- "1" ProviderAvailabilityInterface
1076
1080
ProviderInterface "1" *-- "1" ModelMetadataDirectoryInterface
1081
+ ProviderWithOperationsHandlerInterface "1" *-- "1" ProviderOperationsHandlerInterface
1077
1082
ModelInterface "1" *-- "1" ModelMetadata
1078
1083
ModelInterface "1" *-- "1" ModelConfig
1079
1084
ProviderModelsMetadata "1" o-- "1" ProviderMetadata
0 commit comments