fleet-memory/hindsight-clients/go
Nicolò Boschi 30a319a6ab
feat: bank template import/export with Template Hub (#819)
* feat(api): add bank template import/export endpoints

Add POST /banks/{bank_id}/import and GET /banks/{bank_id}/export
endpoints for declarative bank setup via JSON manifests.

A template manifest (version 1) can include bank config overrides
and mental model definitions. Import creates or updates mental
models matched by id, applies config as per-bank overrides, and
returns async operation IDs for content generation.

Export dumps a bank's explicit overrides and mental models as a
manifest that can be re-imported into another bank.

Includes control plane UI: bank creation dialog now accepts an
optional template JSON to pre-configure the bank on creation.

* docs: add Template Gallery page and bank templates reference

- Template Gallery (/templates) with search, category filter, manifest
  preview modal with copy-to-clipboard
- 5 starter templates: Customer Support, Research Assistant, Personal
  Journal, Code Review Buddy, Meeting Notes
- Bank Templates API reference doc (developer/api/bank-templates)
- Sidebar entry under API section

* docs: add Template Gallery links to navbar and sidebar

- Top navbar: "Templates" link between Integrations and Changelog
- Sidebar: "Template Gallery" in Resources section

* fix(docs): remove emoji icons, autofocus search, fix placeholder in template gallery

* docs: rename to Bank Templates, move to Resources sidebar only

* docs: add Bank Templates to Resources navbar dropdown

* feat(api): add directives to bank template import/export

- Add BankTemplateDirective model with name, content, priority, is_active, tags
- Import creates/updates directives matched by name
- Export includes all directives (active and inactive)
- Validation: duplicate names rejected, empty name/content caught
- Tests: 24 tests covering directives create/update, existing vs new
  bank import, validation, export with directives, full round-trip

* docs: add directives to bank templates docs and sample templates

* feat(api): add JSON Schema endpoint for bank template validation

- GET /v1/default/bank-template-schema returns the JSON Schema
  auto-generated from the Pydantic BankTemplateManifest model
- Static schema file at docs/static/bank-template-schema.json
- Docs updated with schema endpoint, static file link, and
  validation examples (Python jsonschema, Node ajv-cli)

* feat(api): live schema validation on import, fix schema endpoint path

- Move schema endpoint to /v1/bank-template-schema (system-level, not per-bank)
- Import endpoint now accepts raw JSON and validates with Pydantic manually,
  returning clean 400 errors instead of raw 422s for all validation failures
- All validation (schema + semantic) returns consistent 400 with detailed messages

* docs: add interactive JSON Schema viewer to Bank Templates page

Renders the Pydantic-generated schema as a collapsible property tree
with types, required badges, defaults, and descriptions. The schema
is imported from the static bank-template-schema.json file.

* ui: add template toggle switch and browse link to bank creation dialog

- Replace always-visible textarea with a switch toggle ("Import from template")
- Textarea only shows when switch is on, keeping the dialog clean by default
- Add "Browse templates" link pointing to hindsight.vectorize.io/templates
- Reset template state when switch is toggled off or dialog is cancelled

* ui: add empty state with Add Document CTA to data view

When a bank has 0 memories, the data view (all tabs: constellation,
graph, table, timeline) shows a centered empty state with a CTA
button that opens the Add Document dialog.

* docs: replace templates with Conversation and Coding Agent

Remove generic placeholder templates. Add two practical templates
based on actual integration patterns:

- Conversation: for chat agents (LiteLLM, LangGraph, Pydantic AI,
  Vercel AI SDK). Tracks user preferences, open threads.
- Coding Agent: for Claude Code/Codex. Tracks technical decisions,
  project context, developer preferences. High literalism.

* docs: rename gallery to Bank Templates Hub, keep API doc as Bank Templates

* docs: register layout-template and file-json icons in navbar and sidebar

* docs: register layout-template icon in DefaultNavbarItem for dropdown items

* docs: show integration icons on template cards

Templates now have an optional `integrations` field referencing
integration IDs from integrations.json. Icons are resolved at render
time and shown in the card header next to the category badge.

* docs: add Personal Assistant template for OpenClaw, Hermes, NemoClaw

* feat: add Export Template to bank actions + map all integrations to templates

- Add "Export Template" to the bank Actions dropdown — exports config,
  mental models, and directives as JSON, copies to clipboard
- Add export API route and client method
- Map remaining integrations to templates: CrewAI, AG2, Agno, Strands,
  LlamaIndex, local-mcp, skills → Conversation; hindclaw → Personal Assistant

* feat: add --template flag to LoCoMo benchmark + remove schema from Hub

- LoCoMo benchmark accepts --template <path> to apply a bank template
  manifest (config, mental models, directives) before ingestion
- Template is applied per-bank in both single-phase and two-phase modes
- BenchmarkRunner.apply_template() reuses the same engine methods as
  the /import API endpoint
- Remove Manifest Schema section from Bank Templates Hub page
  (schema stays in the API reference doc)

* refactor: remove description field from bank template manifest

* docs: remove tags, fact_types, and directives from starter templates

* docs: remove reflect_mission and disposition fields from starter templates

* build: validate template manifests against JSON Schema during docs build

* cleanup: remove unused JsonSchemaViewer component

* docs: remove retain_extraction_mode from starter templates

* ui: enable word wrap in template manifest preview

* docs: add link to Bank Templates reference doc from Hub page

* docs: convert bank templates doc to mdx with multi-language code snippets

- Convert bank-templates.md to .mdx with Tabs/CodeSnippet components
- Add example files: bank-templates.py, .mjs, .sh, .go with doc markers
- Examples cover import, dry-run, export, round-trip, and schema
- Regenerate OpenAPI spec and all client SDKs (Python, TS, Rust, Go)

* fix: migration revision collision + use typed models in benchmark template

- Rename merge migration d6e7f8a9b0c1 -> d6e7f8a9b0c2 to resolve
  revision ID collision with case_insensitive_entities_trgm_index
- Update a4b5c6d7e8f9 down_revision to point to the renamed migration
- Fix f-string lint in case_insensitive migration
- BenchmarkRunner.apply_template() now validates manifest through
  BankTemplateManifest Pydantic model instead of raw dict access
- Remove redundant inline imports (json, Path already at module top)

* fix(docs): add missing Go tab to dry-run code snippet

* ci: retrigger

* fix: sync skills openapi.json + fix bankId null type error in export

- Copy updated openapi.json to skills/hindsight-docs/references/
- Add null guard for bankId in Export Template onClick handler

* fix: sync generated files (memory_engine formatting, docs skill references)

* cleanup: remove obsolete migration collision workaround
2026-04-02 12:21:53 +02:00
..
api feat: bank template import/export with Template Hub (#819) 2026-04-02 12:21:53 +02:00
test fix(go-client): use monorepo-compatible module path (#392) 2026-02-18 10:35:13 +01:00
.gitignore feat: use official go generator for Go client (#377) 2026-02-16 14:04:12 +01:00
api_audit.go Release v0.4.22 2026-03-31 18:14:59 +02:00
api_bank_templates.go feat: bank template import/export with Template Hub (#819) 2026-04-02 12:21:53 +02:00
api_banks.go Release v0.4.22 2026-03-31 18:14:59 +02:00
api_directives.go Release v0.4.22 2026-03-31 18:14:59 +02:00
api_documents.go Release v0.4.22 2026-03-31 18:14:59 +02:00
api_entities.go Release v0.4.22 2026-03-31 18:14:59 +02:00
api_files.go Release v0.4.22 2026-03-31 18:14:59 +02:00
api_memory.go Release v0.4.22 2026-03-31 18:14:59 +02:00
api_mental_models.go feat: add detail parameter to list/get mental models (#846) 2026-04-02 11:52:45 +02:00
api_monitoring.go Release v0.4.22 2026-03-31 18:14:59 +02:00
api_operations.go Release v0.4.22 2026-03-31 18:14:59 +02:00
api_webhooks.go Release v0.4.22 2026-03-31 18:14:59 +02:00
client.go feat: bank template import/export with Template Hub (#819) 2026-04-02 12:21:53 +02:00
configuration.go Release v0.4.22 2026-03-31 18:14:59 +02:00
go.mod fix(go-client): use monorepo-compatible module path (#392) 2026-02-18 10:35:13 +01:00
go.sum feat: use official go generator for Go client (#377) 2026-02-16 14:04:12 +01:00
hindsight_client.go fix: clients don't respect timeout setting (#400) 2026-02-19 10:47:47 +01:00
integration_test.go feat: entity labels — optional, free_values, multi_value, UI polish (#450) 2026-03-02 13:05:25 +01:00
model_add_background_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_async_operation_submit_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_audit_log_entry.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_audit_log_list_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_audit_log_stats_bucket.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_audit_log_stats_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_background_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_bank_config_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_bank_config_update.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_bank_list_item.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_bank_list_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_bank_profile_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_bank_stats_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_bank_template_config.go feat: bank template import/export with Template Hub (#819) 2026-04-02 12:21:53 +02:00
model_bank_template_directive.go feat: bank template import/export with Template Hub (#819) 2026-04-02 12:21:53 +02:00
model_bank_template_import_response.go feat: bank template import/export with Template Hub (#819) 2026-04-02 12:21:53 +02:00
model_bank_template_manifest.go feat: bank template import/export with Template Hub (#819) 2026-04-02 12:21:53 +02:00
model_bank_template_mental_model.go feat: bank template import/export with Template Hub (#819) 2026-04-02 12:21:53 +02:00
model_budget.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_cancel_operation_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_child_operation_status.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_chunk_data.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_chunk_include_options.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_chunk_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_clear_memory_observations_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_consolidation_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_create_bank_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_create_directive_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_create_mental_model_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_create_mental_model_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_create_webhook_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_delete_document_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_delete_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_directive_list_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_directive_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_disposition_traits.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_document_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_entity_detail_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_entity_include_options.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_entity_input.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_entity_list_item.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_entity_list_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_entity_observation_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_entity_state_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_features_info.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_file_retain_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_graph_data_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_http_validation_error.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_include_options.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_list_documents_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_list_memory_units_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_list_tags_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_memory_item.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_mental_model_list_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_mental_model_response.go feat: add detail parameter to list/get mental models (#846) 2026-04-02 11:52:45 +02:00
model_mental_model_trigger_input.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_mental_model_trigger_input_tag_groups_inner.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_mental_model_trigger_output.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_mental_model_trigger_output_tag_groups_inner.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_not.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_not_1.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_observation_scopes.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_operation_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_operation_status_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_operations_list_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_recall_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_recall_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_recall_result.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_recover_consolidation_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_based_on.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_directive.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_fact.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_include_options.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_llm_call.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_mental_model.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_tool_call.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_reflect_trace.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_retain_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_retain_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_retry_operation_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_source_facts_include_options.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_tag_group_and_input.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_tag_group_and_output.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_tag_group_leaf.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_tag_group_not_input.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_tag_group_not_output.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_tag_group_or_input.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_tag_group_or_output.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_tag_item.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_timestamp.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_token_usage.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_tool_calls_include_options.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_update_directive_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_update_disposition_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_update_document_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_update_document_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_update_mental_model_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_update_webhook_request.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_validation_error.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_validation_error_loc_inner.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_version_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_webhook_delivery_list_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_webhook_delivery_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_webhook_http_config.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_webhook_list_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
model_webhook_response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
null_test.go feat: use official go generator for Go client (#377) 2026-02-16 14:04:12 +01:00
openapi-generator-cli.jar feat: use official go generator for Go client (#377) 2026-02-16 14:04:12 +01:00
openapi-generator-config.yaml fix(go-client): use monorepo-compatible module path (#392) 2026-02-18 10:35:13 +01:00
README.md fix(go-client): use monorepo-compatible module path (#392) 2026-02-18 10:35:13 +01:00
response.go Release v0.4.22 2026-03-31 18:14:59 +02:00
trace_test.go feat: use official go generator for Go client (#377) 2026-02-16 14:04:12 +01:00
utils.go Release v0.4.22 2026-03-31 18:14:59 +02:00

Go API client for hindsight

HTTP API for Hindsight

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.4.11
  • Package version: 1.0.0
  • Generator version: 7.10.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import hindsight "github.com/vectorize-io/hindsight/hindsight-clients/go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value hindsight.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), hindsight.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value hindsight.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), hindsight.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using hindsight.ContextOperationServerIndices and hindsight.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), hindsight.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), hindsight.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
BanksAPI AddBankBackground Post /v1/default/banks/{bank_id}/background Add/merge memory bank background (deprecated)
BanksAPI ClearObservations Delete /v1/default/banks/{bank_id}/observations Clear all observations
BanksAPI CreateOrUpdateBank Put /v1/default/banks/{bank_id} Create or update memory bank
BanksAPI DeleteBank Delete /v1/default/banks/{bank_id} Delete memory bank
BanksAPI GetAgentStats Get /v1/default/banks/{bank_id}/stats Get statistics for memory bank
BanksAPI GetBankConfig Get /v1/default/banks/{bank_id}/config Get bank configuration
BanksAPI GetBankProfile Get /v1/default/banks/{bank_id}/profile Get memory bank profile
BanksAPI ListBanks Get /v1/default/banks List all memory banks
BanksAPI ResetBankConfig Delete /v1/default/banks/{bank_id}/config Reset bank configuration
BanksAPI TriggerConsolidation Post /v1/default/banks/{bank_id}/consolidate Trigger consolidation
BanksAPI UpdateBank Patch /v1/default/banks/{bank_id} Partial update memory bank
BanksAPI UpdateBankConfig Patch /v1/default/banks/{bank_id}/config Update bank configuration
BanksAPI UpdateBankDisposition Put /v1/default/banks/{bank_id}/profile Update memory bank disposition
DirectivesAPI CreateDirective Post /v1/default/banks/{bank_id}/directives Create directive
DirectivesAPI DeleteDirective Delete /v1/default/banks/{bank_id}/directives/{directive_id} Delete directive
DirectivesAPI GetDirective Get /v1/default/banks/{bank_id}/directives/{directive_id} Get directive
DirectivesAPI ListDirectives Get /v1/default/banks/{bank_id}/directives List directives
DirectivesAPI UpdateDirective Patch /v1/default/banks/{bank_id}/directives/{directive_id} Update directive
DocumentsAPI DeleteDocument Delete /v1/default/banks/{bank_id}/documents/{document_id} Delete a document
DocumentsAPI GetChunk Get /v1/default/chunks/{chunk_id} Get chunk details
DocumentsAPI GetDocument Get /v1/default/banks/{bank_id}/documents/{document_id} Get document details
DocumentsAPI ListDocuments Get /v1/default/banks/{bank_id}/documents List documents
EntitiesAPI GetEntity Get /v1/default/banks/{bank_id}/entities/{entity_id} Get entity details
EntitiesAPI ListEntities Get /v1/default/banks/{bank_id}/entities List entities
EntitiesAPI RegenerateEntityObservations Post /v1/default/banks/{bank_id}/entities/{entity_id}/regenerate Regenerate entity observations (deprecated)
MemoryAPI ClearBankMemories Delete /v1/default/banks/{bank_id}/memories Clear memory bank memories
MemoryAPI GetGraph Get /v1/default/banks/{bank_id}/graph Get memory graph data
MemoryAPI GetMemory Get /v1/default/banks/{bank_id}/memories/{memory_id} Get memory unit
MemoryAPI ListMemories Get /v1/default/banks/{bank_id}/memories/list List memory units
MemoryAPI ListTags Get /v1/default/banks/{bank_id}/tags List tags
MemoryAPI RecallMemories Post /v1/default/banks/{bank_id}/memories/recall Recall memory
MemoryAPI Reflect Post /v1/default/banks/{bank_id}/reflect Reflect and generate answer
MemoryAPI RetainMemories Post /v1/default/banks/{bank_id}/memories Retain memories
MentalModelsAPI CreateMentalModel Post /v1/default/banks/{bank_id}/mental-models Create mental model
MentalModelsAPI DeleteMentalModel Delete /v1/default/banks/{bank_id}/mental-models/{mental_model_id} Delete mental model
MentalModelsAPI GetMentalModel Get /v1/default/banks/{bank_id}/mental-models/{mental_model_id} Get mental model
MentalModelsAPI ListMentalModels Get /v1/default/banks/{bank_id}/mental-models List mental models
MentalModelsAPI RefreshMentalModel Post /v1/default/banks/{bank_id}/mental-models/{mental_model_id}/refresh Refresh mental model
MentalModelsAPI UpdateMentalModel Patch /v1/default/banks/{bank_id}/mental-models/{mental_model_id} Update mental model
MonitoringAPI GetVersion Get /version Get API version and feature flags
MonitoringAPI HealthEndpointHealthGet Get /health Health check endpoint
MonitoringAPI MetricsEndpointMetricsGet Get /metrics Prometheus metrics endpoint
OperationsAPI CancelOperation Delete /v1/default/banks/{bank_id}/operations/{operation_id} Cancel a pending async operation
OperationsAPI GetOperationStatus Get /v1/default/banks/{bank_id}/operations/{operation_id} Get operation status
OperationsAPI ListOperations Get /v1/default/banks/{bank_id}/operations List async operations

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author