mirror of
				https://github.com/microsoft/autogen.git
				synced 2025-11-04 11:49:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			498 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			498 B
		
	
	
	
		
			C#
		
	
	
	
	
	
// Copyright (c) Microsoft Corporation. All rights reserved.
 | 
						|
// IAgent.cs
 | 
						|
 | 
						|
namespace Microsoft.AutoGen.Contracts.Python;
 | 
						|
 | 
						|
public interface IAgent : ISaveState<IAgent>
 | 
						|
{
 | 
						|
    public AgentId Id { get; }
 | 
						|
    public AgentMetadata Metadata { get; }
 | 
						|
 | 
						|
    public ValueTask<object?> OnMessageAsync(object message, MessageContext messageContext); // TODO: How do we express this properly in .NET?
 | 
						|
}
 | 
						|
 | 
						|
public interface IHostableAgent : IAgent
 | 
						|
{
 | 
						|
    public ValueTask CloseAsync() => ValueTask.CompletedTask;
 | 
						|
}
 | 
						|
 |