Module: CPEE::LLM
- Defined in:
- lib/cpee/llm/dataflow.rb,
lib/cpee/llm/functions.rb,
lib/cpee/llm/implementation.rb,
lib/cpee/llm/rubyllm_requests.rb
Defined Under Namespace
Modules: DataFlow, Functions, RubyLLM_Requests Classes: CreateDataFlow, CreateGeneric, CreateMermaid, CreateText, LLMError, ValidateDataFlow
Constant Summary collapse
- SERVER =
File.(File.join(__dir__,'implementation.xml'))
Class Method Summary collapse
Class Method Details
.implementation(opts) ⇒ Object
}}}
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/cpee/llm/implementation.rb', line 208 def self::implementation(opts) Proc.new do on resource do run(CreateMermaid, opts[:llms]) if post 'llm_in' on resource 'dataflow' do run(CreateDataFlow, opts[:llms]) if post 'dataflow_in' end on resource 'validate' do on resource 'xml' do run(ValidateDataFlow, opts[:llms]) if post 'dataflow_in' end end on resource 'text' do on resource 'llm' do run(CreateText, opts[:llms]) if post 'text_in' end end on resource 'generic' do run(CreateGeneric, opts[:llms]) if post 'generic_in' end end end end |