pub struct ResolvedEndpoint {
pub name: String,
pub endpoint_type: EndpointType,
pub url: String,
pub model: Option<String>,
pub api_key: Option<String>,
pub headers: HashMap<String, String>,
pub command: Option<String>,
pub args: Vec<String>,
pub input_price_per_1m: f64,
pub output_price_per_1m: f64,
pub per_call_price: f64,
}Expand description
Resolved endpoint ready for use in calls.
Fields§
§name: StringEndpoint name.
endpoint_type: EndpointTypeEndpoint type.
url: StringBase URL for HTTP-based endpoints.
model: Option<String>Model name (LLM endpoints only).
api_key: Option<String>API key / bearer token.
headers: HashMap<String, String>Custom HTTP headers.
command: Option<String>Command for MCP subprocess endpoints.
args: Vec<String>Arguments for MCP subprocess endpoints.
input_price_per_1m: f64Input token pricing per 1M tokens.
output_price_per_1m: f64Output token pricing per 1M tokens.
per_call_price: f64Flat cost per call.
Implementations§
Source§impl ResolvedEndpoint
impl ResolvedEndpoint
Sourcepub fn default_llm() -> Self
pub fn default_llm() -> Self
Creates a default LLM endpoint from environment variables.
Trait Implementations§
Source§impl Clone for ResolvedEndpoint
impl Clone for ResolvedEndpoint
Source§fn clone(&self) -> ResolvedEndpoint
fn clone(&self) -> ResolvedEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedEndpoint
impl RefUnwindSafe for ResolvedEndpoint
impl Send for ResolvedEndpoint
impl Sync for ResolvedEndpoint
impl Unpin for ResolvedEndpoint
impl UnsafeUnpin for ResolvedEndpoint
impl UnwindSafe for ResolvedEndpoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more