@alicloud/dianjin20240628 1.8.1 → 1.9.1

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