Skip to content

Commit

Permalink
fix(agents-api): Lint and fix sample task
Browse files Browse the repository at this point in the history
Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Nov 29, 2024
1 parent 9ce2d6b commit 3a32c7c
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion agents-api/agents_api/activities/execute_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
)
from ..autogen.Sessions import CreateSessionRequest
from ..autogen.Tools import SystemDef
from ..common.protocol.remote import RemoteObject
from ..common.protocol.tasks import StepContext
from ..common.storage_handler import auto_blob_store, load_from_blob_store_if_remote
from ..env import testing
Expand Down
5 changes: 0 additions & 5 deletions agents-api/agents_api/activities/task_steps/prompt_step.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
from typing import Callable

from anthropic.types.beta.beta_message import BetaMessage
from beartype import beartype
from langchain_core.tools import BaseTool
from langchain_core.tools.convert import tool as tool_decorator
from litellm.types.utils import ModelResponse
from temporalio import activity
from temporalio.exceptions import ApplicationError
Expand All @@ -16,7 +12,6 @@
from ...common.storage_handler import auto_blob_store
from ...common.utils.template import render_template
from ...env import debug
from ..utils import get_handler_with_filtered_params
from .base_evaluate import base_evaluate

COMPUTER_USE_BETA_FLAG = "computer-use-2024-10-22"
Expand Down
1 change: 0 additions & 1 deletion agents-api/agents_api/autogen/Tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from pydantic import AwareDatetime, BaseModel, ConfigDict, Field, StrictBool

from .Chat import ChatSettings
from .Common import JinjaTemplate
from .Tools import (
ChosenBash20241022,
ChosenComputer20241022,
Expand Down
3 changes: 1 addition & 2 deletions agents-api/agents_api/routers/sessions/chat.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from datetime import datetime
from typing import Annotated, Callable, Optional
from typing import Annotated, Optional
from uuid import UUID, uuid4

from fastapi import BackgroundTasks, Depends, Header, HTTPException, status
Expand Down
2 changes: 1 addition & 1 deletion agents-api/tests/sample_tasks/simple_multi_step.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ main:
- log: _

- evaluate:
result: _["choices"][0]["message"].content.strip()
result: '[item["choices"][0]["message"].content.strip() for item in _]'

0 comments on commit 3a32c7c

Please sign in to comment.