CopyAndBuildAkb

The CopyAndBuildAkb action copies AKB (Agent Knowledge Base) topics from one persona to another. This is useful for transferring knowledge between agents, such as copying knowledge from a setup agent to a conversation agent.

CopyAndBuildAkb(
    sourcePersonaId: str,
    targetPersonaId: str
)

Where:

  • sourcePersonaId: The UUID of the persona from which to copy AKB topics.
  • targetPersonaId: The UUID of the persona to which AKB topics will be copied.

Example

{{Set(name="source_id", value=GetAgent(idn="GeneralManagerAgent", field="personaId"))}}
{{Set(name="target_id", value=GetAgent(idn="ConvoAgent", field="personaId"))}}

{{CopyAndBuildAkb(sourcePersonaId=source_id, targetPersonaId=target_id)}}

The above code snippet copies all AKB topics from the GeneralManagerAgent's persona to the ConvoAgent's persona.