Class AIControllerApi
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public class AIControllerApi : IAIControllerApi, IAIControllerApiSync, IAIControllerApiAsync, IApiAccessor
Constructors
View SourceAIControllerApi()
Initializes a new instance of the AIControllerApi class.
Declaration
public AIControllerApi()
AIControllerApi(string)
Initializes a new instance of the AIControllerApi class.
Declaration
public AIControllerApi(string basePath)
Parameters
Type | Name | Description |
---|---|---|
string | basePath |
AIControllerApi(Configuration)
Initializes a new instance of the AIControllerApi class using Configuration object
Declaration
public AIControllerApi(Configuration configuration)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | An instance of Configuration |
AIControllerApi(ISynchronousClient, IAsynchronousClient, IReadableConfiguration)
Initializes a new instance of the AIControllerApi class using a Configuration object and client instance.
Declaration
public AIControllerApi(ISynchronousClient client, IAsynchronousClient asyncClient, IReadableConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ISynchronousClient | client | The client interface for synchronous API access. |
IAsynchronousClient | asyncClient | The client interface for asynchronous API access. |
IReadableConfiguration | configuration | The configuration object. |
Properties
View SourceAsynchronousClient
The client for accessing this underlying API asynchronously.
Declaration
public IAsynchronousClient AsynchronousClient { get; set; }
Property Value
Type | Description |
---|---|
IAsynchronousClient |
Client
The client for accessing this underlying API synchronously.
Declaration
public ISynchronousClient Client { get; set; }
Property Value
Type | Description |
---|---|
ISynchronousClient |
Configuration
Gets or sets the configuration object
Declaration
public IReadableConfiguration Configuration { get; set; }
Property Value
Type | Description |
---|---|
IReadableConfiguration | An instance of the Configuration |
ExceptionFactory
Provides a factory method hook for the creation of exceptions.
Declaration
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
Type | Description |
---|---|
ExceptionFactory |
Methods
View SourceGenerateStructuredContentFromEmail(GenerateStructuredContentEmailOptions, int)
Generate structured content for an email Use output schemas to extract data from an email using AI
Declaration
public StructuredContentResult GenerateStructuredContentFromEmail(GenerateStructuredContentEmailOptions generateStructuredContentEmailOptions, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
GenerateStructuredContentEmailOptions | generateStructuredContentEmailOptions | |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
StructuredContentResult | StructuredContentResult |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GenerateStructuredContentFromEmailAsync(GenerateStructuredContentEmailOptions, int, CancellationToken)
Generate structured content for an email Use output schemas to extract data from an email using AI
Declaration
public Task<StructuredContentResult> GenerateStructuredContentFromEmailAsync(GenerateStructuredContentEmailOptions generateStructuredContentEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GenerateStructuredContentEmailOptions | generateStructuredContentEmailOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<StructuredContentResult> | Task of StructuredContentResult |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GenerateStructuredContentFromEmailWithHttpInfo(GenerateStructuredContentEmailOptions, int)
Generate structured content for an email Use output schemas to extract data from an email using AI
Declaration
public ApiResponse<StructuredContentResult> GenerateStructuredContentFromEmailWithHttpInfo(GenerateStructuredContentEmailOptions generateStructuredContentEmailOptions, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
GenerateStructuredContentEmailOptions | generateStructuredContentEmailOptions | |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<StructuredContentResult> | ApiResponse of StructuredContentResult |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GenerateStructuredContentFromEmailWithHttpInfoAsync(GenerateStructuredContentEmailOptions, int, CancellationToken)
Generate structured content for an email Use output schemas to extract data from an email using AI
Declaration
public Task<ApiResponse<StructuredContentResult>> GenerateStructuredContentFromEmailWithHttpInfoAsync(GenerateStructuredContentEmailOptions generateStructuredContentEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GenerateStructuredContentEmailOptions | generateStructuredContentEmailOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<StructuredContentResult>> | Task of ApiResponse (StructuredContentResult) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
Type | Description |
---|---|
string | The base path |
ValidateStructuredOutputSchema(StructuredOutputSchema, int)
Validate structured content schema Check if a schema is valid and can be used to extract data using AI
Declaration
public StructuredOutputSchemaValidation ValidateStructuredOutputSchema(StructuredOutputSchema structuredOutputSchema, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
StructuredOutputSchema | structuredOutputSchema | |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
StructuredOutputSchemaValidation | StructuredOutputSchemaValidation |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ValidateStructuredOutputSchemaAsync(StructuredOutputSchema, int, CancellationToken)
Validate structured content schema Check if a schema is valid and can be used to extract data using AI
Declaration
public Task<StructuredOutputSchemaValidation> ValidateStructuredOutputSchemaAsync(StructuredOutputSchema structuredOutputSchema, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
StructuredOutputSchema | structuredOutputSchema | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<StructuredOutputSchemaValidation> | Task of StructuredOutputSchemaValidation |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ValidateStructuredOutputSchemaWithHttpInfo(StructuredOutputSchema, int)
Validate structured content schema Check if a schema is valid and can be used to extract data using AI
Declaration
public ApiResponse<StructuredOutputSchemaValidation> ValidateStructuredOutputSchemaWithHttpInfo(StructuredOutputSchema structuredOutputSchema, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
StructuredOutputSchema | structuredOutputSchema | |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<StructuredOutputSchemaValidation> | ApiResponse of StructuredOutputSchemaValidation |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ValidateStructuredOutputSchemaWithHttpInfoAsync(StructuredOutputSchema, int, CancellationToken)
Validate structured content schema Check if a schema is valid and can be used to extract data using AI
Declaration
public Task<ApiResponse<StructuredOutputSchemaValidation>> ValidateStructuredOutputSchemaWithHttpInfoAsync(StructuredOutputSchema structuredOutputSchema, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
StructuredOutputSchema | structuredOutputSchema | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<StructuredOutputSchemaValidation>> | Task of ApiResponse (StructuredOutputSchemaValidation) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |