BloomERP

BloomAI models

Column and nullable values apply to fields stored on the model's table.

AIAgent

bloomerp.models.agents.ai_agent.AIAgent

Configure an assistant with explicit user/group grants and encrypted credentials.

Database table bloomerp_ai_agent

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
internal_tool_modeCharFieldinternal_tool_modeNoAll includes newly registered tools. Selected with no tools allows none. User permissions still apply.
internal_toolsJSONFieldinternal_toolsNoStable MCP tool names. Unavailable tools cannot run. Used only when access is set to selected tools.
internal_resource_modeCharFieldinternal_resource_modeNoAll includes newly registered resources. Selected with no resources allows none. User permissions still apply.
internal_resourcesJSONFieldinternal_resourcesNoStable MCP resource URIs or URI templates. Unavailable resources cannot be read. Used only for selected resource access.
nameCharFieldnameNoDisplay name shown in the chat agent selector.
providerCharFieldproviderNoRegistered provider used to validate settings and construct the runtime.
model_identifierCharFieldmodel_identifierNoModel identifier accepted by the provider, separate from the display name.
default_instructionsTextFielddefault_instructionsNoBase instructions captured when a new run starts with this agent.
enabledBooleanFieldenabledNoAllow permitted users to select this agent for new runs.
credentials_encryptedJSONFieldcredentials_encryptedNoVersioned encryption metadata and encrypted provider credentials. Configure or rotate values through set_credentials; plaintext is never stored here.
parametersJSONFieldparametersNoProvider-validated model controls. A max_tokens parameter limits output per response, separate from the total run token budget.
modalitiesJSONFieldmodalitiesNoSupported model inputs and outputs. Defaults to text in both directions.
base_urlURLFieldbase_urlYesOptional provider API endpoint. Leave blank to use the provider default; exclude credentials and query parameters.
request_timeout_secondsPositiveIntegerFieldrequest_timeout_secondsNoTimeout for an individual provider request, separate from the total run duration.
max_tokensPositiveIntegerFieldmax_tokensYesMaximum total input and output tokens across all attempts of one run. Leave blank for no run token limit.
max_tool_callsPositiveIntegerFieldmax_tool_callsYesMaximum cumulative tool calls across all attempts of one run. Leave blank for no tool-call limit.
max_duration_secondsPositiveIntegerFieldmax_duration_secondsYesMaximum cumulative execution time across all attempts of one run. Leave blank for no duration limit.
mcp_integrationsManyToManyField to bloomerp.MCPIntegration——Tools from enabled external integrations are available to this agent. Shared integrations use their shared connection; personal integrations require the acting user's existing connection. Missing or expired connections require reconnecting.
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIAgentAccess

bloomerp.models.agents.ai_agent_access.AIAgentAccess

Grant agent use without granting configuration or credential access.

Database table bloomerp_ai_agent_access

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
nameCharFieldnameNo—
all_staff_usersBooleanFieldall_staff_usersNoAllow all active staff users to use this agent.
all_authenticated_usersBooleanFieldall_authenticated_usersNoAllow all active authenticated users to use this agent.
modelForeignKey to bloomerp.AIAgentmodel_idNoAgent that these users and groups may use.
usersManyToManyField to bloomerp.User——Users who may use this agent.
groupsManyToManyField to auth.Group——Members of these groups may use this agent.
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIApproval

bloomerp.models.agents.ai_approval.AIApproval

Internal model

Record who may approve a proposal and who actually decided it.

Database table bloomerp_ai_approval

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
tool_callForeignKey to bloomerp.AIToolCalltool_call_idNo—
required_approverForeignKey to bloomerp.Userrequired_approver_idYes—
decided_byForeignKey to bloomerp.Userdecided_by_idYes—
requirement_snapshotAgentJSONFieldrequirement_snapshotNo—
proposal_snapshotAgentJSONFieldproposal_snapshotNo—
proposal_hashCharFieldproposal_hashNo—
statusCharFieldstatusNo—
reasonTextFieldreasonNo—
expires_atDateTimeFieldexpires_atYes—
decided_atDateTimeFielddecided_atYes—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIArtifact

