> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.agentchat.contrib.agent_eval.task.Task

<h2 id="autogen.agentchat.contrib.agent_eval.task.Task" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">Task</span>
</h2>

```python theme={null}
Task(**data: Any)
```

Class representing a task for agent completion, includes example agent execution for criteria generation.<br />Create a new model by parsing and validating input data from keyword arguments.<br />Raises \[`ValidationError`]\[pydantic\_core.ValidationError] if the input data cannot be
validated to form a valid model.<br />`self` is explicitly positional-only to allow `self` as a field name.

<b>Parameters:</b>

| Name     | Description   |
| -------- | ------------- |
| `**data` | **Type:** Any |

### Class Attributes

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### description

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### failed\_response

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### model\_config

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### name

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### successful\_response

<br />

<br />

### Static Methods

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### parse\_json\_str

```python theme={null}
parse_json_str(task: str) -> Task
```

Create a Task object from a json object.<br />

<b>Parameters:</b>

| Name   | Description                                                                  |
| ------ | ---------------------------------------------------------------------------- |
| `task` | A json string that represents the task information.<br /><br />**Type:** str |

<b>Returns:</b>

| Type                                                                       | Description                                                    |
| -------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [Task](/docs/api-reference/autogen/agentchat/contrib/agent_eval/task/Task) | Task: A Task object that represents the json task information. |

<br />

### Instance Methods

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### get\_sys\_message

```python theme={null}
get_sys_message(self) -> 
```

<br />
