Skip to content

fix(python-client): expose all configurable fields in update_bank_config()#712

Merged
nicoloboschi merged 1 commit intomainfrom
fix/python-client-bank-config-parity
Mar 26, 2026
Merged

fix(python-client): expose all configurable fields in update_bank_config()#712
nicoloboschi merged 1 commit intomainfrom
fix/python-client-bank-config-parity

Conversation

@nicoloboschi
Copy link
Collaborator

Summary

  • Add 10 missing bank-configurable fields to update_bank_config(): entity_labels, entities_allow_free_form, consolidation_llm_batch_size, consolidation_source_facts_max_tokens, consolidation_source_facts_max_tokens_per_observation, retain_default_strategy, retain_strategies, reflect_source_facts_max_tokens, mcp_enabled_tools, llm_gemini_safety_settings
  • Previously these could only be set via raw PATCH to /v1/default/banks/{id}/config — now the high-level wrapper has full parity with the server's configurable fields
  • All new params are keyword-only with None defaults (fully backwards compatible)

Note: create_bank() is not updated because the server's CreateBankRequest model only accepts a fixed subset of fields. Users should call create_bank() then update_bank_config() for the advanced fields.

Test plan

  • All new params verified via inspect.signature — present with correct types and defaults
  • Backwards compat check: no new required params, all existing call patterns work
  • Lint passes

…fig()

Add 10 missing bank-configurable fields to update_bank_config():
- entity_labels, entities_allow_free_form
- consolidation_llm_batch_size, consolidation_source_facts_max_tokens,
  consolidation_source_facts_max_tokens_per_observation
- retain_default_strategy, retain_strategies
- reflect_source_facts_max_tokens
- mcp_enabled_tools
- llm_gemini_safety_settings

Previously these could only be set via raw PATCH to /config.
All new params are keyword-only with None defaults (backwards compatible).
@nicoloboschi nicoloboschi merged commit 7c18723 into main Mar 26, 2026
35 of 36 checks passed
nuclon pushed a commit to verifi-finance/hindsight that referenced this pull request Mar 26, 2026
…fig() (vectorize-io#712)

Add 10 missing bank-configurable fields to update_bank_config():
- entity_labels, entities_allow_free_form
- consolidation_llm_batch_size, consolidation_source_facts_max_tokens,
  consolidation_source_facts_max_tokens_per_observation
- retain_default_strategy, retain_strategies
- reflect_source_facts_max_tokens
- mcp_enabled_tools
- llm_gemini_safety_settings

Previously these could only be set via raw PATCH to /config.
All new params are keyword-only with None defaults (backwards compatible).
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