9#import <Foundation/Foundation.h>
13NS_ASSUME_NONNULL_BEGIN
21@protocol NIMAIListDelegate;
49@protocol NIMAIManager <NSObject>
77- (void)addDelegate:(
id<NIMAIListDelegate>)listener;
84- (void)removeDelegate:(
id<NIMAIListDelegate>)listener;
89@protocol NIMAIListDelegate <NSObject>
104@property(nonatomic,copy) NSString *
msg;
118@property(nonatomic,copy) NSString *msg;
133@property(nullable,nonatomic,copy) NSString *prompt;
136@property(nonatomic,assign) NSInteger maxTokens;
144@property(nonatomic,assign) CGFloat topP;
150@property(nonatomic,assign) CGFloat temperature;
157@property(nonatomic,copy) NSString *accountId;
160@property(nonatomic,copy) NSString *requestId;
166@property(nullable,nonatomic,strong) NSArray<NIMAIModelCallMessage *> *messages;
171@property(nullable,nonatomic,copy) NSString *promptVariables;
183@property(nonatomic,copy) NSString *model;
186@property(nonatomic,copy) NSString *prompt;
189@property(nullable,nonatomic,strong) NSArray *promptKeys;
192@property(nonatomic,assign) NSInteger maxTokens;
200@property(nonatomic,assign) CGFloat topP;
206@property(nonatomic,assign) CGFloat temperature;
224@property(nonatomic,assign) BOOL antispamEnabled;
227@property(nullable,nonatomic,copy) NSString *antispamBusinessId;
233@property(nonatomic,copy) NSString *accountId;
236@property(nonatomic,copy) NSString *requestId;
242@property(nonatomic,assign) NSInteger code;
NIMAIModelCallContentType
大模型请求内容类型
Definition: NIMAIManagerProtocol.h:38
@ NIMAIModelCallContentTypeText
Definition: NIMAIManagerProtocol.h:39
NIMAIModelType
大模型类型
Definition: NIMAIManagerProtocol.h:29
@ NIMAIModelTypeQwen
Definition: NIMAIManagerProtocol.h:31
@ NIMAIModelTypeAzure
Definition: NIMAIManagerProtocol.h:32
@ NIMAIModelTypePrivate
Definition: NIMAIManagerProtocol.h:33
@ NIMAIModelTypeUnknow
Definition: NIMAIManagerProtocol.h:30
NIMAIModelRoleType
大模型角色内容
Definition: NIMAIManagerProtocol.h:43
@ NIMAIModelRoleTypeUser
Definition: NIMAIManagerProtocol.h:45
@ NIMAIModelRoleTypeAssistant
Definition: NIMAIManagerProtocol.h:46
@ NIMAIModelRoleTypeSystem
Definition: NIMAIManagerProtocol.h:44
void(^ NIMProxyAIModelCallBlock)(NSError *__nullable error)
Al数字人请求代理接口的回调
Definition: NIMAIManagerProtocol.h:26
void(^ NIMGetAlUserListBlock)(NSError *__nullable error, NSArray< NIMAIUser * > *_Nullable result)
数字人拉取接口的回调
Definition: NIMAIManagerProtocol.h:24
Definition: NIMAIManagerProtocol.h:101
NIMAIModelCallContentType type
类型,暂时只有0,代表文本,预留扩展能力
Definition: NIMAIManagerProtocol.h:107
NSString * msg
请求/响应的文本内容
Definition: NIMAIManagerProtocol.h:104
请求调用上下文内容
Definition: NIMAIManagerProtocol.h:113
Definition: NIMAIManagerProtocol.h:231
Definition: NIMAIManagerProtocol.h:181
Definition: NIMAIManagerProtocol.h:130
Definition: NIMAIManagerProtocol.h:211
Definition: NIMAIManagerProtocol.h:222
Definition: NIMAIManagerProtocol.h:155
Definition: NIMUser.h:114