Knowledge bases response models

The 10 response models returned by the knowledge bases resources of the Future AGI Python and TypeScript SDKs, with every field and its type.

The models returned by client.knowledge_bases, client.file_knowledge_bases, importable from fi.platform.models (Python) and @future-agi/sdk/platform/models (TypeScript). Types are language-neutral: string[] is a Python list[str] and a TypeScript string[], and a type named after another model links to that model. Parsing is tolerant by default: a response that leaves a field out or adds one never breaks a call. In Python, Client(strict_responses=True) rejects a response that misses a field the contract requires (see the overview); TypeScript has no strict mode.

Models

ModelFields
KnowledgeBaseItemid: string, name: string, embedding_model: string, chunk_size: integer, organization: string, created_at: string, updated_at: string
LegacyKnowledgeBaseCreateResultdetail: string, kb_id: string, kb_name: string, file_ids: string[]
LegacyKnowledgeBaseFileRowid: string, name: string, file_size: integer, status: string, updated: string, updated_by: string, error: string
LegacyKnowledgeBaseFilesResulttable_data: LegacyKnowledgeBaseFileRow[], last_updated: string, status: string, status_count: integer, total_rows: integer
LegacyKnowledgeBaseListResulttable_data: LegacyKnowledgeBaseOption[]
LegacyKnowledgeBaseMutationResultid: string, name: string, organization: string, status: string, files: string[], updated_at: string, created_by: string, last_error: string
LegacyKnowledgeBaseOptionid: string, name: string
LegacyKnowledgeBaseTableColumnid: string, name: string
LegacyKnowledgeBaseTableResultcolumn_config: LegacyKnowledgeBaseTableColumn[], table_data: LegacyKnowledgeBaseTableRow[], total_rows: integer
LegacyKnowledgeBaseTableRowid: string, name: string, files_uploaded: integer, status: string, error: string, updated_at: string, created_by: string
Was this page helpful?

Questions & Discussion