Compare commits
1 Commits
main
...
release/v0
| Author | SHA1 | Date | |
|---|---|---|---|
| 24e8dfdb45 |
@ -715,15 +715,18 @@ func (s *SingleAgentApplicationService) GetAgentOnlineInfo(ctx context.Context,
|
|||||||
AgentID: ptr.Of(si.ObjectID),
|
AgentID: ptr.Of(si.ObjectID),
|
||||||
Command: si.ShortcutCommand,
|
Command: si.ShortcutCommand,
|
||||||
Components: slices.Transform(si.Components, func(i *playground.Components) *bot_common.ShortcutCommandComponent {
|
Components: slices.Transform(si.Components, func(i *playground.Components) *bot_common.ShortcutCommandComponent {
|
||||||
return &bot_common.ShortcutCommandComponent{
|
sc := &bot_common.ShortcutCommandComponent{
|
||||||
Name: i.Name,
|
Name: i.Name,
|
||||||
Description: i.Description,
|
Description: i.Description,
|
||||||
Type: i.InputType.String(),
|
Type: i.InputType.String(),
|
||||||
ToolParameter: ptr.Of(i.Parameter),
|
ToolParameter: ptr.Of(i.Parameter),
|
||||||
Options: i.Options,
|
Options: i.Options,
|
||||||
DefaultValue: ptr.Of(i.DefaultValue.Value),
|
|
||||||
IsHide: i.Hide,
|
IsHide: i.Hide,
|
||||||
}
|
}
|
||||||
|
if i.DefaultValue != nil {
|
||||||
|
sc.DefaultValue = ptr.Of(i.DefaultValue.Value)
|
||||||
|
}
|
||||||
|
return sc
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user