Update AgentService.GetAgents.cs
can't not find agent throw exception
This commit is contained in:
parent
a3aabe29aa
commit
ba827378f0
|
|
@ -48,8 +48,8 @@ public partial class AgentService
|
|||
|
||||
if (profile == null)
|
||||
{
|
||||
_logger.LogError($"Can't find agent {id}");
|
||||
return null;
|
||||
//_logger.LogError($"Can't find agent {id}");
|
||||
throw new ArgumentException($"Can't find agent {id}");
|
||||
}
|
||||
|
||||
// Load llm config
|
||||
|
|
|
|||
Loading…
Reference in a new issue