skillAgentSyncService
Workspace API / services/skillAgentSyncService
services/skillAgentSyncService
Functions
syncAgentForSkillVersion()
syncAgentForSkillVersion(
params):Promise<{updated:boolean;agentKey:string; }>
Defined in: services/skillAgentSyncService.ts:166
Sync agent record for a skill version.
Creates or updates the agent and agent_version records in the database to match the skill version's configuration.
TRANSACTION SAFETY: When called without a client, this function wraps all operations in a transaction via withSkillsRLSClient. When called with a client (e.g., from publishSkillVersion), the caller is responsible for transaction management. All database operations use the same client to ensure atomicity.
Parameters
params
client?
any
version
organizationId
string
userId
string
toolMap?
Map<string, ToolDefinition>
Returns
Promise<{ updated: boolean; agentKey: string; }>
if a new agent version was created and VoltAgent reload is needed