bloomerp.models.agents.ai_artifact.AIArtifact

Internal model

Store one immutable file, analytics configuration, or form-patch revision.

Database table bloomerp_ai_artifact

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
conversationForeignKey to bloomerp.AIConversationconversation_idNo—
created_by_messageForeignKey to bloomerp.AIMessagecreated_by_message_idYes—
created_by_tool_callForeignKey to bloomerp.AIToolCallcreated_by_tool_call_idYes—
previous_revisionForeignKey to bloomerp.AIArtifactprevious_revision_idYes—
fileForeignKey to bloomerp.FileNodefile_idYes—
kindCharFieldkindNo—
schema_versionPositiveIntegerFieldschema_versionNo—
payloadAgentJSONFieldpayloadNo—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIConversation

bloomerp.models.agents.ai_conversation.AIConversation

Internal model

Own a private transcript and its durable executions and artifacts.

Database table bloomerp_ai_conversation

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
ownerForeignKey to bloomerp.Userowner_idNo—
selected_agentForeignKey to bloomerp.AIAgentselected_agent_idYes—
approval_rulesJSONFieldapproval_rulesNoConversation approval policy for new tool calls. Can be changed during a conversation; pending approvals still require a decision.
titleCharFieldtitleNo—
statusCharFieldstatusNo—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIConversationMemory

bloomerp.models.agents.ai_conversation_memory.AIConversationMemory

Internal model

Store one versioned fact per conversation, tool and endpoint-defined key.

Database table bloomerp_ai_conversation_memory

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
conversationForeignKey to bloomerp.AIConversationconversation_idNo—
tool_identifierCharFieldtool_identifierNo—
keyCharFieldkeyNo—
payloadAgentJSONFieldpayloadNo—
versionPositiveIntegerFieldversionNo—
source_tool_callForeignKey to bloomerp.AIToolCallsource_tool_call_idNo—
expires_atDateTimeFieldexpires_atYes—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIMessage

bloomerp.models.agents.ai_message.AIMessage

Internal model

Store one ordered transcript entry, optionally produced by a run.

Database table bloomerp_ai_message

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
conversationForeignKey to bloomerp.AIConversationconversation_idNo—
runForeignKey to bloomerp.AIRunrun_idYes—
sequencePositiveBigIntegerFieldsequenceNo—
roleCharFieldroleNo—
content_blocksAgentJSONFieldcontent_blocksNo—
statusCharFieldstatusNo—
schema_versionPositiveIntegerFieldschema_versionNo—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIMessageArtifact

bloomerp.models.agents.ai_message_artifact.AIMessageArtifact

Internal model

Attach a particular immutable artifact revision to a message position.

Database table bloomerp_ai_message_artifact

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
messageForeignKey to bloomerp.AIMessagemessage_idNo—
artifactForeignKey to bloomerp.AIArtifactartifact_idNo—
positionPositiveIntegerFieldpositionNo—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIRun

bloomerp.models.agents.ai_run.AIRun

Internal model

Persist one task across inline or worker attempts, waits, and retries.

Database table bloomerp_ai_run

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
conversationForeignKey to bloomerp.AIConversationconversation_idNo—
trigger_messageForeignKey to bloomerp.AIMessagetrigger_message_idYes—
initiated_byForeignKey to bloomerp.Userinitiated_by_idNo—
trigger_typeCharFieldtrigger_typeNo—
trigger_contextAgentJSONFieldtrigger_contextNo—
agent_keyCharFieldagent_keyNo—
agent_versionCharFieldagent_versionNo—
config_snapshotAgentJSONFieldconfig_snapshotNo—
statusCharFieldstatusNo—
origin_browser_contextAgentJSONFieldorigin_browser_contextYes—
checkpointAgentJSONFieldcheckpointYes—
checkpoint_runtimeCharFieldcheckpoint_runtimeNo—
checkpoint_versionPositiveIntegerFieldcheckpoint_versionNo—
consumed_message_sequencePositiveBigIntegerFieldconsumed_message_sequenceNo—
wait_conditionAgentJSONFieldwait_conditionYes—
resume_afterDateTimeFieldresume_afterYes—
cancel_requested_atDateTimeFieldcancel_requested_atYes—
budgetsAgentJSONFieldbudgetsNo—
usageAgentJSONFieldusageNo—
errorAgentJSONFielderrorYes—
finished_atDateTimeFieldfinished_atYes—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIRunAttempt

