Skip to content

Commit

Permalink
Support API GenerateOutputFormat.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 26, 2024
1 parent 3ecba53 commit 91ace0c
Show file tree
Hide file tree
Showing 17 changed files with 1,473 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-12-26 Version: 2.1.0
- Support API GenerateOutputFormat.
- Support API RunTagMiningAnalysis.


2024-12-11 Version: 2.0.1
- Update API RunHotTopicChat: add param messages.

Expand Down
118 changes: 118 additions & 0 deletions src/Models/GenerateOutputFormatRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models;

use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateOutputFormatRequest\tags;
use AlibabaCloud\Tea\Model;

class GenerateOutputFormatRequest extends Model
{
/**
* @example clueMining
*
* @var string
*/
public $businessType;

/**
* @example 待分析文本
*
* @var string
*/
public $content;

/**
* @example 额外信息
*
* @var string
*/
public $extraInfo;

/**
* @description This parameter is required.
*
* @var tags[]
*/
public $tags;

/**
* @example 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
*
* @var string
*/
public $taskDescription;
protected $_name = [
'businessType' => 'businessType',
'content' => 'content',
'extraInfo' => 'extraInfo',
'tags' => 'tags',
'taskDescription' => 'taskDescription',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->businessType) {
$res['businessType'] = $this->businessType;
}
if (null !== $this->content) {
$res['content'] = $this->content;
}
if (null !== $this->extraInfo) {
$res['extraInfo'] = $this->extraInfo;
}
if (null !== $this->tags) {
$res['tags'] = [];
if (null !== $this->tags && \is_array($this->tags)) {
$n = 0;
foreach ($this->tags as $item) {
$res['tags'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->taskDescription) {
$res['taskDescription'] = $this->taskDescription;
}

return $res;
}

/**
* @param array $map
*
* @return GenerateOutputFormatRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['businessType'])) {
$model->businessType = $map['businessType'];
}
if (isset($map['content'])) {
$model->content = $map['content'];
}
if (isset($map['extraInfo'])) {
$model->extraInfo = $map['extraInfo'];
}
if (isset($map['tags'])) {
if (!empty($map['tags'])) {
$model->tags = [];
$n = 0;
foreach ($map['tags'] as $item) {
$model->tags[$n++] = null !== $item ? tags::fromMap($item) : $item;
}
}
}
if (isset($map['taskDescription'])) {
$model->taskDescription = $map['taskDescription'];
}

return $model;
}
}
63 changes: 63 additions & 0 deletions src/Models/GenerateOutputFormatRequest/tags.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateOutputFormatRequest;

use AlibabaCloud\Tea\Model;

class tags extends Model
{
/**
* @example xxxx
*
* @var string
*/
public $tagDefinePrompt;

/**
* @example xxxx
*
* @var string
*/
public $tagName;
protected $_name = [
'tagDefinePrompt' => 'tagDefinePrompt',
'tagName' => 'tagName',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->tagDefinePrompt) {
$res['tagDefinePrompt'] = $this->tagDefinePrompt;
}
if (null !== $this->tagName) {
$res['tagName'] = $this->tagName;
}

return $res;
}

/**
* @param array $map
*
* @return tags
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['tagDefinePrompt'])) {
$model->tagDefinePrompt = $map['tagDefinePrompt'];
}
if (isset($map['tagName'])) {
$model->tagName = $map['tagName'];
}

return $model;
}
}
71 changes: 71 additions & 0 deletions src/Models/GenerateOutputFormatResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models;

use AlibabaCloud\Tea\Model;

class GenerateOutputFormatResponse extends Model
{
/**
* @var string[]
*/
public $headers;

/**
* @var int
*/
public $statusCode;

/**
* @var GenerateOutputFormatResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->headers) {
$res['headers'] = $this->headers;
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
}

return $res;
}

/**
* @param array $map
*
* @return GenerateOutputFormatResponse
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
$model->headers = $map['headers'];
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = GenerateOutputFormatResponseBody::fromMap($map['body']);
}

return $model;
}
}
120 changes: 120 additions & 0 deletions src/Models/GenerateOutputFormatResponseBody.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models;

use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateOutputFormatResponseBody\data;
use AlibabaCloud\Tea\Model;

class GenerateOutputFormatResponseBody extends Model
{
/**
* @example successful
*
* @var string
*/
public $code;

/**
* @var data
*/
public $data;

/**
* @example 200
*
* @var int
*/
public $httpStatusCode;

/**
* @example ok
*
* @var string
*/
public $message;

/**
* @description Id of the request
*
* @example 117F5ABE-CF02-5502-9A3F-E56BC9081A64
*
* @var string
*/
public $requestId;

/**
* @example True
*
* @var bool
*/
public $success;
protected $_name = [
'code' => 'code',
'data' => 'data',
'httpStatusCode' => 'httpStatusCode',
'message' => 'message',
'requestId' => 'requestId',
'success' => 'success',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->code) {
$res['code'] = $this->code;
}
if (null !== $this->data) {
$res['data'] = null !== $this->data ? $this->data->toMap() : null;
}
if (null !== $this->httpStatusCode) {
$res['httpStatusCode'] = $this->httpStatusCode;
}
if (null !== $this->message) {
$res['message'] = $this->message;
}
if (null !== $this->requestId) {
$res['requestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['success'] = $this->success;
}

return $res;
}

/**
* @param array $map
*
* @return GenerateOutputFormatResponseBody
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['code'])) {
$model->code = $map['code'];
}
if (isset($map['data'])) {
$model->data = data::fromMap($map['data']);
}
if (isset($map['httpStatusCode'])) {
$model->httpStatusCode = $map['httpStatusCode'];
}
if (isset($map['message'])) {
$model->message = $map['message'];
}
if (isset($map['requestId'])) {
$model->requestId = $map['requestId'];
}
if (isset($map['success'])) {
$model->success = $map['success'];
}

return $model;
}
}
Loading

0 comments on commit 91ace0c

Please sign in to comment.