Module: Rager
- Extended by:
- T::Sig
- Defined in:
- lib/rager/error.rb,
lib/rager.rb,
lib/rager/types.rb,
lib/rager/config.rb,
lib/rager/result.rb,
lib/rager/context.rb,
lib/rager/options.rb,
lib/rager/outcome.rb,
lib/rager/version.rb,
lib/rager/http/verb.rb,
lib/rager/operation.rb,
lib/rager/providers.rb,
lib/rager/utils/http.rb,
lib/rager/chat/schema.rb,
lib/rager/chat/message.rb,
lib/rager/chat/options.rb,
lib/rager/http/request.rb,
lib/rager/log_strategy.rb,
lib/rager/mesh/options.rb,
lib/rager/rerank/input.rb,
lib/rager/embed/options.rb,
lib/rager/http/response.rb,
lib/rager/image/options.rb,
lib/rager/rerank/result.rb,
lib/rager/search/result.rb,
lib/rager/utils/runtime.rb,
lib/rager/rerank/options.rb,
lib/rager/search/options.rb,
lib/rager/template/input.rb,
lib/rager/context_options.rb,
lib/rager/utils/replicate.rb,
lib/rager/template/options.rb,
lib/rager/chat/message_role.rb,
lib/rager/errors/http_error.rb,
lib/rager/chat/message_delta.rb,
lib/rager/errors/parse_error.rb,
lib/rager/http/adapters/mock.rb,
lib/rager/image/output_format.rb,
lib/rager/chat/message_content.rb,
lib/rager/errors/options_error.rb,
lib/rager/errors/timeout_error.rb,
lib/rager/chat/providers/openai.rb,
lib/rager/errors/template_error.rb,
lib/rager/search/providers/jina.rb,
lib/rager/embed/providers/openai.rb,
lib/rager/http/adapters/abstract.rb,
lib/rager/http/adapters/net_http.rb,
lib/rager/template/providers/erb.rb,
lib/rager/chat/providers/abstract.rb,
lib/rager/errors/dependency_error.rb,
lib/rager/mesh/providers/abstract.rb,
lib/rager/rerank/providers/cohere.rb,
lib/rager/embed/providers/abstract.rb,
lib/rager/errors/credentials_error.rb,
lib/rager/http/adapters/async_http.rb,
lib/rager/image/providers/abstract.rb,
lib/rager/mesh/providers/replicate.rb,
lib/rager/chat/message_content_type.rb,
lib/rager/image/providers/replicate.rb,
lib/rager/rerank/providers/abstract.rb,
lib/rager/search/providers/abstract.rb,
lib/rager/template/providers/abstract.rb,
lib/rager/template/providers/mustache.rb,
lib/rager/chat/message_content_image_type.rb
Overview
typed: strict frozen_string_literal: true
Defined Under Namespace
Modules: Chat, Embed, Errors, Http, Image, Mesh, Options, Providers, Rerank, Search, Template, Types, Utils
Classes: Config, Context, ContextOptions, Error, LogStrategy, Operation, Outcome, Result
Constant Summary
collapse
- ConfigBlock =
T.type_alias do
T.proc.params(config: Config).void
end
- VERSION =
"0.7.0"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
20
21
22
|
# File 'lib/rager.rb', line 20
def self.config
@config ||= Config.new
end
|
25
26
27
|
# File 'lib/rager.rb', line 25
def self.configure(&block)
yield(config)
end
|
.reset_config! ⇒ Object
30
31
32
|
# File 'lib/rager.rb', line 30
def self.reset_config!
@config = Config.new
end
|