Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

feat: Add support for custom types in function parameters#504

Open
Cheyenne1025 wants to merge5 commits intobetalgo:dev
base:dev
Choose a base branch
Loading
fromCheyenne1025:add-function-definition-support-handle-custom-type

Conversation

Cheyenne1025
Copy link

  • UpdateGetFunctionDefinition method to handle custom types as function parameters
  • Recursively process properties of custom types
  • Generate object type property definitions for custom types
  • AddGetPropertyDefinition method to create property definitions based on property type
  • UpdateCallFunction method to handle custom type parameters
  • Add tests for custom type support
  • VerifyGetFunctionDefinition_CustomType test to verify function definition generation for custom types
  • VerifyCallFunction_CustomType test to verify function calling with custom type parameters
  • Add tests for complex custom types
  • VerifyGetFunctionDefinition_ComplexCustomType test to verify function definition generation for complex custom types with nested custom types
  • VerifyCallFunction_ComplexCustomType test to verify function calling with complex custom type parameters
  • AddCustomType andComplexCustomType classes for testing purposes

kayhantolgaand others added2 commitsFebruary 7, 2024 22:15
- Update `GetFunctionDefinition` method to handle custom types as function parameters - Recursively process properties of custom types - Generate object type property definitions for custom types- Add `GetPropertyDefinition` method to create property definitions based on property type- Update `CallFunction` method to handle custom type parameters- Add tests for custom type support - `VerifyGetFunctionDefinition_CustomType` test to verify function definition generation for custom types - `VerifyCallFunction_CustomType` test to verify function calling with custom type parameters- Add tests for complex custom types - `VerifyGetFunctionDefinition_ComplexCustomType` test to verify function definition generation for complex custom types with nested custom types - `VerifyCallFunction_ComplexCustomType` test to verify function calling with complex custom type parameters- Add `CustomType` and `ComplexCustomType` classes for testing purposes
@Removable
Copy link

It seems we have to set thedev branch as the target of our PR.

@Cheyenne1025Cheyenne1025 changed the base branch frommaster todevMarch 22, 2024 14:48
@kayhantolga
Copy link
Member

The unit test you wrote is failing. Could you please fix it?

@kayhantolgakayhantolga added this to the7.4.7 milestoneApr 3, 2024
@kayhantolga
Copy link
Member

The code is unable to handle self-referenced objects.
Please test with the following complex object:

public class ABC{   public string A { get; set; }   public ABC b { get; set; }}

@kayhantolgakayhantolga linked an issueApr 3, 2024 that may beclosed by this pull request
@kayhantolgakayhantolga modified the milestones:7.4.7,8.0.1,8.0.3Apr 6, 2024
@kayhantolgakayhantolga removed this from the8.4.2 milestoneOct 10, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

FunctionCallingHelper unable to handle array parameter
3 participants
@Cheyenne1025@Removable@kayhantolga

[8]ページ先頭

©2009-2025 Movatter.jp