You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Example 7: shared $kind sub-discriminator pattern in prompt
The toolResult value appears on two variants (status=ok and
status=error). Pydantic raises 'mapped to multiple choices' when
using Field(discriminator='kind'). Added concrete example showing
how to handle this: nest sub-variants by status, use plain union
for the outer type when any value is duplicated.
0 commit comments