Module: ClaudeAgentServer::Services::QueryExecutor
- Defined in:
- lib/claude_agent_server/services/query_executor.rb
Class Method Summary collapse
Class Method Details
.execute(prompt:, options:) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/claude_agent_server/services/query_executor.rb', line 10 def execute(prompt:, options:) = [] ClaudeAgentSDK.query(prompt: prompt, options: ) do || << MessageSerializer.serialize() end end |
.stream(prompt:, options:, &block) ⇒ Object
20 21 22 23 24 |
# File 'lib/claude_agent_server/services/query_executor.rb', line 20 def stream(prompt:, options:, &block) ClaudeAgentSDK.query(prompt: prompt, options: ) do || block.call() end end |