on_eventを渡します。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Rubyエージェントの実行、モデルターン、ツール、休止、完了を監視します。
on_eventを渡します。
result = agent.run(
input: prompt,
client: client,
on_event: ->(event) {
logger.info(
"agent event",
type: event[:type],
run_id: event[:run_id],
details: event[:details]
)
}
)