You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.4 KiB
Python
47 lines
1.4 KiB
Python
from typing import Any
|
|
|
|
from app.services.domain.credit_service import validar_cliente_venda
|
|
from app.services.domain.inventory_service import avaliar_veiculo_troca, consultar_estoque
|
|
from app.services.domain.order_service import cancelar_pedido, listar_pedidos, realizar_pedido
|
|
from app.services.domain.rental_service import (
|
|
abrir_locacao_aluguel,
|
|
consultar_frota_aluguel,
|
|
registrar_devolucao_aluguel,
|
|
registrar_multa_aluguel,
|
|
registrar_pagamento_aluguel,
|
|
)
|
|
from app.services.domain.review_service import (
|
|
agendar_revisao,
|
|
cancelar_agendamento_revisao,
|
|
editar_data_revisao,
|
|
listar_agendamentos_revisao,
|
|
parse_review_datetime,
|
|
)
|
|
|
|
|
|
# Camada de adaptacao das tools: mantem a API esperada pelo registry
|
|
# enquanto a regra de negocio fica em servicos de dominio separados.
|
|
# Ele praticamente só expõe as funções esperadas pelo ToolRegistry
|
|
def _parse_data_hora_revisao(value: str):
|
|
return parse_review_datetime(value)
|
|
|
|
|
|
__all__ = [
|
|
"_parse_data_hora_revisao",
|
|
"agendar_revisao",
|
|
"avaliar_veiculo_troca",
|
|
"cancelar_agendamento_revisao",
|
|
"cancelar_pedido",
|
|
"consultar_estoque",
|
|
"consultar_frota_aluguel",
|
|
"editar_data_revisao",
|
|
"listar_agendamentos_revisao",
|
|
"listar_pedidos",
|
|
"abrir_locacao_aluguel",
|
|
"registrar_devolucao_aluguel",
|
|
"registrar_multa_aluguel",
|
|
"registrar_pagamento_aluguel",
|
|
"realizar_pedido",
|
|
"validar_cliente_venda",
|
|
]
|