refactor: type improvements that doesn't modify functionality (#17970)
This commit is contained in:
parent
53efb2bad5
commit
4c99e9dc73
39 changed files with 69 additions and 63 deletions
|
|
@ -36,7 +36,7 @@ const AgentLogDetail: FC<AgentLogDetailProps> = ({
|
|||
const [list, setList] = useState<AgentIteration[]>([])
|
||||
|
||||
const tools = useMemo(() => {
|
||||
const res = uniq(flatten(runDetail?.iterations.map((iteration: any) => {
|
||||
const res = uniq(flatten(runDetail?.iterations.map((iteration) => {
|
||||
return iteration.tool_calls.map((tool: any) => tool.tool_name).filter(Boolean)
|
||||
})).filter(Boolean))
|
||||
return res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue