@alicloud/dianjin20240628 1.8.1 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -3005,6 +3005,154 @@ export declare class RecognizeIntentionResponseBodyData extends $dara.Model {
3005
3005
  [key: string]: any;
3006
3006
  });
3007
3007
  }
3008
+ export declare class RunAgentResponseBodyDataFunctionCallResponses extends $dara.Model {
3009
+ displayName?: string;
3010
+ /**
3011
+ * @example
3012
+ * 2025-01-21 16:37:14
3013
+ */
3014
+ endTime?: string;
3015
+ functionArgs?: string;
3016
+ /**
3017
+ * @example
3018
+ * web_search
3019
+ */
3020
+ functionName?: string;
3021
+ result?: string;
3022
+ /**
3023
+ * @example
3024
+ * 2025-01-21 16:37:14
3025
+ */
3026
+ startTime?: string;
3027
+ static names(): {
3028
+ [key: string]: string;
3029
+ };
3030
+ static types(): {
3031
+ [key: string]: any;
3032
+ };
3033
+ validate(): void;
3034
+ constructor(map?: {
3035
+ [key: string]: any;
3036
+ });
3037
+ }
3038
+ export declare class RunAgentResponseBodyDataResponseChoicesMessage extends $dara.Model {
3039
+ content?: string;
3040
+ /**
3041
+ * @example
3042
+ * assistant
3043
+ */
3044
+ role?: string;
3045
+ /**
3046
+ * @example
3047
+ * assistant
3048
+ */
3049
+ roleDisplayName?: string;
3050
+ static names(): {
3051
+ [key: string]: string;
3052
+ };
3053
+ static types(): {
3054
+ [key: string]: any;
3055
+ };
3056
+ validate(): void;
3057
+ constructor(map?: {
3058
+ [key: string]: any;
3059
+ });
3060
+ }
3061
+ export declare class RunAgentResponseBodyDataResponseChoices extends $dara.Model {
3062
+ /**
3063
+ * @example
3064
+ * stop
3065
+ */
3066
+ finishReason?: string;
3067
+ /**
3068
+ * @example
3069
+ * 0
3070
+ */
3071
+ index?: number;
3072
+ message?: RunAgentResponseBodyDataResponseChoicesMessage;
3073
+ static names(): {
3074
+ [key: string]: string;
3075
+ };
3076
+ static types(): {
3077
+ [key: string]: any;
3078
+ };
3079
+ validate(): void;
3080
+ constructor(map?: {
3081
+ [key: string]: any;
3082
+ });
3083
+ }
3084
+ export declare class RunAgentResponseBodyDataResponse extends $dara.Model {
3085
+ choices?: RunAgentResponseBodyDataResponseChoices[];
3086
+ /**
3087
+ * @example
3088
+ * 1737448637
3089
+ */
3090
+ created?: number;
3091
+ /**
3092
+ * @example
3093
+ * d91d9afa-7cfc-4235-b012-a6f8e6ffa443
3094
+ */
3095
+ id?: string;
3096
+ /**
3097
+ * @example
3098
+ * qwen-plus
3099
+ */
3100
+ modelId?: string;
3101
+ /**
3102
+ * @example
3103
+ * 2025-01-21T16:37:17.497206762
3104
+ */
3105
+ time?: string;
3106
+ static names(): {
3107
+ [key: string]: string;
3108
+ };
3109
+ static types(): {
3110
+ [key: string]: any;
3111
+ };
3112
+ validate(): void;
3113
+ constructor(map?: {
3114
+ [key: string]: any;
3115
+ });
3116
+ }
3117
+ export declare class RunAgentResponseBodyData extends $dara.Model {
3118
+ functionCallResponses?: RunAgentResponseBodyDataFunctionCallResponses[];
3119
+ /**
3120
+ * @example
3121
+ * 766
3122
+ */
3123
+ inputTokens?: number;
3124
+ /**
3125
+ * @example
3126
+ * 988
3127
+ */
3128
+ outputTokens?: number;
3129
+ response?: RunAgentResponseBodyDataResponse;
3130
+ /**
3131
+ * @example
3132
+ * 4vlag5ken3
3133
+ */
3134
+ threadId?: string;
3135
+ /**
3136
+ * @example
3137
+ * 5bdb9809856c58acb92001f8ae65773c
3138
+ */
3139
+ traceId?: string;
3140
+ /**
3141
+ * @example
3142
+ * w4paqoezm2
3143
+ */
3144
+ versionId?: string;
3145
+ static names(): {
3146
+ [key: string]: string;
3147
+ };
3148
+ static types(): {
3149
+ [key: string]: any;
3150
+ };
3151
+ validate(): void;
3152
+ constructor(map?: {
3153
+ [key: string]: any;
3154
+ });
3155
+ }
3008
3156
  export declare class RunChatResultGenerationRequestMessages extends $dara.Model {
3009
3157
  content?: string;
3010
3158
  /**
@@ -6846,6 +6994,121 @@ export declare class RecognizeIntentionResponse extends $dara.Model {
6846
6994
  [key: string]: any;
6847
6995
  });
6848
6996
  }
6997
+ export declare class RunAgentRequest extends $dara.Model {
6998
+ /**
6999
+ * @remarks
7000
+ * This parameter is required.
7001
+ *
7002
+ * @example
7003
+ * d6zxykawk9
7004
+ */
7005
+ botId?: string;
7006
+ /**
7007
+ * @example
7008
+ * qwen-plus
7009
+ */
7010
+ modelId?: string;
7011
+ /**
7012
+ * @example
7013
+ * true
7014
+ */
7015
+ stream?: boolean;
7016
+ /**
7017
+ * @example
7018
+ * 4vlag5ken3
7019
+ */
7020
+ threadId?: string;
7021
+ /**
7022
+ * @example
7023
+ * false
7024
+ */
7025
+ useDraft?: boolean;
7026
+ /**
7027
+ * @remarks
7028
+ * This parameter is required.
7029
+ */
7030
+ userContent?: string;
7031
+ /**
7032
+ * @example
7033
+ * w4paqoezm2
7034
+ */
7035
+ versionId?: string;
7036
+ static names(): {
7037
+ [key: string]: string;
7038
+ };
7039
+ static types(): {
7040
+ [key: string]: any;
7041
+ };
7042
+ validate(): void;
7043
+ constructor(map?: {
7044
+ [key: string]: any;
7045
+ });
7046
+ }
7047
+ export declare class RunAgentResponseBody extends $dara.Model {
7048
+ /**
7049
+ * @example
7050
+ * null
7051
+ */
7052
+ cost?: number;
7053
+ data?: RunAgentResponseBodyData;
7054
+ /**
7055
+ * @example
7056
+ * null
7057
+ */
7058
+ dataType?: string;
7059
+ /**
7060
+ * @example
7061
+ * 0
7062
+ */
7063
+ errCode?: string;
7064
+ /**
7065
+ * @example
7066
+ * ok
7067
+ */
7068
+ message?: string;
7069
+ /**
7070
+ * @example
7071
+ * EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
7072
+ */
7073
+ requestId?: string;
7074
+ /**
7075
+ * @example
7076
+ * true
7077
+ */
7078
+ success?: boolean;
7079
+ /**
7080
+ * @example
7081
+ * 2024-01-01 00:00:00
7082
+ */
7083
+ time?: string;
7084
+ static names(): {
7085
+ [key: string]: string;
7086
+ };
7087
+ static types(): {
7088
+ [key: string]: any;
7089
+ };
7090
+ validate(): void;
7091
+ constructor(map?: {
7092
+ [key: string]: any;
7093
+ });
7094
+ }
7095
+ export declare class RunAgentResponse extends $dara.Model {
7096
+ headers?: {
7097
+ [key: string]: string;
7098
+ };
7099
+ statusCode?: number;
7100
+ body?: RunAgentResponseBody;
7101
+ static names(): {
7102
+ [key: string]: string;
7103
+ };
7104
+ static types(): {
7105
+ [key: string]: any;
7106
+ };
7107
+ validate(): void;
7108
+ constructor(map?: {
7109
+ [key: string]: any;
7110
+ });
7111
+ }
6849
7112
  export declare class RunChatResultGenerationRequest extends $dara.Model {
6850
7113
  /**
6851
7114
  * @example
@@ -8277,6 +8540,24 @@ export default class Client extends OpenApi {
8277
8540
  * @returns RecognizeIntentionResponse
8278
8541
  */
8279
8542
  recognizeIntention(workspaceId: string, request: RecognizeIntentionRequest): Promise<RecognizeIntentionResponse>;
8543
+ /**
8544
+ * 运行智能体
8545
+ *
8546
+ * @param request - RunAgentRequest
8547
+ * @param headers - map
8548
+ * @param runtime - runtime options for this request RuntimeOptions
8549
+ * @returns RunAgentResponse
8550
+ */
8551
+ runAgentWithOptions(workspaceId: string, request: RunAgentRequest, headers: {
8552
+ [key: string]: string;
8553
+ }, runtime: $dara.RuntimeOptions): Promise<RunAgentResponse>;
8554
+ /**
8555
+ * 运行智能体
8556
+ *
8557
+ * @param request - RunAgentRequest
8558
+ * @returns RunAgentResponse
8559
+ */
8560
+ runAgent(workspaceId: string, request: RunAgentRequest): Promise<RunAgentResponse>;
8280
8561
  /**
8281
8562
  * 获取生成式对话结果
8282
8563
  *