I have scenario like this.
- AIP Logic function
- Python code repository that makes a call to AIP logic function from step 1
@function
def stock_data_classification(input_text: str) -> str:
response = FoundryClient().ontology.queries.stock_data_classification_agent(input_text)
return response
- Pipeline builder transform step that uses UDF from step 2
It failed and expecting me to pass hostname to FoundryClient. When I passed hostname, error was like get token failed.
NOTE: Everything is working fine when tested published function directly in code repository.