-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* callbacks refactor * naming * build fix * implement base and console trace * console logger * remove commented --------- Co-authored-by: Evgenii Khoroshev <[email protected]>
- Loading branch information
1 parent
ea43091
commit 6b7c5dc
Showing
42 changed files
with
1,699 additions
and
568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using LangChain.Callback; | ||
|
||
namespace LangChain.Base; | ||
|
||
public interface IBaseChainInput | ||
{ | ||
/// <summary> | ||
/// Optional list of callback handlers (or callback manager). Defaults to None. | ||
/// Callback handlers are called throughout the lifecycle of a call to a chain, | ||
/// starting with on_chain_start, ending with on_chain_end or on_chain_error. | ||
/// Each custom chain can optionally call additional callback methods, see Callback docs | ||
/// for full details. | ||
/// </summary> | ||
public ICallbacks? Callbacks { get; set; } | ||
|
||
/// <summary> | ||
/// Whether or not run in verbose mode. In verbose mode, some intermediate logs | ||
/// will be printed to the console. | ||
/// </summary> | ||
public bool Verbose { get; set; } | ||
|
||
/// <summary> | ||
/// Optional list of tags associated with the chain. Defaults to None. | ||
/// These tags will be associated with each call to this chain, | ||
/// and passed as arguments to the handlers defined in `callbacks`. | ||
/// You can use these to eg identify a specific instance of a chain with its use case. | ||
/// </summary> | ||
public List<string> Tags { get; set; } | ||
|
||
/// <summary> | ||
/// Optional metadata associated with the chain. Defaults to None. | ||
/// This metadata will be associated with each call to this chain, | ||
/// and passed as arguments to the handlers defined in `callbacks`. | ||
/// You can use these to eg identify a specific instance of a chain with its use case. | ||
/// </summary> | ||
public Dictionary<string, object> Metadata { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.