Skip to content

Require interactions for recorded observations#4

Merged
daugaard merged 3 commits into
mainfrom
feature/run-id-runs
May 15, 2026
Merged

Require interactions for recorded observations#4
daugaard merged 3 commits into
mainfrom
feature/run-id-runs

Conversation

@daugaard

@daugaard daugaard commented May 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Interaction as the required recording surface for custom integrations.
  • Emit top-level interaction_id on every SDK ingestion payload.
  • Map LangChain callbacks to a root SessionBat interaction so messages, retrievals, tool calls, and LLM responses from one invocation group together.

Breaking change

This is a breaking SDK API and ingestion payload change: direct recording methods were removed from Session, and users must record through session.interaction(interaction_id=...). That is acceptable because SessionBat has no production data yet, so we do not need legacy compatibility.

Coordination

This is the SDK-side PR for #3. The app PR in daugaard/sessionbat-app should merge first so the server accepts required interaction_id payloads before this SDK change is released or promoted.

Tests

  • uv run pytest
  • uv run ruff check .
  • uv run ruff format --check .

@daugaard daugaard changed the title Require runs for recorded observations Require interactions for recorded observations May 14, 2026
@daugaard

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@daugaard daugaard merged commit 6114568 into main May 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant