googleapis / googleapis/python-aiplatform

google.api_core.exceptions.InternalServerError: 500 @ vertex-ai.reasoning_engines.ReasoningEngine.create

Đang mở
#4,811 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
api: vertex-ai
Ngôn ngữ chính
Python
Star
905
Fork
465
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
44

Mô tả

I am able to run the program, but it hangs for a few minutes before giving the following error.

#### Environment details

- OS type and version: MacOS 12.7.6
- Python version: 3.11
- pip version: 23.2.1
- `google-cloud-aiplatform` version: 1.71.1

#### Code example

```python
def create_agent(display_name: str):
agent = reasoning_engines.ReasoningEngine.create(
reasoning_engines.LangchainAgent(
model="gemini-pro",
tools=[sim_search],
model_kwargs={
"temperature": 0.1,
},
),
requirements=[
"google-cloud-aiplatform[reasoningengine,langchain]==1.68.0",
"langchain-google-cloud-sql-pg==0.10.0",
"langchain-google-vertexai==1.0.10",
],
display_name=display_name,
)
```

#### Stack trace

```
Traceback (most recent call last):
File "/Users/sjt/repos/github.com/agentiq-labs/cloud-sql-pg-rag/main.py", line 77, in
main()
File "/Users/sjt/repos/github.com/agentiq-labs/cloud-sql-pg-rag/main.py", line 70, in main
agent = create_agent('agentiq')
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sjt/repos/github.com/agentiq-labs/cloud-sql-pg-rag/main.py", line 53, in create_agent
agent = reasoning_engines.ReasoningEngine.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sjt/.venvs/cloud-sql-pg-rag/lib/python3.11/site-packages/vertexai/reasoning_engines/_reasoning_engines.py", line 265, in create
created_resource = operation_future.result()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sjt/.venvs/cloud-sql-pg-rag/lib/python3.11/site-packages/google/api_core/future/polling.py", line 261, in result
raise self._exception
google.api_core.exceptions.InternalServerError: 500
...
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1734656097.215229 979259 init.cc:229] grpc_wait_for_shutdown_with_timeout() timed out.
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.