Loading...
Loading...
Implement or modify Ruby code that uses the claude-agent-sdk gem, including query() one-shot calls, Client-based interactive sessions, streaming input, option configuration, tools/permissions, hooks, SDK MCP servers, structured output, budgets, sandboxing, session resumption, Rails integration, and error handling.
npx skill4agent add ya-luotao/skills claude-agent-rubyclaude-agent-sdkClaudeAgentSDK.queryClaudeAgentSDK::ClientAsync do ... end.waitcreate_toolcreate_sdk_mcp_serverClaudeAgentSDK::ClaudeAgentOptionsqueryClient.newAssistantMessageResultMessageUserMessageTextBlockToolUseBlockoutput_formatStructuredOutputthinking:ThinkingConfigAdaptiveThinkingConfigEnabled(budget_tokens:)ThinkingConfigDisabledeffort:'low''medium''high'can_use_toolpermission_prompt_tool_nametool_use_idPreToolUseHookInputPostToolUseHookInputmcp__<server>__<tool>allowed_toolsannotations:create_tooltoolsToolsPresetappend_allowed_toolsSandboxSettingsSandboxNetworkConfigresumesession_idfork_sessionsystem_prompt--system-prompt ""bundle show claude-agent-sdkruby -e 'puts Gem::Specification.find_by_name(\"claude-agent-sdk\").full_gem_path'<gem_path>/README.md<gem_path>/lib/claude_agent_sdk/types.rb<gem_path>/lib/claude_agent_sdk/errors.rbreferences/usage-map.mdreferences/usage-map.md