Skip to content

Commit a59b6ba

Browse files
committed
fix(souls): let agentStableIdOf take any agent options
Signed-off-by: jddunn <[email protected]>
1 parent 542be39 commit a59b6ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/api/runtime/gmiPersona.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function derivedSoulPersonaId(soul: Pick<LoadedSoul, 'frontmatter' | 'sou
7979
* The agent's stable id: with a soul, the soul's id rule (`soulAgentIdOf`); with none, a named agent's id. Undefined
8080
* for an agent that has neither.
8181
*/
82-
export function agentStableIdOf(opts: Pick<AgentOptions, 'name'>, soul: LoadedSoul | null | undefined): string | undefined {
82+
export function agentStableIdOf(opts: Partial<AgentOptions>, soul: LoadedSoul | null | undefined): string | undefined {
8383
return soul ? soulAgentIdOf(soul.frontmatter, opts.name) : stablePersonaIdOf(opts);
8484
}
8585

0 commit comments

Comments
 (0)