autogen
autogen copied to clipboard
Bug in AgentRuntime.cs RpcRequest scp update()
What happened?
public void Update(RpcRequest request, Activity? activity = null)
{
DistributedContextPropagator.Inject(activity, request.Metadata, static (carrier, key, value) => ((IDictionary<string, string>)carrier!)[key] = value);
}
if key isn't already defined this will throw
What did you expect to happen?
safety!
How can we reproduce it (as minimally and precisely as possible)?
send an RpcRequest with no metadata
AutoGen version
0.4
Which package was this bug in
Core
Model used
No response
Python version
No response
Operating system
No response
Any additional info you think would be helpful for fixing this bug
No response