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

feat(agents-api): Preliminary implementation of session.chat #453

Merged
merged 9 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
feat(agents-api): Fix prepare_chat_context
Signed-off-by: Diwank Tomer <[email protected]>
  • Loading branch information
Diwank Tomer committed Aug 10, 2024
commit 2d379b8f3a49630bbcdf4c97efbfd3db94f16ed9
18 changes: 5 additions & 13 deletions agents-api/agents_api/autogen/Agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from pydantic import AwareDatetime, BaseModel, ConfigDict, Field

from .Chat import GenerationPresetSettings, OpenAISettings, VLLMSettings
from .Chat import DefaultChatSettings


class Agent(BaseModel):
Expand Down Expand Up @@ -47,9 +47,7 @@ class Agent(BaseModel):
"""
Instructions for the agent
"""
default_settings: (
GenerationPresetSettings | OpenAISettings | VLLMSettings | None
) = None
default_settings: DefaultChatSettings | None = None
"""
Default settings for all sessions created by this agent
"""
Expand Down Expand Up @@ -86,9 +84,7 @@ class CreateAgentRequest(BaseModel):
"""
Instructions for the agent
"""
default_settings: (
GenerationPresetSettings | OpenAISettings | VLLMSettings | None
) = None
default_settings: DefaultChatSettings | None = None
"""
Default settings for all sessions created by this agent
"""
Expand Down Expand Up @@ -125,9 +121,7 @@ class PatchAgentRequest(BaseModel):
"""
Instructions for the agent
"""
default_settings: (
GenerationPresetSettings | OpenAISettings | VLLMSettings | None
) = None
default_settings: DefaultChatSettings | None = None
"""
Default settings for all sessions created by this agent
"""
Expand Down Expand Up @@ -164,9 +158,7 @@ class UpdateAgentRequest(BaseModel):
"""
Instructions for the agent
"""
default_settings: (
GenerationPresetSettings | OpenAISettings | VLLMSettings | None
) = None
default_settings: DefaultChatSettings | None = None
"""
Default settings for all sessions created by this agent
"""
Loading