GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.GPALAI Class Reference
Inheritance diagram for GenerallyPositive.GPALAI:
GenerallyPositive.IGPALAI GenerallyPositive.IAllowAICredentials GenerallyPositive.IAllowAIExecution GenerallyPositive.IAllowAIOutput GenerallyPositive.IAllowAIConfig GenerallyPositive.IAllowAITask GenerallyPositive.IAllowAIProvider GenerallyPositive.IAllowToGPALObject< TResult > GenerallyPositive.IAllowToGPALObject< TResult > GenerallyPositive.IAllowAIModel GenerallyPositive.IAllowAICredentials GenerallyPositive.IAllowToGPALObject< TResult > GenerallyPositive.IAllowAIOutput GenerallyPositive.IAllowAITaskConfig GenerallyPositive.IAllowToGPALObject< TResult >

Public Member Functions

IGPALAI ToGPALObject ()
IAllowAITask WithProvider (AIProviderType provider)
IAllowAITask WithModel (AIModel model)
IAllowAITask WithCredentials (ICredentials credentials)
IAllowAITask WithCredentials (string staticApiKey)
IAllowAIConfig WithTask (AITask task)
IAllowAIConfig WithTaskConfig (ClassificationConfig config)
IAllowAIConfig WithClassificationType (AIClassificationType type)
IAllowAIConfig WithCustomClassification (ClassificationConfig config)
IAllowAIOutput WithLiveInputFrom (GPALForm.GPALInput input, int debounceMilliseconds=500)
 Like WithInputFrom(object), but also wires the control's TextChanged event (debounced) to call Execute() again automatically, so output stays live as the user types. Must be called before the form is shown (the control's callbacks are read when the form is realized).
IAllowAIOutput WithLiveInputFrom (GPALForm.GPALTextArea textArea, int debounceMilliseconds=500)
 Like WithInputFrom(object), but also wires the control's TextChanged event (debounced) to call Execute() again automatically, so output stays live as the user types. Must be called before the form is shown (the control's callbacks are read when the form is realized).
IAllowAIOutput WithInputFrom (object source)
IAllowAIExecution WithOutputTo (out IGPALGrid< string > target)
IAllowAIExecution WithOutputTo (object target)
IAllowAIConfig CallAfterAIResponse (AIResponseDelegate callback)
IAllowAIExecution WithStatusTo (GPALForm.GPALStatusStrip statusStrip)
IAllowAIConfig Execute ()

Detailed Description

Definition at line 37 of file GPALAI.cs.

Member Function Documentation

◆ CallAfterAIResponse()

IAllowAIConfig GenerallyPositive.GPALAI.CallAfterAIResponse ( AIResponseDelegate callback)

Implements GenerallyPositive.IAllowAIExecution.

Definition at line 260 of file GPALAI.cs.

◆ Execute()

IAllowAIConfig GenerallyPositive.GPALAI.Execute ( )

Implements GenerallyPositive.IAllowAIExecution.

Definition at line 288 of file GPALAI.cs.

◆ ToGPALObject()

IGPALAI GenerallyPositive.GPALAI.ToGPALObject ( )

Implements GenerallyPositive.IAllowToGPALObject< TResult >.

Definition at line 78 of file GPALAI.cs.

◆ WithClassificationType()

IAllowAIConfig GenerallyPositive.GPALAI.WithClassificationType ( AIClassificationType type)

Implements GenerallyPositive.IAllowAITaskConfig.

Definition at line 139 of file GPALAI.cs.

◆ WithCredentials() [1/2]

IAllowAITask GenerallyPositive.GPALAI.WithCredentials ( ICredentials credentials)

Implements GenerallyPositive.IAllowAICredentials.

Definition at line 97 of file GPALAI.cs.

◆ WithCredentials() [2/2]

IAllowAITask GenerallyPositive.GPALAI.WithCredentials ( string staticApiKey)

Implements GenerallyPositive.IAllowAICredentials.

Definition at line 109 of file GPALAI.cs.

◆ WithCustomClassification()

IAllowAIConfig GenerallyPositive.GPALAI.WithCustomClassification ( ClassificationConfig config)

Implements GenerallyPositive.IAllowAITaskConfig.

Definition at line 155 of file GPALAI.cs.

◆ WithInputFrom()

IAllowAIOutput GenerallyPositive.GPALAI.WithInputFrom ( object source)

Implements GenerallyPositive.IAllowAIConfig.

Definition at line 205 of file GPALAI.cs.

◆ WithLiveInputFrom() [1/2]

IAllowAIOutput GenerallyPositive.GPALAI.WithLiveInputFrom ( GPALForm.GPALInput input,
int debounceMilliseconds = 500 )

Like WithInputFrom(object), but also wires the control's TextChanged event (debounced) to call Execute() again automatically, so output stays live as the user types. Must be called before the form is shown (the control's callbacks are read when the form is realized).

Implements GenerallyPositive.IAllowAIConfig.

Definition at line 176 of file GPALAI.cs.

◆ WithLiveInputFrom() [2/2]

IAllowAIOutput GenerallyPositive.GPALAI.WithLiveInputFrom ( GPALForm.GPALTextArea textArea,
int debounceMilliseconds = 500 )

Like WithInputFrom(object), but also wires the control's TextChanged event (debounced) to call Execute() again automatically, so output stays live as the user types. Must be called before the form is shown (the control's callbacks are read when the form is realized).

Implements GenerallyPositive.IAllowAIConfig.

Definition at line 183 of file GPALAI.cs.

◆ WithModel()

IAllowAITask GenerallyPositive.GPALAI.WithModel ( AIModel model)

Implements GenerallyPositive.IAllowAIModel.

Definition at line 91 of file GPALAI.cs.

◆ WithOutputTo() [1/2]

IAllowAIExecution GenerallyPositive.GPALAI.WithOutputTo ( object target)

Implements GenerallyPositive.IAllowAIOutput.

Definition at line 239 of file GPALAI.cs.

◆ WithOutputTo() [2/2]

IAllowAIExecution GenerallyPositive.GPALAI.WithOutputTo ( out IGPALGrid< string > target)

Implements GenerallyPositive.IAllowAIOutput.

Definition at line 227 of file GPALAI.cs.

◆ WithProvider()

IAllowAITask GenerallyPositive.GPALAI.WithProvider ( AIProviderType provider)

Implements GenerallyPositive.IAllowAIProvider.

Definition at line 80 of file GPALAI.cs.

◆ WithStatusTo()

IAllowAIExecution GenerallyPositive.GPALAI.WithStatusTo ( GPALForm.GPALStatusStrip statusStrip)

Implements GenerallyPositive.IAllowAIExecution.

Definition at line 271 of file GPALAI.cs.

◆ WithTask()

IAllowAIConfig GenerallyPositive.GPALAI.WithTask ( AITask task)

Implements GenerallyPositive.IAllowAITaskConfig.

Definition at line 112 of file GPALAI.cs.

◆ WithTaskConfig()

IAllowAIConfig GenerallyPositive.GPALAI.WithTaskConfig ( ClassificationConfig config)

Implements GenerallyPositive.IAllowAITaskConfig.

Definition at line 123 of file GPALAI.cs.


The documentation for this class was generated from the following file: