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
{{ message }}
Repository navigation
Commit f320afa
Browse filesBrowse the repository at this point in the historyBrowse files
fix(examples): skip events Temporal signal handlers can't process
Every Temporal tutorial (000-150), the base temporal template used by
`agentex init` and the procurement demo now check an event before acting
on it, and log and return for content they cannot process instead of
raising on it or dereferencing it: anything but TextContent in most
handlers (010 and 050 also skip events the user did not write, and 030
also takes its DataContent queue controls), and only missing content in
the handlers that echo every event. A signal that arrives before
on_task_create waits for the state instead of raising, the procurement
demo drops malformed send_event payloads, and span.output is only set
when tracing returned a span.
Each tutorial gets offline signal-handler tests. Their setup is a
module-scoped fixture in the tutorial's conftest.py that applies only to
that tutorial's tests, so one pytest session can run several tutorials;
150_codex's conftest moves to the same pattern, and 090's project/ gets
the empty __init__.py every other tutorial has.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# 2. Echo back the client's message to show it in the UI. This is not done by default so the agent developer has full control over what is shown to the user.
0 commit comments