Adds the ability to set a "finish" handler on an Op. The intended use is as an extension point for integrations. For example, I intend to use this functionality in the Gemini integration to copy information about token usage from the Gemini call response object (whose structure only the Gemini integration should have to know anything about) into our standard token usage format in the call's summary dictionary.
Description
Adds the ability to set a "finish" handler on an Op. The intended use is as an extension point for integrations. For example, I intend to use this functionality in the Gemini integration to copy information about token usage from the Gemini call response object (whose structure only the Gemini integration should have to know anything about) into our standard token usage format in the call's summary dictionary.
Testing
How was this PR tested?