| | | 1 | | // Copyright (c) NexusLabs. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System.Collections.Immutable; |
| | | 5 | | |
| | | 6 | | namespace NexusLabs.Needlr.AgentFramework.Generators; |
| | | 7 | | |
| | | 8 | | internal readonly struct AgentFunctionMethodInfo |
| | | 9 | | { |
| | | 10 | | public AgentFunctionMethodInfo( |
| | | 11 | | string methodName, bool isAsync, bool isVoidLike, |
| | | 12 | | string? returnValueTypeFQN, string? returnJsonSchemaType, |
| | | 13 | | string? returnObjectSchemaJson, |
| | | 14 | | ImmutableArray<AgentFunctionParameterInfo> parameters, |
| | | 15 | | string description) |
| | | 16 | | { |
| | 60 | 17 | | MethodName = methodName; IsAsync = isAsync; IsVoidLike = isVoidLike; |
| | 40 | 18 | | ReturnValueTypeFQN = returnValueTypeFQN; ReturnJsonSchemaType = returnJsonSchemaType; |
| | 20 | 19 | | ReturnObjectSchemaJson = returnObjectSchemaJson; |
| | 40 | 20 | | Parameters = parameters; Description = description; |
| | 20 | 21 | | } |
| | | 22 | | |
| | 80 | 23 | | public string MethodName { get; } |
| | 40 | 24 | | public bool IsAsync { get; } |
| | 20 | 25 | | public bool IsVoidLike { get; } |
| | 0 | 26 | | public string? ReturnValueTypeFQN { get; } |
| | 55 | 27 | | public string? ReturnJsonSchemaType { get; } |
| | 17 | 28 | | public string? ReturnObjectSchemaJson { get; } |
| | 60 | 29 | | public ImmutableArray<AgentFunctionParameterInfo> Parameters { get; } |
| | 20 | 30 | | public string Description { get; } |
| | | 31 | | } |