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

Massive web cleanup. #790

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e75db3c
Massive web cleanup.
dbrewster Sep 19, 2024
b3d95f9
Hope this work
dbrewster Sep 19, 2024
24e726e
Alrightly then
dbrewster Sep 19, 2024
e8ab8be
Better be on the safe side
dbrewster Sep 19, 2024
8f1845b
Fix lint errors
dbrewster Sep 19, 2024
017bb76
Upgrade turbo
dbrewster Sep 19, 2024
c8a709b
Upgrade lint. Fix lint errors
dbrewster Sep 19, 2024
9aa7e0b
More UI changes.
dbrewster Sep 19, 2024
908ce74
More changes to clean up the UI
dbrewster Sep 23, 2024
0958dd5
updating lock
dbrewster Sep 23, 2024
88c7594
Fixed nested conversations
dbrewster Sep 23, 2024
ea4baac
Removed print statement
dbrewster Sep 23, 2024
75f9461
Added header icons
dbrewster Sep 23, 2024
43752f7
Cleaned up description.
dbrewster Sep 23, 2024
3c469da
Fixed some issues
dbrewster Sep 24, 2024
d4a4213
More fixes to layout and style
dbrewster Sep 24, 2024
38b7e17
Removed console.log statements
dbrewster Sep 24, 2024
bba6c99
Got tests to work
dbrewster Sep 25, 2024
3bb10ac
Fix some tests
dbrewster Sep 25, 2024
32b758c
Fix some tests
dbrewster Sep 25, 2024
3fae2af
Merge remote-tracking branch 'origin/main' into dlb/web-cleanup
LukeLalor Sep 25, 2024
2c0f2a2
Fix some tests
dbrewster Sep 25, 2024
d72e271
Fix some tests
dbrewster Sep 25, 2024
379bc93
Turn off lint for some files
dbrewster Sep 25, 2024
5a7fb30
Removed lookup for process -- not needed anymore.
dbrewster Sep 25, 2024
1ce5d83
Fix bugs related to dev tool ui
dbrewster Sep 25, 2024
da6609e
Fix playwright tests
dbrewster Sep 25, 2024
84f50ee
Make header show elipsis if header gets too small
dbrewster Sep 25, 2024
43ac619
More DevTool Fixes
dbrewster Sep 26, 2024
d4431cf
update quickstart
LukeLalor Sep 26, 2024
4619da4
Fixed links not showing up properly.
dbrewster Sep 26, 2024
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
2 changes: 2 additions & 0 deletions client/python/eidolon_ai_client/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class EndStreamContextEvent(BaseStreamEvent):
class ToolCallStartEvent(StartStreamContextEvent):
event_type: Literal["tool_call_start"] = "tool_call_start"
tool_call: ToolCall
process_id: str
is_agent_call: bool = False


Expand Down Expand Up @@ -122,6 +123,7 @@ class StringOutputEvent(OutputEvent):
class ObjectOutputEvent(OutputEvent, Generic[T]):
event_type: Literal["object"] = "object"
content: T
hidden: Optional[bool] = False
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hidden becomes very ui specific. Perhaps it would be better to add a metadata object to any event, and then we can throw this in there?

If not, this shouldn't be Optional[bool], just make it a bool

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about "internal"? There are, and will likely be more of, events we don't want any UI to render, like this one.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if that is the case, shouldn't we just put it in a separate context? maybe even a context with the name eidolon-hidden which the ui treats differently? seems like something we can represent without adding a new concept.



# note EndStreamEvent does not need to reference the type of event it ends since this is captured by context
Expand Down
19 changes: 11 additions & 8 deletions examples/eidolon_examples/hello_world/HelloWorld.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@ async def execute(self, name: Annotated[str, Body(description="Your name", embed

@register_program()
async def describe_image(
self,
question: str = Body(..., embed=True, description="Your question about the image"),
image: UploadFile = File(..., description="The image to describe"),
self,
question: str = Body(..., embed=True, description="Your question about the image"),
image: UploadFile = File(..., description="The image to describe"),
) -> IdleStateRepresentation:
return IdleStateRepresentation(
welcome_message=f"Hello, World {question}! File name is {image.filename}. "
f"file length is {image.size} bytes. content type is {image.content_type}"
f"file length is {image.size} bytes. content type is {image.content_type}"
)

@register_program()
async def describe_images(
self,
question: str = Body(..., embed=True, description="Your question about the image"),
images: List[UploadFile] = File(description="The images to describe"),
self,
question: str = Body(..., embed=True, description="Your question about the image"),
images: List[UploadFile] = File(description="The images to describe"),
) -> IdleStateRepresentation:
files_msg = "\n".join(
[
Expand All @@ -71,6 +71,9 @@ async def describe_images(
async def return_string(self, name: Annotated[str, Body(description="Your name", embed=True)]) -> str:
return f"Hello, World {name}!"

@register_program()
@register_program(title="Return a complex object")
async def return_complex_object(self, c_obj: Annotated[ComplexInput, Body(embed=True)]) -> ComplexInput:
"""
This is a sample that returns complex objects and such
"""
return c_obj
185 changes: 0 additions & 185 deletions examples/eidolon_examples/venture_search_agent/api_logic_unit.py

This file was deleted.

22 changes: 0 additions & 22 deletions examples/eidolon_examples/venture_search_agent/generate_title.py

This file was deleted.

This file was deleted.

Loading
Loading