bloomerp.models.agents.ai_run_attempt.AIRunAttempt

Internal model

Record a leased inline or worker execution, ending on pause or termination.

Database table bloomerp_ai_run_attempt

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
runForeignKey to bloomerp.AIRunrun_idNo—
numberPositiveIntegerFieldnumberNo—
execution_modeCharFieldexecution_modeNo—
executor_idCharFieldexecutor_idNo—
statusCharFieldstatusNo—
lease_tokenUUIDFieldlease_tokenNo—
lease_expires_atDateTimeFieldlease_expires_atNo—
heartbeat_atDateTimeFieldheartbeat_atNo—
started_atDateTimeFieldstarted_atNo—
finished_atDateTimeFieldfinished_atYes—
usageAgentJSONFieldusageNo—
errorAgentJSONFielderrorYes—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIRunEvent

bloomerp.models.agents.ai_run_event.AIRunEvent

Internal model

Append an event to a run, optionally emitted by a particular attempt.

Database table bloomerp_ai_run_event

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
runForeignKey to bloomerp.AIRunrun_idNo—
attemptForeignKey to bloomerp.AIRunAttemptattempt_idYes—
sequencePositiveBigIntegerFieldsequenceNo—
event_typeCharFieldevent_typeNo—
schema_versionPositiveIntegerFieldschema_versionNo—
payloadAgentJSONFieldpayloadNo—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

AIToolCall

bloomerp.models.agents.ai_tool_call.AIToolCall

Internal model

Track a logical tool action independently of executor retries.

Database table bloomerp_ai_tool_call

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
runForeignKey to bloomerp.AIRunrun_idNo—
first_dispatch_attemptForeignKey to bloomerp.AIRunAttemptfirst_dispatch_attempt_idYes—
tool_identifierCharFieldtool_identifierNo—
tool_versionCharFieldtool_versionNo—
tool_titleCharFieldtool_titleNo—
provider_call_idCharFieldprovider_call_idNo—
idempotency_keyUUIDFieldidempotency_keyNo—
statusCharFieldstatusNo—
argumentsAgentJSONFieldargumentsNo—
proposal_hashCharFieldproposal_hashNo—
resultAgentJSONFieldresultYes—
errorAgentJSONFielderrorYes—
started_atDateTimeFieldstarted_atYes—
finished_atDateTimeFieldfinished_atYes—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

MCPConnection

bloomerp.models.agents.mcp_connection.MCPConnection

Internal model

Associate private credentials with a shared integration or one user.

Database table bloomerp_mcp_connection

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
integrationForeignKey to bloomerp.MCPIntegrationintegration_idNo—
userForeignKey to bloomerp.Useruser_idYes—
credentials_encryptedJSONFieldcredentials_encryptedNo—
statusCharFieldstatusNo—
last_checked_atDateTimeFieldlast_checked_atYes—
expires_atDateTimeFieldexpires_atYes—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

MCPIntegration

bloomerp.models.agents.mcp_server.MCPIntegration

External MCP server configuration independent of an account.

Describe an external server independently of its account credentials.

Database table bloomerp_mcp_integration

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
nameCharFieldnameNo—
endpoint_urlURLFieldendpoint_urlNo—
enabledBooleanFieldenabledNo—
connection_modeCharFieldconnection_modeNo—
authentication_typeCharFieldauthentication_typeNo—
oauth_client_idCharFieldoauth_client_idNoOptional pre-registered OAuth client ID. Leave blank for automatic client registration.
oauth_scopesCharFieldoauth_scopesNoOptional space-separated OAuth scopes; a server challenge takes precedence.
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———