chore: Add BizContext, extensions, and context support for task#1831
chore: Add BizContext, extensions, and context support for task#1831He-Pin wants to merge 1 commit into
Conversation
8d36726 to
fcf697b
Compare
|
@He-Pin @LucaButBoring should this be a separate SEP that modifies the Tasks spec? |
|
I will update it this weekend. |
|
@He-Pin @LucaButBoring just to confirm, is this already implemented, or is this entirely net-new for tasks? Because this feels SEP-shaped. |
|
@localden net-new |
|
This can be implemented, if this is acceptable, I can first contribute this to the typescript sdk . wdyt @localden @LucaButBoring |
| - `extensions` object providing arbitrary extension metadata for the task, used to control how task will be handled. | ||
| - `context` object providing context metadata for the task, such as identity information. | ||
| - `bizContext` object providing business context metadata for the task, if the server received this, it should respond the same `bizContext` in the task-related responses and notifications. |
There was a problem hiding this comment.
It looks like all three of these additional fields contain arbitrary data? Are there any reasons why these wouldn't be regular request parameters or defined by an actual protocol extension? Thinking on these more, they only appear to make sense if you control both the client and server implementations, at which point it's acceptable to do whatever additional logic you like (but you might want to codify that in an extension specification).
There was a problem hiding this comment.
Without a specific use case it's hard to judge how this will be used, but extrapolating from the PR description, if what you want is a way to pass a webhook callback outside the scope of the specification, an extension seems to make more sense than having spec-defined fields which the host application can't use unless it's built-to-purpose for a specific use case (there's also a new Triggers and Events Working Group which should start to be a useful discussion platform for that particular topic once they're fully set up, but setting that aside).
|
Yes, we internally maintain a generic MCP server and provide a client for use by the agents platform; however, our server is implemented in Java, which prevents implementations in other languages from leveraging our platform's capabilities. You are right—I should refactor this into a generalized capability. I will make the necessary changes. Thank you for your review. @LucaButBoring |
|
Closing this as Tasks is moving into an extension. |
Motivation and Context
To support context free client task handling, eg an agent may put some bizContext to the
bizContextassosicated with thetask, and waiting an notification later.How Has This Been Tested?
Breaking Changes
Types of changes
Checklist
Additional context