11<script >
2+ import { directToAgentPage } from ' $lib/helpers/utils/common' ;
3+
24 /** @type {import('$types').AgentModel} */
35 export let agent;
46 </script >
57
68<div >
79 <div class =" chat-agent-row" >
8- <h3 class =" text-primary fw-bold" >
9- {agent ?.name || ' ' }
10+ <!-- svelte-ignore a11y-click-events-have-key-events -->
11+ <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
12+ <h3
13+ class =" text-primary fw-bold"
14+ on:click ={() => directToAgentPage (agent ?.id )}
15+ >
16+ <span class ="clickable" >{agent ?.name || ' ' }</span >
1017 </h3 >
1118 </div >
1219 <div class =" chat-agent-row" >
1320 <div class =" text-secondary" >
14- {agent ?.description || ' ' }
21+ < span > {agent ?.description || ' ' }</ span >
1522 </div >
1623 </div >
1724 <div class =" chat-agent-row" >
1825 <div >
19- {agent ?.llm_config ?.provider || ' ' }{!! agent ?.llm_config ?.provider ? ' ,' : ' ' } {agent ?.llm_config ?.model || ' ' }
26+ < span > {agent ?.llm_config ?.provider || ' ' }{!! agent ?.llm_config ?.provider ? ' ,' : ' ' } {agent ?.llm_config ?.model || ' ' }</ span >
2027 </div >
2128 </div >
2229 <div class =" chat-agent-row" >
2330 <div >
24- <span >
25- {agent ?.profiles ?.length || 0 } {agent ?.profiles ?.length > 1 ? ' profiles' : ' profile' }{!! agent ?.profiles ? ' , ' : ' ' }
26- {agent ?.functions ?.length || 0 } {agent ?.functions ?.length > 1 ? ' functions' : ' function' }{!! agent ?.functions ? ' , ' : ' ' }
27- {agent ?.templates ?.length || 0 } {agent ?.templates ?.length > 1 ? ' templates' : ' template' }{!! agent ?.templates ? ' , ' : ' ' }
28- {agent ?.utilities ?.length || 0 } {agent ?.utilities ?.length > 1 ? ' utilities' : ' utility' }
29- </span >
31+ {#if !! agent ?.profiles }
32+ <span >{agent ?.profiles ?.length || 0 } {agent ?.profiles ?.length > 1 ? ' profiles' : ' profile' }{' , ' }</span >
33+ {/if }
34+ {#if !! agent ?.functions }
35+ <span >{agent ?.functions ?.length || 0 } {agent ?.functions ?.length > 1 ? ' functions' : ' function' }{' , ' }</span >
36+ {/if }
37+ {#if !! agent ?.utilities }
38+ <span >{agent ?.utilities ?.length || 0 } {agent ?.utilities ?.length > 1 ? ' utilities' : ' utility' }</span >
39+ {/if }
3040 </div >
3141 </div >
3242</div >
0 commit comments