Package-level declarations

Types

Link copied to clipboard
class LlmGatewayException(message: String, cause: Throwable? = null) : MojenticException

Raised when an LLM gateway call fails for any reason — transport, deserialisation, provider rejection, or an unexpected response shape.

Link copied to clipboard

Raised when the broker exhausts com.mojentic.llm.CompletionConfig.maxToolIterations while recursively executing tool calls.

Link copied to clipboard

Base type for all exceptions thrown by Mojentic library code at API boundaries.

Link copied to clipboard

Raised when a realtime voice gateway call fails — transport (WebSocket) failure, protocol violation, deserialisation error, or provider rejection.

Link copied to clipboard
class ToolExecutionException(message: String, cause: Throwable? = null) : MojenticException

Raised when tool execution fails for a reason inherent to the tool itself (bad arguments, downstream error). The broker serialises this into a tool- result message and continues; callers using the tool runner directly receive it on the failed outcome.

Link copied to clipboard

Raised when a web-search gateway call fails for any reason — transport, deserialisation, vendor rejection, or an unexpected response shape.