Crate inference_gateway_sdk

Source
Expand description

Inference Gateway SDK for Rust

This crate provides a Rust client for the Inference Gateway API, allowing interaction with various LLM providers through a unified interface.

Structs§

GenerateResponse
The response from generating content
InferenceGatewayClient
Client for interacting with the Inference Gateway API
Message
A message in a conversation with an LLM
Model
Represents a model available through a provider
ProviderModels
Collection of models available from a specific provider
ResponseContent
The content of the response
SSEvents
Stream of Server-Sent Events (SSE) from the Inference Gateway API
Tool
Tool to use for the LLM toolbox
ToolCall
Tool to use for generation
ToolCallResponse
A tool call in the response
ToolFunction
Tool function to call
ToolFunctionResponse
Function details in a tool call response

Enums§

GatewayError
Custom error types for the Inference Gateway SDK
MessageRole
Provider
Supported LLM providers
ToolType
Type of tool that can be used by the model

Traits§

InferenceGatewayAPI
Core API interface for the Inference Gateway