Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

534 B
Raw Blame
import { ExpressHandlerWithParams } from '../../../../../types';
import { embodimentService } from '../../services';
import httpStatus from 'http-status';

export const getEmbodimentsByAgentId: ExpressHandlerWithParams<{}, {}, { embodiments: any }> = async (req, res) => {
  const { aiAgentId } = req.query;

  const embodiments = await embodimentService.getEmbodiments(aiAgentId, undefined, {
    anonymous: true,
  });

  res.status(httpStatus.OK).json({
    message: 'Embodiments retrieved successfully',
    embodiments,
  });
};