Stub

Stub logo

Stub

Configuration

Stub source connector for testing purposes.

Generates deterministic test entities with configurable distribution and speed. No external API calls are made - all content is generated locally.

Authentication

This connector uses a custom authentication configuration.

Authentication Configuration

Stub source authentication credentials schema.

The stub source doesn’t require real authentication. This config is a placeholder for consistency with other sources.

stub_key
strDefaults to stub

Placeholder field (any value works, stub source doesn’t require real authentication)

Configuration Options

The following configuration options are available for this connector:

Configuration Parameters

Stub source configuration schema for testing.

Configures the generation of deterministic test entities with various content sizes and types. Uses weighted distribution for entity type selection.

entity_count
intDefaults to 10

Total number of entities to generate

seed
intDefaults to 42

Random seed for reproducible content generation

generation_delay_ms
int0

Delay between entity generations in milliseconds (0 for no delay)

small_entity_weight
intDefaults to 30

Weight for small entities (~100-200 chars, like comments)

medium_entity_weight
intDefaults to 30

Weight for medium entities (~500-1000 chars, like tasks)

large_entity_weight
intDefaults to 10

Weight for large entities (~3000-5000 chars, like articles)

small_file_weight
intDefaults to 15

Weight for small file entities (~1-5 KB)

large_file_weight
intDefaults to 5

Weight for large file entities (~50-100 KB)

code_file_weight
intDefaults to 10

Weight for code file entities (~2-10 KB)

Data Models

The following data models are available for this connector:

Container entity for organizing stub entities.

Acts as a parent breadcrumb for all generated stub entities, similar to how projects/workspaces work in real sources.

FieldTypeDescription
container_idstrUnique identifier for the stub container
container_namestrName of the stub container
descriptionstrDescription of the stub container
created_atOptional[datetime]When the container was created
seedintRandom seed used for content generation
entity_countintTotal number of entities in this container

Small stub entity (~100-200 chars).

Represents: Comments, notes, short messages.

FieldTypeDescription
stub_idstrUnique identifier for the stub entity
titlestrTitle of the stub entity
contentstrShort content text (~100-200 chars)
authorstrAuthor of the content
tagslist[str]Tags associated with this entity
created_atOptional[datetime]When the entity was created
modified_atOptional[datetime]When the entity was last modified
sequence_numberintSequence number for ordering

Medium stub entity (~500-1000 chars).

Represents: Tasks, pages, documents.

FieldTypeDescription
stub_idstrUnique identifier for the stub entity
titlestrTitle of the stub entity
descriptionstrDetailed description (~500-1000 chars)
statusstrStatus of the entity
prioritystrPriority level
assigneestrPerson assigned to this entity
tagslist[str]Tags associated with this entity
notesstrAdditional notes
created_atOptional[datetime]When the entity was created
modified_atOptional[datetime]When the entity was last modified
due_dateOptional[datetime]Due date for the entity
sequence_numberintSequence number for ordering

Large stub entity (~3000-5000 chars).

Represents: Long articles, wikis, rich content.

FieldTypeDescription
stub_idstrUnique identifier for the stub entity
titlestrTitle of the stub entity
summarystrBrief summary of the content
contentstrFull content text (~3000-5000 chars)
authorstrAuthor of the content
categorystrCategory of the content
tagslist[str]Tags associated with this entity
sectionslist[str]Section headings in the content
referenceslist[str]References cited in the content
created_atOptional[datetime]When the entity was created
modified_atOptional[datetime]When the entity was last modified
published_atOptional[datetime]When the content was published
word_countintWord count of the content
sequence_numberintSequence number for ordering

Small stub file entity (~1-5 KB).

Represents: Small text files, CSVs, config files.

FieldTypeDescription
stub_idstrUnique identifier for the stub file
file_namestrName of the file
descriptionstrDescription of the file contents
file_extensionstrFile extension
created_atOptional[datetime]When the file was created
modified_atOptional[datetime]When the file was last modified
sequence_numberintSequence number for ordering

Large stub file entity (~50-100 KB).

Represents: PDFs, larger documents, reports.

FieldTypeDescription
stub_idstrUnique identifier for the stub file
file_namestrName of the file
descriptionstrDescription of the file contents
file_extensionstrFile extension
summarystrSummary of the document
authorstrAuthor of the document
categorystrCategory of the document
page_countintEstimated page count
created_atOptional[datetime]When the file was created
modified_atOptional[datetime]When the file was last modified
sequence_numberintSequence number for ordering

Code stub file entity (~2-10 KB).

Represents: Python, JavaScript, and other source code files.

FieldTypeDescription
stub_idstrUnique identifier for the stub code file
file_namestrName of the code file
descriptionstrDescription of what the code does
functionslist[str]Function names defined in the file
classeslist[str]Class names defined in the file
importslist[str]Import statements in the file
created_atOptional[datetime]When the file was created
modified_atOptional[datetime]When the file was last modified
sequence_numberintSequence number for ordering