MarkupExtensions
Wisej.AI.MarkupExtensions
Last updated
Wisej.AI.MarkupExtensions
Last updated
Namespace: Wisej.AI
Assembly: Wisej.AI (3.5.0.0)
Provides extension methods for configuring and handling events on SmartEndpoint, SmartHttpEndpoint, SmartHub, and SmartSession objects.
The class offers a fluent API for setting properties and subscribing to events on various smart endpoint and session types. These extension methods enable concise and readable configuration of endpoints and event handlers.
Sets the API key for the specified HTTP endpoint.
T
endpoint
The HTTP endpoint to configure.
value
The API key.
Returns: . The configured HTTP endpoint instance.
Sets the authentication string for the specified HTTP endpoint.
T
endpoint
The HTTP endpoint to configure.
value
The authentication string.
Sets the context window size for the specified endpoint.
T
endpoint
The endpoint to configure.
value
The context window size.
Sets the embedding model for the specified endpoint.
T
endpoint
The endpoint to configure.
value
The embedding model name.
Sets the HTTP headers for the specified HTTP endpoint.
T
endpoint
The HTTP endpoint to configure.
value
Sets the maximum number of output tokens for the specified endpoint.
T
endpoint
The endpoint to configure.
value
The maximum number of output tokens.
Sets the model name for the specified endpoint.
T
endpoint
The endpoint to configure.
value
The model name to assign.
Sets the name for the specified endpoint.
T
endpoint
The endpoint to configure.
value
The name to assign.
Subscribes to the AfterInvokeTool event on the specified object.
T
object
action
The action to invoke when the event is raised.
Subscribes to the AfterResponseReceived event on the specified object.
T
object
action
The action to invoke when the event is raised.
Subscribes to the BeforeInvokeTool event on the specified object.
T
object
action
The action to invoke when the event is raised.
Subscribes to the BeforeSendRequest event on the specified object.
T
object
action
The action to invoke when the event is raised.
Subscribes to the ConvertParameter event on the specified object.
T
object
action
The action to invoke when the event is raised.
Subscribes to the Done event on the specified object.
T
object
action
The action to invoke when the event is raised.
Subscribes to the Error event on the specified object.
T
object
action
The action to invoke when the event is raised.
Subscribes to the PrepareMessage event on the specified object.
T
object
action
The action to invoke when the event is raised, receiving the event arguments.
Subscribes to the Start event on the specified object.
T
object
action
The action to invoke when the event is raised.
Sets the retry delay (in milliseconds) for the specified HTTP endpoint.
T
endpoint
The HTTP endpoint to configure.
value
The retry delay in milliseconds.
Sets the system prompt for the specified endpoint.
T
endpoint
The endpoint to configure.
value
The system prompt text.
Sets the Text for the specified SmartPrompt.
T
prompt
The SmartPrompt to configure.
value
The text string.
Sets the URL for the specified HTTP endpoint.
T
endpoint
The HTTP endpoint to configure.
value
The URL to assign.
Specifies whether to use native tools for the specified endpoint.
T
endpoint
The endpoint to configure.
value
True to use native tools; otherwise, false.
A type derived from .
A type derived from .
Returns: . The configured HTTP endpoint instance.
A type derived from .
Returns: . The configured endpoint instance.
A type derived from .
Returns: . The configured endpoint instance.
A type derived from .
A containing the headers.
Returns: . The configured HTTP endpoint instance.
A type derived from .
Returns: . The configured endpoint instance.
A type derived from .
Returns: . The configured endpoint instance.
A type derived from .
Returns: . The configured endpoint instance.
A type derived from .
The to subscribe to.
Returns: . The configured instance.
A type derived from .
The to subscribe to.
Returns: . The configured instance.
A type derived from .
The to subscribe to.
Returns: . The configured instance.
A type derived from .
The to subscribe to.
Returns: . The configured instance.
A type derived from .
The to subscribe to.
Returns: . The configured instance.
A type derived from .
The to subscribe to.
Returns: . The configured instance.
A type derived from .
The to subscribe to.
Returns: . The configured instance.
A type derived from .
The to subscribe to.
Returns: . The configured instance.
A type derived from .
The to subscribe to.
Returns: . The configured instance.
A type derived from .
Returns: . The configured HTTP endpoint instance.
A type derived from .
Returns: . The configured endpoint instance.
A type derived from .
Returns: . The configured SmartPrompt instance.
A type derived from .
Returns: . The configured HTTP endpoint instance.
A type derived from .
Returns: . The configured endpoint instance.