Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep: Update the docstrings and comments in sdks/python/julep/managers/types.py to fix any issues and mismatch between the comments present and surrounding code #269

Merged
merged 11 commits into from
Apr 18, 2024
Merged
Changes from all 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
7 changes: 7 additions & 0 deletions sdks/python/julep/managers/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,37 @@
Tool,
)

# Represents the settings for chat response formatting, used in configuring agent chat behavior.
ChatSettingsResponseFormatDict = TypedDict(
"ChatSettingsResponseFormat",
**{k: v.outer_type_ for k, v in ChatSettingsResponseFormat.__fields__.items()},
)
# Represents an input message for chat in ML format, used for processing chat inputs.
InputChatMlMessageDict = TypedDict(
"InputChatMlMessage",
**{k: v.outer_type_ for k, v in InputChatMlMessage.__fields__.items()},
)
# Represents the structure of a tool, used for defining tools within the system.
ToolDict = TypedDict(
"Tool",
**{k: v.outer_type_ for k, v in Tool.__fields__.items()},
)

# Represents the serialized form of a document, used for API communication.
DocDict = TypedDict(
"DocDict",
**{k: v.outer_type_ for k, v in CreateDoc.__fields__.items()},
)
# Represents the default settings for an agent, used in agent configuration.
DefaultSettingsDict = TypedDict(
"DefaultSettingsDict",
**{k: v.outer_type_ for k, v in AgentDefaultSettings.__fields__.items()},
)
# Represents the definition of a function, used for defining functions within the system.
FunctionDefDict = TypedDict(
"FunctionDefDict", **{k: v.outer_type_ for k, v in FunctionDef.__fields__.items()}
)
# Represents the request structure for creating a tool, used in tool creation API calls.
ToolDict = TypedDict(
"ToolDict", **{k: v.outer_type_ for k, v in CreateToolRequest.__fields__.items()}
)
Loading