mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-06 19:35:44 +02:00
support @mentions in agent examples
This commit is contained in:
parent
6898012ebc
commit
c4f1406444
2 changed files with 5 additions and 1 deletions
|
|
@ -72,7 +72,9 @@ export function convertWorkflowToAgenticAPI(workflow: z.infer<typeof Workflow>):
|
|||
agents: workflow.agents
|
||||
.filter(agent => !agent.disabled)
|
||||
.map(agent => {
|
||||
const { sanitized, entities } = sanitizeTextWithMentions(agent.instructions, workflow);
|
||||
const compiledInstructions = agent.instructions +
|
||||
(agent.examples ? '\n\n# Examples\n' + agent.examples : '');
|
||||
const { sanitized, entities } = sanitizeTextWithMentions(compiledInstructions, workflow);
|
||||
|
||||
const agenticAgent: z.infer<typeof AgenticAPIAgent> = {
|
||||
name: agent.name,
|
||||
|
|
|
|||
|
|
@ -147,6 +147,8 @@ export function AgentConfig({
|
|||
markdown
|
||||
label="Examples"
|
||||
multiline
|
||||
mentions
|
||||
mentionsAtValues={atMentions}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue