ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 64 forks source link

Incompatible mapping constructor on Examples #7212

Open gaberger opened 5 months ago

gaberger commented 5 months ago

Description: When testing the library examples getting error

Compiling source
        agent/function_as_tool:0.1.0
ERROR [wso2/ai.agent/0.7.7::llm.bal:(273:20,275:14)] incompatible mapping constructor expression for type '(string|wso2/ai.agent:0.7.7:FunctionCall|wso2/ai.agent:0.7.7:LlmError)'
ERROR [wso2/ai.agent/0.7.7::llm.bal:(368:24,370:18)] incompatible mapping constructor expression for type '(string|wso2/ai.agent:0.7.7:FunctionCall|wso2/ai.agent:0.7.7:LlmError)'

Affected Product Version: wso2/ai.agent:0.7.7

Steps to reproduce: Try and build run examples