Agent
Namespace: E2E
public sealed class AgentOne goal (CancellationToken)) or a check against the current screen.
Inheritance: object
Methods
Section titled “Methods”ActAsync(string, ActOptions?, CancellationToken)
Section titled “ActAsync(string, ActOptions?, CancellationToken)”public Task<ActResult> ActAsync(string instruction, ActOptions? options = null, CancellationToken cancellationToken = default)Parameters
| Name | Type | Description |
|---|---|---|
instruction |
string | |
options |
ActOptions | |
cancellationToken |
CancellationToken |
Returns: Task<ActResult>
AssertAsync(string, AssertOptions?, CancellationToken)
Section titled “AssertAsync(string, AssertOptions?, CancellationToken)”public Task AssertAsync(string statement, AssertOptions? options = null, CancellationToken cancellationToken = default)Parameters
| Name | Type | Description |
|---|---|---|
statement |
string | |
options |
AssertOptions | |
cancellationToken |
CancellationToken |
Returns: Task
ExtractAsync<T>(string, ExtractOptions?, CancellationToken)
Section titled “ExtractAsync<T>(string, ExtractOptions?, CancellationToken)”public Task<T> ExtractAsync<T>(string instruction, ExtractOptions? options = null, CancellationToken cancellationToken = default)Reads data of type <code class=“typeparamref”>T</code> from the current screen. <code class=“typeparamref”>T</code> is the
schema: its JSON schema is sent to the judge, and the answer must deserialize into it with required
members and nullable annotations respected. An answer that does not gets one repair round, then
MODEL_OUTPUT_INVALID.
Type parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
instruction |
string | |
options |
ExtractOptions | |
cancellationToken |
CancellationToken |
Returns: Task<T>
WaitForAsync(string, WaitForOptions?, CancellationToken)
Section titled “WaitForAsync(string, WaitForOptions?, CancellationToken)”public Task WaitForAsync(string statement, WaitForOptions? options = null, CancellationToken cancellationToken = default)Parameters
| Name | Type | Description |
|---|---|---|
statement |
string | |
options |
WaitForOptions | |
cancellationToken |
CancellationToken |
Returns: Task