@@ -810,14 +810,6 @@ direction LR
810
810
}
811
811
812
812
namespace AiClientNamespace.Providers.Contracts {
813
- class AuthenticationInterface {
814
- +authenticate(Request $request) void
815
- +getJsonSchema() array< string, mixed >$
816
- }
817
- class HttpClientInterface {
818
- +send(Request $request, array< string, mixed > $options) Response
819
- +request(string $method, string $uri, array< string, mixed > $options) Response
820
- }
821
813
class ModelMetadataDirectoryInterface {
822
814
+listModelMetadata() ModelMetadata[]
823
815
+hasModelMetadata(string $modelId) bool
@@ -866,23 +858,52 @@ direction LR
866
858
}
867
859
}
868
860
861
+ namespace AiClientNamespace.Providers.Http.Contracts {
862
+ class HttpTransporterInterface {
863
+ +send(Request $request) Response
864
+ }
865
+ class RequestAuthenticationInterface {
866
+ +authenticate(Request $request) void
867
+ +getJsonSchema() array< string, mixed >$
868
+ }
869
+ class WithHttpTransporterInterface {
870
+ +setHttpTransporter(HttpTransporterInterface $transporter) void
871
+ +getHttpTransporter() HttpTransporterInterface
872
+ }
873
+ class WithRequestAuthenticationInterface {
874
+ +setRequestAuthentication(RequestAuthenticationInterface $authentication) void
875
+ +getRequestAuthentication() RequestAuthenticationInterface
876
+ }
877
+ }
878
+
879
+ namespace AiClientNamespace.Providers.Http.DTO {
880
+ class Request {
881
+ +getMethod() string
882
+ +getUri() string
883
+ +getHeaders() array< string, string[] >
884
+ +getBody() ?string
885
+ +getData() ?array< string, mixed >
886
+ +getJsonSchema() array< string, mixed >$
887
+ }
888
+
889
+ class Response {
890
+ +getStatusCode() int
891
+ +getHeaders() array< string, string[] >
892
+ +getBody() ?string
893
+ +getData() ?array< string, mixed >
894
+ +getJsonSchema() array< string, mixed >$
895
+ }
896
+ }
897
+
869
898
namespace AiClientNamespace.Providers.Models.Contracts {
870
899
class ModelInterface {
871
900
+metadata() ModelMetadata
872
901
+setConfig(ModelConfig $config) void
873
902
+getConfig() ModelConfig
874
903
}
875
- class WithAuthenticationInterface {
876
- +setAuthentication(AuthenticationInterface $authentication) void
877
- +getAuthentication() AuthenticationInterface
878
- }
879
904
class WithEmbeddingOperationsInterface {
880
905
+getOperation(string $operationId) EmbeddingOperation
881
906
}
882
- class WithHttpClientInterface {
883
- +setHttpClient(HttpClientInterface $client) void
884
- +getHttpClient() HttpClientInterface
885
- }
886
907
}
887
908
888
909
namespace AiClientNamespace.Providers.Models.DTO {
@@ -1051,10 +1072,10 @@ direction LR
1051
1072
<<interface>> TextToSpeechConversionOperationModelInterface
1052
1073
<<interface>> SpeechGenerationOperationModelInterface
1053
1074
<<interface>> EmbeddingGenerationOperationModelInterface
1054
- <<interface>> WithHttpClientInterface
1055
- <<interface>> HttpClientInterface
1056
- <<interface>> WithAuthenticationInterface
1057
- <<interface>> AuthenticationInterface
1075
+ <<interface>> HttpTransporterInterface
1076
+ <<interface>> WithHttpTransporterInterface
1077
+ <<interface>> RequestAuthenticationInterface
1078
+ <<interface>> WithRequestAuthenticationInterface
1058
1079
<<Enumeration>> CapabilityEnum
1059
1080
<<Enumeration>> OptionEnum
1060
1081
<<Enumeration>> ProviderTypeEnum
0 commit comments