Skip to main content
After task execution, you can access various aspects of the task results and metadata through the task object properties and methods.

Basic Result Access

Task Metadata

Cost Information

Tool Call History

Cache Information

Complete Example

Available Properties and Methods

Best Practices

  • Result Validation: Always check if results are None before processing
  • Error Handling: Handle cases where metadata might not be available
  • Cost Monitoring: Track costs for budget management
  • Performance Analysis: Use duration metrics for optimization
  • Tool Debugging: Review tool call history for debugging complex workflows
  • Cache Optimization: Monitor cache hit rates to optimize caching strategies