Skip to content

docs(integrations): drop removed 'opinion' fact type from recall_types/fact_types across SDK wrappers#2335

Open
r266-tech wants to merge 1 commit into
vectorize-io:mainfrom
r266-tech:docs-integrations-drop-opinion-facttype
Open

docs(integrations): drop removed 'opinion' fact type from recall_types/fact_types across SDK wrappers#2335
r266-tech wants to merge 1 commit into
vectorize-io:mainfrom
r266-tech:docs-integrations-drop-opinion-facttype

Conversation

@r266-tech

Copy link
Copy Markdown
Contributor

What

opinion was removed as a valid fact type in v0.8.0 (#1917), but ten integration SDK packages still advertise it as a valid recall_types / fact_types value in their public tool docstrings, one inline comment, and two README tables. An agent (or developer) copying these passes a value the recall API now hard-rejects.

Canonical truth on main:

  • hindsight-api-slim/hindsight_api/engine/response_models.py: VALID_RECALL_FACT_TYPES = frozenset(["world", "experience", "observation"])
  • hindsight-api-slim/hindsight_api/api/http.py (recall + reflect): fact_types: list[Literal["world", "experience", "observation"]] | None → Pydantic rejects opinion at request parse (422)
  • hindsight-api-slim/hindsight_api/models.py: CheckConstraint("fact_type IN ('world', 'experience', 'observation')")

Change

Drop opinion from the fact-type enumeration in the integration wrappers — docstrings, one inline comment, and two README tables. Text only, no logic change:

package file(s)
ag2 hindsight_ag2/tools.py
langgraph hindsight_langgraph/tools.py, nodes.py
claude-agent-sdk hindsight_claude_agent_sdk/tools.py
openai-agents hindsight_openai_agents/tools.py, README.md
llamaindex hindsight_llamaindex/tools.py (×2)
autogen hindsight_autogen/tools.py, README.md
google-adk hindsight_google_adk/tools.py
continue hindsight_continue/config.py
haystack hindsight_haystack/tools.py
litellm hindsight_litellm/config.py (×4)

This completes the sweep started by #2198 (litellm docs), #2302 (MCP + quickstart), and #2323 (python-client) — none of which touched hindsight-integrations/*.

Notes

  • hindsight-integrations/* is outside the generate-docs-skill.sh / generate-clients.sh inputs, so verify-generated-files is unaffected; the edits are docstring / comment / markdown only and ruff-clean.
  • Out of scope (flagging for a separate follow-up): hindsight-api-slim/.../response_models.py still references opinion in a Field(description=...) and a "opinion": [] default — those live in the API package, not the integration wrappers.

…s/fact_types

The 'opinion' fact type was removed in v0.8.0 (vectorize-io#1917). The recall API now rejects it:
  - response_models.py: VALID_RECALL_FACT_TYPES = frozenset(['world', 'experience', 'observation'])
  - http.py (recall + reflect): fact_types: list[Literal['world', 'experience', 'observation']] | None
  - models.py: CheckConstraint("fact_type IN ('world', 'experience', 'observation')")

Ten integration SDK packages still advertised 'opinion' as a valid recall_types/fact_types
value in public tool docstrings, one inline comment, and two README tables, so an agent
copying them passes a value the API 422-rejects. Completes the ripple started by vectorize-io#2198 /
vectorize-io#2302 / vectorize-io#2323 across the hindsight-integrations/* tail (text only, no logic change).
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