Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion dotnet/src/Agents/Orchestration/Handoff/HandoffActor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ protected override AgentInvokeOptions CreateInvokeOptions(Func<ChatMessageConten
new()
{
Kernel = kernel,
KernelArguments = new(new PromptExecutionSettings { FunctionChoiceBehavior = FunctionChoiceBehavior.Auto() }),
KernelArguments = new(new PromptExecutionSettings
{
FunctionChoiceBehavior = FunctionChoiceBehavior.Auto(options: new()
{
RetainArgumentTypes = true,
})
}),
OnIntermediateMessage = messageHandler,
};

Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/VectorData/SqliteVec/SqliteMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public TRecord MapFromStorageToDataModel(DbDataReader reader, bool includeVector
}

var floats = new float[length / 4];
var bytes = MemoryMarshal.Cast<float, byte>(floats);
var bytes = MemoryMarshal.Cast<float, byte>(floats.AsSpan());
stream.ReadExactly(bytes);
#else
var floats = MemoryMarshal.Cast<byte, float>((byte[])reader[ordinal]).ToArray();
Expand Down
Loading