-
Notifications
You must be signed in to change notification settings - Fork 275
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
Logcap #668
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
Signed-off-by: Teo <teocns@gmail.com>
Rich formatted text with various styles (color, bold, italic) Direct ANSI codes with proper newlines Mixed color text in both stdout and stderr All ANSI codes are preserved in the logged output Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Added a private _make_request method that handles all the common request logicSimplified the public HTTP methods (GET/POST/PUT/DELETE) to use the common handlerEach method only specifies its unique parameters and passes them to _make_requestAdded DELETE method for completenessMaintained all existing error handling and response processingKept the connection pooling and header preparation logic unchanged Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
…it from `Session` Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
…ed for this session Signed-off-by: Teo <teocns@gmail.com> logger -> agentops_logger Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
…ssion Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
…tion Signed-off-by: Teo <teocns@gmail.com>
…_sesssion" Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
Signed-off-by: Teo <teocns@gmail.com>
…tegers or slices, not str Signed-off-by: Teo <teocns@gmail.com>
The current implementation has a potential issue: it doesn't guarantee that logs from one session won't leak into another when running concurrently. This needs to be addressed with callstack lookup or other methods. @areibman: otherwise, how does agentops actually know which session to assign llm events to? would the same mechanism work? |
…uests) Signed-off-by: Teo <teocns@gmail.com>
…d url Signed-off-by: Teo <teocns@gmail.com>
Capture terminal output to be displayed in the agentops dashboard. Session-based capture functionality is currently under development. Captures will be displayed in the AgentOps dashboard under "Terminal".
At the moment we capture:
logging.info()
,logging.error()
, etc.print()
Key changes in this PR:
_make_request
methodagentops_session
andagentops_init
which promotes auto setup/teardown.