Skip to main content

Crate elizaos_plugin_copilot_proxy

Crate elizaos_plugin_copilot_proxy 

Source
Expand description

Copilot Proxy model provider plugin for elizaOS.

This crate provides:

  • A typed HTTP client for the Copilot Proxy server (CopilotProxyClient)
  • A service layer for managing proxy interactions (CopilotProxyService)
  • A high-level plugin wrapper (CopilotProxyPlugin)
  • A helper to construct an elizaOS plugin definition

Re-exports§

pub use client::CopilotProxyClient;
pub use config::normalize_base_url;
pub use config::CopilotProxyConfig;
pub use config::AVAILABLE_MODELS;
pub use config::DEFAULT_BASE_URL;
pub use config::DEFAULT_CONTEXT_WINDOW;
pub use config::DEFAULT_LARGE_MODEL;
pub use config::DEFAULT_MAX_TOKENS;
pub use config::DEFAULT_SMALL_MODEL;
pub use config::DEFAULT_TIMEOUT_SECONDS;
pub use error::CopilotProxyError;
pub use error::Result;
pub use providers::get_available_models;
pub use providers::get_default_models;
pub use providers::is_known_model;
pub use providers::CopilotProxyModelProvider;
pub use providers::ModelCost;
pub use providers::ModelDefinition;
pub use providers::ModelProviderConfig;
pub use service::get_service;
pub use service::initialize_service;
pub use service::CopilotProxyService;
pub use types::ChatCompletionChoice;
pub use types::ChatCompletionRequest;
pub use types::ChatCompletionResponse;
pub use types::ChatMessage;
pub use types::ChatRole;
pub use types::ModelInfo;
pub use types::ModelsResponse;
pub use types::TextGenerationParams;
pub use types::TextGenerationResult;
pub use types::TokenUsage;

Modules§

client
HTTP client for the Copilot Proxy server. HTTP client for the Copilot Proxy server.
config
Configuration types. Configuration types for the Copilot Proxy plugin.
error
Error types and result aliases. Error types for the Copilot Proxy plugin.
providers
Model provider implementations. Model provider implementations for Copilot Proxy.
service
Service layer for managing interactions. Service layer for the Copilot Proxy plugin.
types
Type definitions. Type definitions for the Copilot Proxy plugin.

Structs§

CopilotProxyPlugin
High-level Copilot Proxy plugin wrapper.

Functions§

create_copilot_proxy_elizaos_plugin
Create an elizaOS plugin wired to Copilot Proxy model handlers.
get_copilot_proxy_plugin
Construct a Copilot Proxy plugin from environment variables.